Package org.apache.jena.sparql.core
Class Quad
- java.lang.Object
-
- org.apache.jena.sparql.core.Quad
-
- All Implemented Interfaces:
java.io.Serializable
public class Quad extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static QuadANYAQuadthat has a wildcard in all fields.static NodedefaultGraphIRIName of the default for explicit use in GRAPHstatic NodedefaultGraphNodeGeneratedName of the default graph as used by parsers and in quad form of algebra.static NodetripleInQuadName of the non-graph when a quad is really a triple - also parsing of triples formats (and the default graph when parsing N-Quads or TriG) Not for access to the default graph by name - use Quad.defaultGraphIRI.static NodeunionGraphName of the merge of all named graphs (use this for the graph of all named graphs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TripleasTriple()Get as a triple - useful because quads often come in blocks for the same graphstatic Quadcreate(Node g, Node s, Node p, Node o)static Quadcreate(Node g, Triple t)booleanequals(java.lang.Object other)NodegetGraph()NodegetObject()NodegetPredicate()NodegetSubject()inthashCode()booleanisConcrete()booleanisDefaultGraph()Default, concrete graph (either generated or explicitly named)static booleanisDefaultGraph(Node node)Default, concrete graph (either generated or explicitly named) -- not triple-in-quadbooleanisDefaultGraphExplicit()Default, concrete graph via generated URI (not explicitly, named)static booleanisDefaultGraphExplicit(Node node)Default, explicitly named concrete graphbooleanisDefaultGraphGenerated()Default graph, explicitly named (not generated)static booleanisDefaultGraphGenerated(Node node)Test whether this is a quad for the default graph (not the default graphs by explicit name)booleanisLegalAsData()Is this quad a legal data quad (legal data triple, IRI for graph)booleanisTriple()Is it really a triple?booleanisUnionGraph()node used for the RDF merge of named graphsstatic booleanisUnionGraph(Node node)Default, concrete graph (either generated or explicitly named) -- not triple-in-quadbooleanmatches(Node g, Node s, Node p, Node o)java.lang.StringtoString()
-
-
-
Field Detail
-
defaultGraphIRI
public static final Node defaultGraphIRI
Name of the default for explicit use in GRAPH
-
defaultGraphNodeGenerated
public static final Node defaultGraphNodeGenerated
Name of the default graph as used by parsers and in quad form of algebra. Not for access to the default graph by name - use Quad.defaultGraphIRI.
-
unionGraph
public static final Node unionGraph
Name of the merge of all named graphs (use this for the graph of all named graphs)
-
tripleInQuad
public static final Node tripleInQuad
Name of the non-graph when a quad is really a triple - also parsing of triples formats (and the default graph when parsing N-Quads or TriG) Not for access to the default graph by name - use Quad.defaultGraphIRI.
-
ANY
public static final Quad ANY
AQuadthat has a wildcard in all fields.
-
-
Method Detail
-
getGraph
public final Node getGraph()
-
getSubject
public final Node getSubject()
-
getPredicate
public final Node getPredicate()
-
getObject
public final Node getObject()
-
asTriple
public Triple asTriple()
Get as a triple - useful because quads often come in blocks for the same graph
-
isConcrete
public boolean isConcrete()
-
isDefaultGraphGenerated
public static boolean isDefaultGraphGenerated(Node node)
Test whether this is a quad for the default graph (not the default graphs by explicit name)
-
isDefaultGraphExplicit
public static boolean isDefaultGraphExplicit(Node node)
Default, explicitly named concrete graph
-
isDefaultGraph
public static boolean isDefaultGraph(Node node)
Default, concrete graph (either generated or explicitly named) -- not triple-in-quad
-
isUnionGraph
public static boolean isUnionGraph(Node node)
Default, concrete graph (either generated or explicitly named) -- not triple-in-quad
-
isDefaultGraphExplicit
public boolean isDefaultGraphExplicit()
Default, concrete graph via generated URI (not explicitly, named)
-
isDefaultGraphGenerated
public boolean isDefaultGraphGenerated()
Default graph, explicitly named (not generated)
-
isDefaultGraph
public boolean isDefaultGraph()
Default, concrete graph (either generated or explicitly named)
-
isUnionGraph
public boolean isUnionGraph()
node used for the RDF merge of named graphs
-
isTriple
public boolean isTriple()
Is it really a triple?
-
isLegalAsData
public boolean isLegalAsData()
Is this quad a legal data quad (legal data triple, IRI for graph)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-