org.topbraid.xml.rx
Class X2R
java.lang.Object
org.topbraid.xml.rx.X2R
public class X2R
- extends java.lang.Object
|
Constructor Summary |
X2R()
|
|
Method Summary |
static com.hp.hpl.jena.rdf.model.Property |
getProperty(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String id)
|
static com.hp.hpl.jena.rdf.model.RDFNode |
getRDFNode(com.hp.hpl.jena.rdf.model.Model model,
Element objectElement)
|
static com.hp.hpl.jena.rdf.model.RDFNode |
getRDFNodeFromXML(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String xml)
|
static com.hp.hpl.jena.rdf.model.Resource |
getResource(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String id)
|
static void |
handleChanges(com.hp.hpl.jena.rdf.model.Model model,
Node rootNode,
IX2RHandler handler)
Walks through a R2X changes XML tree and applies the changes to
a given handler. |
static Element |
parseElement(java.lang.String xml)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
X2R
public X2R()
getProperty
public static com.hp.hpl.jena.rdf.model.Property getProperty(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String id)
getRDFNode
public static com.hp.hpl.jena.rdf.model.RDFNode getRDFNode(com.hp.hpl.jena.rdf.model.Model model,
Element objectElement)
getRDFNodeFromXML
public static com.hp.hpl.jena.rdf.model.RDFNode getRDFNodeFromXML(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String xml)
getResource
public static com.hp.hpl.jena.rdf.model.Resource getResource(com.hp.hpl.jena.rdf.model.Model model,
java.lang.String id)
handleChanges
public static void handleChanges(com.hp.hpl.jena.rdf.model.Model model,
Node rootNode,
IX2RHandler handler)
- Walks through a R2X changes XML tree and applies the changes to
a given handler.
- Parameters:
model - the Model to operate on (for namespaces etc)rootNode - the root node - the children must be add or removehandler - the handler that will be called for each triple
parseElement
public static Element parseElement(java.lang.String xml)