Package org.apache.jena.graph
Class Node_Triple
- java.lang.Object
-
- org.apache.jena.graph.Node
-
- org.apache.jena.graph.Node_Triple
-
- All Implemented Interfaces:
java.io.Serializable
public class Node_Triple extends Node
RDF triples as RDF terms for RDF-star embedded triples.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jena.graph.Node
Node.NotLiteral
-
-
Constructor Summary
Constructors Constructor Description Node_Triple(Node s, Node p, Node o)
Node_Triple(Triple triple)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Nodes only equal other Nodes that have equal labels.Triple
getTriple()
Get the triple for a triple term (embedded triple), otherwise die horriblyint
hashCode()
boolean
isConcrete()
Answer true iff this node is concrete, ie not variable, ie URI, blank, or literal.boolean
isNodeTriple()
Answer true iff this node is an "triple node" (RDF-star)java.lang.String
toString(PrefixMapping pm, boolean quoting)
Answer a human readable representation of this Node, quoting literals if specified, and compressing URIs using the prefix mapping supplied.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
getBlankNodeId, getBlankNodeLabel, getGraph, getIndexingValue, getLiteral, getLiteralDatatype, getLiteralDatatypeURI, getLiteralIsXML, getLiteralLanguage, getLiteralLexicalForm, getLiteralValue, getLocalName, getName, getNameSpace, getURI, hasURI, isBlank, isExt, isLiteral, isNodeGraph, isURI, isVariable, matches, sameValueAs, toString, toString, toString
-
-
-
-
Method Detail
-
getTriple
public Triple getTriple()
Description copied from class:Node
Get the triple for a triple term (embedded triple), otherwise die horribly
-
isConcrete
public boolean isConcrete()
Description copied from class:Node
Answer true iff this node is concrete, ie not variable, ie URI, blank, or literal.- Specified by:
isConcrete
in classNode
-
isNodeTriple
public boolean isNodeTriple()
Description copied from class:Node
Answer true iff this node is an "triple node" (RDF-star)- Overrides:
isNodeTriple
in classNode
-
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
.
-
equals
public boolean equals(java.lang.Object obj)
Description copied from class:Node
Nodes only equal other Nodes that have equal labels.
-
toString
public java.lang.String toString(PrefixMapping pm, boolean quoting)
Description copied from class:Node
Answer a human readable representation of this Node, quoting literals if specified, and compressing URIs using the prefix mapping supplied.
-
-