Package org.apache.jena.graph
Class Node_URI
- java.lang.Object
-
- org.apache.jena.graph.Node
-
- org.apache.jena.graph.Node_Concrete
-
- org.apache.jena.graph.Node_URI
-
- All Implemented Interfaces:
java.io.Serializable
public class Node_URI extends Node_Concrete
RDF nodes with a global identity given by a URI.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jena.graph.Node
Node.NotLiteral
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
Nodes only equal other Nodes that have equal labels.java.lang.String
getLocalName()
get the localname part of this node if it's a URI node, else die horriblyjava.lang.String
getNameSpace()
get the namespace part of this node if it's a URI node, else die horriblyjava.lang.String
getURI()
get the URI of this node if it has one, else die horriblyboolean
hasURI(java.lang.String uri)
answer true iff this node is a URI node with the given URIboolean
isURI()
Answer true iff this node is a URI node [subclasses override]java.lang.String
toString(PrefixMapping pm, boolean quoting)
Answer a String representing the node, taking into account the PrefixMapping.java.lang.Object
visitWith(NodeVisitor v)
Visit a Node and dispatch on it to the appropriate method from the NodeVisitorv
.-
Methods inherited from class org.apache.jena.graph.Node_Concrete
isConcrete
-
Methods inherited from class org.apache.jena.graph.Node
getBlankNodeId, getBlankNodeLabel, getGraph, getIndexingValue, getLiteral, getLiteralDatatype, getLiteralDatatypeURI, getLiteralIsXML, getLiteralLanguage, getLiteralLexicalForm, getLiteralValue, getName, getTriple, hashCode, isBlank, isExt, isLiteral, isNodeGraph, isNodeTriple, isVariable, matches, sameValueAs, toString, toString, toString
-
-
-
-
Method Detail
-
getURI
public java.lang.String getURI()
Description copied from class:Node
get the URI of this node if it has one, else die horribly
-
visitWith
public java.lang.Object visitWith(NodeVisitor v)
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
public java.lang.String toString(PrefixMapping pm, boolean quoting)
Answer a String representing the node, taking into account the PrefixMapping. The horrible test against null is a stopgap to avoid a circularity issue. TODO fix the circularity issue
-
equals
public boolean equals(java.lang.Object other)
Description copied from class:Node
Nodes only equal other Nodes that have equal labels.
-
getNameSpace
public java.lang.String 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
public java.lang.String 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
-
-