com.hp.hpl.jena.sparql.core
Class Quad

java.lang.Object
  extended by com.hp.hpl.jena.sparql.core.Quad

public class Quad
extends Object


Field Summary
static com.hp.hpl.jena.graph.Node defaultGraphIRI
          Name of the default for explict use in GRAPH
static com.hp.hpl.jena.graph.Node defaultGraphNodeGenerated
          Name of the default graph as used by parsers and in quad form of algebra.
static com.hp.hpl.jena.graph.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 com.hp.hpl.jena.graph.Node unionGraph
          Name of the merge of all named graphs (use this for the graph of all named graphs)
 
Constructor Summary
Quad(com.hp.hpl.jena.graph.Node g, com.hp.hpl.jena.graph.Node s, com.hp.hpl.jena.graph.Node p, com.hp.hpl.jena.graph.Node o)
           
Quad(com.hp.hpl.jena.graph.Node graph, com.hp.hpl.jena.graph.Triple triple)
           
 
Method Summary
 com.hp.hpl.jena.graph.Triple asTriple()
          Get as a triple - useful because quads often come in blocks for the same graph
 boolean equals(Object other)
           
 com.hp.hpl.jena.graph.Node getGraph()
           
 com.hp.hpl.jena.graph.Node getObject()
           
 com.hp.hpl.jena.graph.Node getPredicate()
           
 com.hp.hpl.jena.graph.Node getSubject()
           
 int hashCode()
           
 boolean isConcrete()
           
 boolean isDefaultGraph()
          Default, concrete graph (either generated or explicitly named)
static boolean isDefaultGraph(com.hp.hpl.jena.graph.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(com.hp.hpl.jena.graph.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(com.hp.hpl.jena.graph.Node node)
          Test whether this is a quad for the default graph (not the default graphs by explicit name)
static boolean isQuadDefaultGraphGenerated(com.hp.hpl.jena.graph.Node node)
          Deprecated. use Quad.isDefaultGraphGenerated
static boolean isQuadUnionGraph(com.hp.hpl.jena.graph.Node node)
          Deprecated. use Quad.isUnionGraph
 boolean isTriple()
          Is it really a triple?
 boolean isUnionGraph()
          node used for the RDF merge of named graphs
static boolean isUnionGraph(com.hp.hpl.jena.graph.Node node)
          Default, concrete graph (either generated or explicitly named) -- not triple-in-quad
 boolean matches(com.hp.hpl.jena.graph.Node g, com.hp.hpl.jena.graph.Node s, com.hp.hpl.jena.graph.Node p, com.hp.hpl.jena.graph.Node o)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

defaultGraphNodeGenerated

public static final com.hp.hpl.jena.graph.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.


defaultGraphIRI

public static final com.hp.hpl.jena.graph.Node defaultGraphIRI
Name of the default for explict use in GRAPH


unionGraph

public static final com.hp.hpl.jena.graph.Node unionGraph
Name of the merge of all named graphs (use this for the graph of all named graphs)


tripleInQuad

public static final com.hp.hpl.jena.graph.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.

Constructor Detail

Quad

public Quad(com.hp.hpl.jena.graph.Node graph,
            com.hp.hpl.jena.graph.Triple triple)

Quad

public Quad(com.hp.hpl.jena.graph.Node g,
            com.hp.hpl.jena.graph.Node s,
            com.hp.hpl.jena.graph.Node p,
            com.hp.hpl.jena.graph.Node o)
Method Detail

getGraph

public final com.hp.hpl.jena.graph.Node getGraph()

getSubject

public final com.hp.hpl.jena.graph.Node getSubject()

getPredicate

public final com.hp.hpl.jena.graph.Node getPredicate()

getObject

public final com.hp.hpl.jena.graph.Node getObject()

asTriple

public com.hp.hpl.jena.graph.Triple asTriple()
Get as a triple - useful because quads often come in blocks for the same graph


isConcrete

public boolean isConcrete()

isQuadDefaultGraphGenerated

@Deprecated
public static boolean isQuadDefaultGraphGenerated(com.hp.hpl.jena.graph.Node node)
Deprecated. use Quad.isDefaultGraphGenerated


isDefaultGraphGenerated

public static boolean isDefaultGraphGenerated(com.hp.hpl.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(com.hp.hpl.jena.graph.Node node)
Default, concrete graph (either generated or explicitly named) -- not triple-in-quad


isDefaultGraph

public static boolean isDefaultGraph(com.hp.hpl.jena.graph.Node node)
Default, concrete graph (either generated or explicitly named) -- not triple-in-quad


isQuadUnionGraph

@Deprecated
public static boolean isQuadUnionGraph(com.hp.hpl.jena.graph.Node node)
Deprecated. use Quad.isUnionGraph


isUnionGraph

public static boolean isUnionGraph(com.hp.hpl.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 explciitly 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?


hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

matches

public boolean matches(com.hp.hpl.jena.graph.Node g,
                       com.hp.hpl.jena.graph.Node s,
                       com.hp.hpl.jena.graph.Node p,
                       com.hp.hpl.jena.graph.Node o)

toString

public String toString()
Overrides:
toString in class Object


Licenced under the Apache License, Version 2.0