Package org.apache.jena.riot.system
Class FactoryRDFStd
- java.lang.Object
-
- org.apache.jena.riot.system.FactoryRDFStd
-
- All Implemented Interfaces:
FactoryRDF
- Direct Known Subclasses:
FactoryRDFCaching
public class FactoryRDFStd extends java.lang.Object implements FactoryRDF
-
-
Constructor Summary
Constructors Constructor Description FactoryRDFStd()FactoryRDFStd(LabelToNode labelMapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodecreateBlankNode()Create a blank node which is completely new and used nowhere else.NodecreateBlankNode(long mostSigBits, long leastSigBits)Create a blank with the internal system id taken from 128 bit number provided.NodecreateBlankNode(java.lang.String label)Create a blank node with the given string as internal system idNodecreateLangLiteral(java.lang.String lexical, java.lang.String langTag)QuadcreateQuad(Node graph, Node subject, Node predicate, Node object)NodecreateStringLiteral(java.lang.String lexical)TriplecreateTriple(Node subject, Node predicate, Node object)NodecreateTypedLiteral(java.lang.String lexical, RDFDatatype datatype)NodecreateURI(java.lang.String uriStr)voidreset()Reset any internal state that should not be carried across parse runs (e.g.
-
-
-
Constructor Detail
-
FactoryRDFStd
public FactoryRDFStd()
-
FactoryRDFStd
public FactoryRDFStd(LabelToNode labelMapping)
-
-
Method Detail
-
createTriple
public Triple createTriple(Node subject, Node predicate, Node object)
- Specified by:
createTriplein interfaceFactoryRDF
-
createQuad
public Quad createQuad(Node graph, Node subject, Node predicate, Node object)
- Specified by:
createQuadin interfaceFactoryRDF
-
createURI
public Node createURI(java.lang.String uriStr)
- Specified by:
createURIin interfaceFactoryRDF
-
createTypedLiteral
public Node createTypedLiteral(java.lang.String lexical, RDFDatatype datatype)
- Specified by:
createTypedLiteralin interfaceFactoryRDF
-
createLangLiteral
public Node createLangLiteral(java.lang.String lexical, java.lang.String langTag)
- Specified by:
createLangLiteralin interfaceFactoryRDF
-
createStringLiteral
public Node createStringLiteral(java.lang.String lexical)
- Specified by:
createStringLiteralin interfaceFactoryRDF
-
createBlankNode
public Node createBlankNode(long mostSigBits, long leastSigBits)
Description copied from interface:FactoryRDFCreate a blank with the internal system id taken from 128 bit number provided. This must be compatible withUUIDso the variant and version bits must agree with RFC 4122.- Specified by:
createBlankNodein interfaceFactoryRDF- See Also:
UUID, RFC 4122: A Universally Unique IDentifier (UUID) URN Namespace
-
createBlankNode
public Node createBlankNode(java.lang.String label)
Description copied from interface:FactoryRDFCreate a blank node with the given string as internal system id- Specified by:
createBlankNodein interfaceFactoryRDF
-
createBlankNode
public Node createBlankNode()
Description copied from interface:FactoryRDFCreate a blank node which is completely new and used nowhere else.- Specified by:
createBlankNodein interfaceFactoryRDF
-
reset
public void reset()
Description copied from interface:FactoryRDFReset any internal state that should not be carried across parse runs (e.g. blank node labels).- Specified by:
resetin interfaceFactoryRDF
-
-