-
Method Summary
Modifier and TypeMethodDescriptionstatic Node
Make a fresh blank nodestatic Node
createBlankNode
(String string) make a blank node with the specified labelstatic Node
make an extension node based on a string.static Node
createGraphNode
(Graph graph) Create a graph node.static Node
createLiteral
(String string) Deprecated, for removal: This API element is subject to removal in a future version.static Node
createLiteral
(String string, String lang) Deprecated.static Node
createLiteral
(String lex, String lang, String textDir, RDFDatatype dtype) Build a literal node.static Node
createLiteral
(String lex, String lang, RDFDatatype dtype) Build a literal node.static Node
createLiteral
(String lex, String lang, TextDirection textDir, RDFDatatype dtype) Build a literal node.static Node
createLiteral
(String lex, RDFDatatype dtype) Deprecated.static Node
Deprecated.Making nodes directly fromLiteralLabel
may be removed.static Node
createLiteralByValue
(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 Node
createLiteralByValue
(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 Node
createLiteralDirLang
(String string, String lang, String textDir) Make a literal with specified language and language direction.static Node
createLiteralDirLang
(String string, String lang, TextDirection textDir) static Node
createLiteralDT
(String lex, RDFDatatype dtype) Build a typed literal node from its lexical form.static Node
createLiteralLang
(String string, String lang) Make a literal with specified language.static Node
createLiteralString
(String string) static Node
createTripleNode
(Node s, Node p, Node o) Create a triple node (RDF-star)static Node
createTripleNode
(Triple triple) Create a triple node (RDF-star)static Node
make a URI node with the specified URIref stringstatic Node
createVariable
(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 fromLiteralLabel
may 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.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.- 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 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 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)
,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
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
-
createTripleNode
Create a triple node (RDF-star) -
createTripleNode
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)