public class Quad extends Object
Modifier and Type | Field and Description |
---|---|
static Node |
defaultGraphIRI
Name of the default for explict use in GRAPH
|
static Node |
defaultGraphNodeGenerated
Name of the default graph as used by parsers and in quad form of algebra.
|
static 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.
|
static Node |
unionGraph
Name of the merge of all named graphs (use this for the graph of all named graphs)
|
Constructor and Description |
---|
Quad(Node g,
Node s,
Node p,
Node o) |
Quad(Node graph,
Triple triple) |
Modifier and Type | Method and Description |
---|---|
Triple |
asTriple()
Get as a triple - useful because quads often come in blocks for the same graph
|
static Quad |
create(Node g,
Node s,
Node p,
Node o) |
static Quad |
create(Node g,
Triple t) |
boolean |
equals(Object other) |
Node |
getGraph() |
Node |
getObject() |
Node |
getPredicate() |
Node |
getSubject() |
int |
hashCode() |
boolean |
isConcrete() |
boolean |
isDefaultGraph()
Default, concrete graph (either generated or explicitly named)
|
static boolean |
isDefaultGraph(Node node)
Default, concrete graph (either generated or explicitly named) -- not triple-in-quad
|
boolean |
isDefaultGraphExplicit()
Default, concrete graph via generated URI (not explciitly named)
|
static boolean |
isDefaultGraphExplicit(Node node)
Default, concrete graph (either generated or explicitly named) -- not triple-in-quad
|
boolean |
isDefaultGraphGenerated()
Default graph, explicitly named (not generated)
|
static boolean |
isDefaultGraphGenerated(Node node)
Test whether this is a quad for the default graph (not the default graphs by explicit name)
|
boolean |
isLegalAsData()
Is this quad a legal data quad (legal data triple, IRI for graph)
|
boolean |
isTriple()
Is it really a triple?
|
boolean |
isUnionGraph()
node used for the RDF merge of named graphs
|
static boolean |
isUnionGraph(Node node)
Default, concrete graph (either generated or explicitly named) -- not triple-in-quad
|
boolean |
matches(Node g,
Node s,
Node p,
Node o) |
String |
toString() |
public static final Node defaultGraphNodeGenerated
public static final Node defaultGraphIRI
public static final Node unionGraph
public static final Node tripleInQuad
public final Node getGraph()
public final Node getSubject()
public final Node getPredicate()
public final Node getObject()
public Triple asTriple()
public boolean isConcrete()
public static boolean isDefaultGraphGenerated(Node node)
public static boolean isDefaultGraphExplicit(Node node)
public static boolean isDefaultGraph(Node node)
public static boolean isUnionGraph(Node node)
public boolean isDefaultGraphExplicit()
public boolean isDefaultGraphGenerated()
public boolean isDefaultGraph()
public boolean isUnionGraph()
public boolean isTriple()
public boolean isLegalAsData()
Licenced under the Apache License, Version 2.0