java.lang.Object
org.apache.jena.sparql.core.Quad
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QuadAQuadthat has a wildcard in all fields.static final org.apache.jena.graph.NodeName of the default for explicit use in GRAPHstatic final org.apache.jena.graph.NodeName of the default graph as used by parsers and in quad form of algebra.static final org.apache.jena.graph.NodeName 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 final org.apache.jena.graph.NodeName of the merge of all named graphs (use this for the graph of all named graphs) -
Constructor Summary
ConstructorsConstructorDescriptionQuad(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Deprecated.Quad(org.apache.jena.graph.Node graph, org.apache.jena.graph.Triple triple) Deprecated.Prefercreate(Node, Triple). -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.graph.TripleasTriple()Get the subject/predicate/object as a triple.static Quadcreate(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Create aQuad.static Quadcreate(org.apache.jena.graph.Node g, org.apache.jena.graph.Triple t) static QuadcreateMatch(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Create aQuad.booleanfinal org.apache.jena.graph.NodegetGraph()final org.apache.jena.graph.Nodefinal org.apache.jena.graph.Nodefinal org.apache.jena.graph.NodeinthashCode()booleanbooleanDefault, concrete graph (either generated or explicitly named)static booleanisDefaultGraph(org.apache.jena.graph.Node node) Default, concrete graph (either generated or explicitly named) -- not triple-in-quadbooleanDefault, concrete graph via generated URI (not explicitly, named)static booleanisDefaultGraphExplicit(org.apache.jena.graph.Node node) Default, explicitly named concrete graphbooleanDefault graph, explicitly named (not generated)static booleanisDefaultGraphGenerated(org.apache.jena.graph.Node node) Test whether this is a quad for the default graph (not the default graphs by explicit name)booleanIs this quad a legal data quad (legal data triple, IRI for graph)booleanisTriple()Is it really a triple?booleanstatic booleanisUnionGraph(org.apache.jena.graph.Node node) Default, concrete graph (either generated or explicitly named) -- not triple-in-quadbooleanmatches(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) booleanDoes this quad, match the other quad, allowing for wildcards.toString()
-
Field Details
-
defaultGraphIRI
public static final org.apache.jena.graph.Node defaultGraphIRIName of the default for explicit use in GRAPH -
defaultGraphNodeGenerated
public static final org.apache.jena.graph.Node defaultGraphNodeGeneratedName 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 org.apache.jena.graph.Node unionGraphName of the merge of all named graphs (use this for the graph of all named graphs) -
tripleInQuad
public static final org.apache.jena.graph.Node tripleInQuadName 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
AQuadthat has a wildcard in all fields.
-
-
Constructor Details
-
Quad
Deprecated.Prefercreate(Node, Triple). -
Quad
@Deprecated public Quad(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Deprecated.Prefercreate(Node, Node, Node, Node).
-
-
Method Details
-
create
public static Quad create(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Create aQuad. Nulls are not allowed for subject/predicate/object.Null for graph means this is a triple, but for type checking reasons, it is being carried as a
Quad. -
createMatch
public static Quad createMatch(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Create aQuad. Nulls for for subject/predicate/object are converted toNode.ANY.Null for graph means this is a triple, but for type checking reasons, it is being carried as a
Quad. -
create
-
getGraph
public final org.apache.jena.graph.Node getGraph() -
getSubject
public final org.apache.jena.graph.Node getSubject() -
getPredicate
public final org.apache.jena.graph.Node getPredicate() -
getObject
public final org.apache.jena.graph.Node getObject() -
asTriple
public org.apache.jena.graph.Triple asTriple()Get the subject/predicate/object as a triple. -
isConcrete
public boolean isConcrete() -
matches
Does this quad, match the other quad, allowing for wildcards. The wildcard node isNode.ANYand it matches any node, including a wildcard. Both this quad and the argument quad may contain wildcards, that is "matches" is symmetric:this.matches(that) == that.matches(this). -
matches
public boolean matches(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) -
isDefaultGraphGenerated
public static boolean isDefaultGraphGenerated(org.apache.jena.graph.Node node) Test whether this is a quad for the default graph (not the default graphs by explicit name) -
isDefaultGraphExplicit
public static boolean isDefaultGraphExplicit(org.apache.jena.graph.Node node) Default, explicitly named concrete graph -
isDefaultGraph
public static boolean isDefaultGraph(org.apache.jena.graph.Node node) Default, concrete graph (either generated or explicitly named) -- not triple-in-quad -
isUnionGraph
public static boolean isUnionGraph(org.apache.jena.graph.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() -
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() -
equals
-
toString
-
create(Node, Node, Node, Node).