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 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)
 boolean isDefaultGraphGenerated()
          Default, concrete graph via generated URI (not explciitly named)
 boolean isDefaultGraphIRI()
           
static boolean isQuadDefaultGraphGenerated(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 isQuadUnionGraph(com.hp.hpl.jena.graph.Node node)
          node used for the RDF merge of named graphs
 boolean isTriple()
          Is it really a triple?
 boolean isUnionGraph()
           
 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 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


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.


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)

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

public static boolean isQuadDefaultGraphGenerated(com.hp.hpl.jena.graph.Node node)
Test whether this is a quad for the default graph (not the default graphs by explicit name)


isDefaultGraph

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


isDefaultGraphGenerated

public boolean isDefaultGraphGenerated()
Default, concrete graph via generated URI (not explciitly named)


isDefaultGraph

public boolean isDefaultGraph()
Default, concrete graph (either generated or explicitly named)


isQuadUnionGraph

public static boolean isQuadUnionGraph(com.hp.hpl.jena.graph.Node node)
node used for the RDF merge of named graphs


isTriple

public boolean isTriple()
Is it really a triple?


isDefaultGraphIRI

public boolean isDefaultGraphIRI()

isUnionGraph

public boolean isUnionGraph()

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


Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010 Epimorphics Ltd.