java.lang.Object
org.apache.jena.graph.Node
org.apache.jena.graph.Node_URI
- All Implemented Interfaces:
Serializable
RDF nodes with a global identity given by a URI.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.jena.graph.Node
Node.NotLiteral
-
Field Summary
Fields inherited from class org.apache.jena.graph.Node
ANY, noLangTag, noTextDirection
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Java rules for equals.get the localname part of this node if it's a URI node, else die horriblyget the namespace part of this node if it's a URI node, else die horriblygetURI()
get the URI of this node if it has one, else die horriblyint
hashCode()
boolean
answer true iff this node is a URI node with the given URIboolean
Answer true iff this node is concrete, meaning a node that is data in an RDF Graph.boolean
isURI()
Answer true iff this node is a URI node [subclasses override]toString()
Answer a human-readable representation of this Node.Answer a String representing the node, taking into account the PrefixMapping.Visit a Node and dispatch on it to the appropriate method from the NodeVisitorv
.Methods inherited from class org.apache.jena.graph.Node
getBlankNodeLabel, getGraph, getIndexingValue, getLiteral, getLiteralDatatype, getLiteralDatatypeURI, getLiteralLanguage, getLiteralLexicalForm, getLiteralTextDirection, getLiteralValue, getName, getTriple, isBlank, isExt, isLiteral, isNodeGraph, isNodeTriple, isVariable, matches, sameTermAs, sameValueAs
-
Method Details
-
isConcrete
public boolean isConcrete()Description copied from class:Node
Answer true iff this node is concrete, meaning a node that is data in an RDF Graph.- Specified by:
isConcrete
in classNode
-
getURI
Description copied from class:Node
get the URI of this node if it has one, else die horribly -
visitWith
Description copied from class:Node
Visit a Node and dispatch on it to the appropriate method from the NodeVisitorv
. -
isURI
public boolean isURI()Description copied from class:Node
Answer true iff this node is a URI node [subclasses override] -
toString
Description copied from class:Node
Answer a human-readable representation of this Node. -
getNameSpace
Description copied from class:Node
get the namespace part of this node if it's a URI node, else die horribly- Overrides:
getNameSpace
in classNode
-
getLocalName
Description copied from class:Node
get the localname part of this node if it's a URI node, else die horribly- Overrides:
getLocalName
in classNode
-
hasURI
Description copied from class:Node
answer true iff this node is a URI node with the given URI -
hashCode
public int hashCode() -
equals
Description copied from class:Node
Java rules for equals. See also {#sameTermAs} and {#sameValueAs} Nodes only equal other Nodes that have equal labels.
-