org.openprovenance.elmo
Class XMLLiteral
java.lang.Object
org.openprovenance.elmo.XMLLiteral
public class XMLLiteral
- extends Object
XMLLiteral support was dropped because they where being mapped to org.w3c.dom.Document and did not support XML fragments (multiple roots elements).
It is now recommended that users create their own XMLLiteral class that can handle XML fragments to what ever extent is desirable.
Below is a sample class, which maps rdf:XMLLiteral to the class XmlLiteral, which exposes a read-only w3c document as a property. It can be registered in the ElmoModule or in a configuration file.
module.addLiteral(XmlLiteral.class,
"http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral");
See http://www.openrdf.org/forum/mvnforum/viewthread?thread=1738
XMLLiteral
public XMLLiteral(String xml)
XMLLiteral
public XMLLiteral(Document document)
getDocument
public Document getDocument()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2010. All Rights Reserved.