-
Method Summary
Modifier and TypeMethodDescriptionstatic NodeMake a fresh blank nodestatic NodecreateBlankNode(String string) make a blank node with the specified labelstatic Nodemake an extension node based on a string.static NodecreateGraphNode(Graph graph) Create a graph node.static NodecreateLiteral(String string) Deprecated, for removal: This API element is subject to removal in a future version.static NodecreateLiteral(String string, String lang) Deprecated, for removal: This API element is subject to removal in a future version.static NodecreateLiteral(String lex, String lang, String textDir, RDFDatatype dtype) Build a literal node.static NodecreateLiteral(String lex, String lang, RDFDatatype dtype) Build a literal node.static NodecreateLiteral(String lex, String lang, TextDirection textDir, RDFDatatype dtype) Build a literal node.static NodecreateLiteral(String lex, RDFDatatype dtype) Deprecated.static NodeDeprecated.Making nodes directly fromLiteralLabelmay be removed.static NodecreateLiteralByValue(Object value) Create a Node based on the value If the value is a string we assume this is intended to be a lexical form after all.static NodecreateLiteralByValue(Object value, RDFDatatype dtype) Create a Node based on the value If the value is a string we assume this is intended to be a lexical form after all.static NodecreateLiteralDirLang(String string, String lang, String textDir) Make a literal with specified language and language direction.static NodecreateLiteralDirLang(String string, String lang, TextDirection textDir) static NodecreateLiteralDT(String lex, RDFDatatype dtype) Build a typed literal node from its lexical form.static NodecreateLiteralLang(String string, String lang) Make a literal with specified language.static NodecreateLiteralString(String string) static NodecreateTripleNode(Node s, Node p, Node o) Deprecated.static NodecreateTripleNode(Triple triple) Deprecated.static NodecreateTripleTerm(Node s, Node p, Node o) Create a triple node (RDF-star)static NodecreateTripleTerm(Triple triple) Create a triple term (RDF-star)static Nodemake a URI node with the specified URIref stringstatic NodecreateVariable(String name) make a variable node with a given namestatic RDFDatatype
-
Method Details
-
getType
-
createBlankNode
Make a fresh blank node -
createBlankNode
make a blank node with the specified label -
createURI
make a URI node with the specified URIref string -
createVariable
make a variable node with a given name -
createExt
make an extension node based on a string. -
createLiteral
Deprecated.Making nodes directly fromLiteralLabelmay be removed.Make a literal node with the specified literal value -
createLiteral
Deprecated, for removal: This API element is subject to removal in a future version. -
createLiteralString
-
createLiteral
Deprecated, for removal: This API element is subject to removal in a future version.Make a literal with specified language. The lexical form must not be null.- Parameters:
string- the lexical form of the literallang- the optional language tag
-
createLiteralLang
Make a literal with specified language. The lexical form must not be null.If the
langcontains "--" it is interpreted as including a base direction.- Parameters:
string- the lexical form of the literallang- the optional language tag
-
createLiteralDirLang
Make a literal with specified language and language direction. The lexical form must not be null. The language must not be null or "" if a non-direction is provided.- Parameters:
string- the lexical form of the literallang- the optional language tagtextDir- the optional language direction
-
createLiteralDirLang
-
createLiteral
Build a literal node.This is a convenience operation for passing in language and datatype without needing the caller to differentiate between the xsd:string, rdf:langString, rdf:dirLangString and other datatype cases.
It calls
createLiteralString(String),createLiteralDirLang(String, String, String)orcreateLiteralDT(String, RDFDatatype)as appropriate.- Parameters:
lex- the lexical form of the literallang- the optional language tag or null or ""dtype- the type of the literal or null.
-
createLiteral
Build a literal node.This is a convenience operation for passing in language and datatype without needing the caller to differentiate between the xsd:string, rdf:langString, and other datatype cases.
It calls
createLiteralString(String),createLiteralDirLang(String, String, String)orcreateLiteralDT(String, RDFDatatype)as appropriate.- Parameters:
lex- the lexical form of the literallang- the optional language tag or null or ""textDir- the optional language direction or nulldtype- the type of the literal or null.
-
createLiteral
Build a literal node.This is a convenience operation for passing in language and datatype without needing the caller to differentiate between the xsd:string, rdf:langString, and other datatype cases. It calls
createLiteralString(String),createLiteralLang(String, String)orcreateLiteralDirLang(String, String, String)orcreateLiteralDT(String, RDFDatatype)as appropriate.- Parameters:
lex- the lexical form of the literallang- the optional language tag or null or ""textDir- the optional language direction or nulldtype- the type of the literal or null.
-
createLiteral
Deprecated. -
createLiteralDT
Build a typed literal node from its lexical form.- Parameters:
lex- the lexical form of the literaldtype- the type of the literal
-
createLiteralByValue
Create a Node based on the value If the value is a string we assume this is intended to be a lexical form after all.- Parameters:
value- The value, mapped according to registered types.- Returns:
- Node
-
createLiteralByValue
Create a Node based on the value If the value is a string we assume this is intended to be a lexical form after all.- Parameters:
value- The value, mapped according to registered types.dtype- RDF Datatype.- Returns:
- Node
-
createTripleTerm
Create a triple node (RDF-star) -
createTripleTerm
Create a triple term (RDF-star) -
createTripleNode
Deprecated.Create a triple term (RDF-star) -
createTripleNode
Deprecated.Create a triple node (RDF-star) -
createGraphNode
Create a graph node. This is an N3-formula; it is not a named graph (see "quad")
-
createLiteralString(java.lang.String)