org.trippi
Class RDFUtil
java.lang.Object
org.trippi.RDFUtil
- All Implemented Interfaces:
- java.io.Serializable, org.jrdf.graph.GraphElementFactory
public class RDFUtil
- extends java.lang.Object
- implements org.jrdf.graph.GraphElementFactory, java.io.Serializable
- See Also:
- Serialized Form
Method Summary |
org.jrdf.graph.Literal |
createLiteral(java.lang.String lexicalValue)
|
org.jrdf.graph.Literal |
createLiteral(java.lang.String lexicalValue,
java.lang.String languageType)
|
org.jrdf.graph.Literal |
createLiteral(java.lang.String lexicalValue,
java.net.URI datatypeURI)
|
org.jrdf.graph.BlankNode |
createResource()
|
org.jrdf.graph.BlankNode |
createResource(int hashCode)
Create a BlankNode given a unique id. |
org.jrdf.graph.URIReference |
createResource(java.net.URI uri)
|
org.jrdf.graph.URIReference |
createResource(java.net.URI uri,
boolean validate)
|
org.jrdf.graph.Triple |
createTriple(org.jrdf.graph.SubjectNode subject,
org.jrdf.graph.PredicateNode predicate,
org.jrdf.graph.ObjectNode object)
|
org.jrdf.graph.Node |
parse(java.lang.String n)
|
static java.lang.String |
toString(org.jrdf.graph.Node node)
|
static java.lang.String |
toString(org.jrdf.graph.Triple triple)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RDFUtil
public RDFUtil()
toString
public static java.lang.String toString(org.jrdf.graph.Node node)
toString
public static java.lang.String toString(org.jrdf.graph.Triple triple)
parse
public org.jrdf.graph.Node parse(java.lang.String n)
throws org.jrdf.graph.GraphElementFactoryException,
java.net.URISyntaxException
- Throws:
org.jrdf.graph.GraphElementFactoryException
java.net.URISyntaxException
createResource
public org.jrdf.graph.BlankNode createResource(int hashCode)
- Create a BlankNode given a unique id.
createLiteral
public org.jrdf.graph.Literal createLiteral(java.lang.String lexicalValue)
throws org.jrdf.graph.GraphElementFactoryException
- Specified by:
createLiteral
in interface org.jrdf.graph.GraphElementFactory
- Throws:
org.jrdf.graph.GraphElementFactoryException
createLiteral
public org.jrdf.graph.Literal createLiteral(java.lang.String lexicalValue,
java.lang.String languageType)
throws org.jrdf.graph.GraphElementFactoryException
- Specified by:
createLiteral
in interface org.jrdf.graph.GraphElementFactory
- Throws:
org.jrdf.graph.GraphElementFactoryException
createLiteral
public org.jrdf.graph.Literal createLiteral(java.lang.String lexicalValue,
java.net.URI datatypeURI)
throws org.jrdf.graph.GraphElementFactoryException
- Specified by:
createLiteral
in interface org.jrdf.graph.GraphElementFactory
- Throws:
org.jrdf.graph.GraphElementFactoryException
createResource
public org.jrdf.graph.BlankNode createResource()
throws org.jrdf.graph.GraphElementFactoryException
- Specified by:
createResource
in interface org.jrdf.graph.GraphElementFactory
- Throws:
org.jrdf.graph.GraphElementFactoryException
createResource
public org.jrdf.graph.URIReference createResource(java.net.URI uri)
throws org.jrdf.graph.GraphElementFactoryException
- Specified by:
createResource
in interface org.jrdf.graph.GraphElementFactory
- Throws:
org.jrdf.graph.GraphElementFactoryException
createResource
public org.jrdf.graph.URIReference createResource(java.net.URI uri,
boolean validate)
throws org.jrdf.graph.GraphElementFactoryException
- Specified by:
createResource
in interface org.jrdf.graph.GraphElementFactory
- Throws:
org.jrdf.graph.GraphElementFactoryException
createTriple
public org.jrdf.graph.Triple createTriple(org.jrdf.graph.SubjectNode subject,
org.jrdf.graph.PredicateNode predicate,
org.jrdf.graph.ObjectNode object)
throws org.jrdf.graph.GraphElementFactoryException
- Specified by:
createTriple
in interface org.jrdf.graph.GraphElementFactory
- Throws:
org.jrdf.graph.GraphElementFactoryException