org.openanzo.common.rdb.layout
Class Quad

java.lang.Object
  extended by org.openanzo.common.rdb.layout.Quad

public class Quad
extends java.lang.Object

Data structure to hold quads from Glitter

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
Quad(IRdbTerm namedGraphTerm, IRdbTerm subjTerm, IRdbTerm predTerm, IRdbTerm objTerm)
          Create a new Quad using IRdbTerms
Quad(NodeConverter converter, long namedGraphId, long subjId, long predId, long objId)
          Create a new Quad using IDs
 
Method Summary
 Triple asTriple()
          Get a new Triple object representing this quad
 IRdbTerm getNamedGraphTerm()
          Get the namedGraphTerm
 IRdbTerm getObjTerm()
          Get the objTerm
 IRdbTerm getPredTerm()
          Get the predTerm
 IRdbTerm getSubjTerm()
          Get the subjTerm
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Quad

public Quad(NodeConverter converter,
            long namedGraphId,
            long subjId,
            long predId,
            long objId)
Create a new Quad using IDs

Parameters:
converter - Converter that converts between the Glitter and Anzo types
namedGraphId - stored ID of namedGraphURI
subjId - stored ID of subject
predId - stored ID of predicate
objId - stored ID of object

Quad

public Quad(IRdbTerm namedGraphTerm,
            IRdbTerm subjTerm,
            IRdbTerm predTerm,
            IRdbTerm objTerm)
Create a new Quad using IRdbTerms

Parameters:
namedGraphTerm - namedGraph's URI
subjTerm - subject of statement
predTerm - predicate of statement
objTerm - object of statement
Method Detail

asTriple

public Triple asTriple()
Get a new Triple object representing this quad

Returns:
a new Triple object representing this quad

getNamedGraphTerm

public IRdbTerm getNamedGraphTerm()
Get the namedGraphTerm

Returns:
the namedGraphTerm

getSubjTerm

public IRdbTerm getSubjTerm()
Get the subjTerm

Returns:
the subjTerm

getPredTerm

public IRdbTerm getPredTerm()
Get the predTerm

Returns:
the predTerm

getObjTerm

public IRdbTerm getObjTerm()
Get the objTerm

Returns:
the objTerm


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.