com.hp.hpl.mesa.rdf.jena.rdb
Class StatementImplRDB

java.lang.Object
  |
  +--com.hp.hpl.mesa.rdf.jena.common.ResourceImpl
        |
        +--com.hp.hpl.mesa.rdf.jena.common.StatementImpl
              |
              +--com.hp.hpl.mesa.rdf.jena.rdb.StatementImplRDB
All Implemented Interfaces:
HasRDBID, RDFNode, Resource, ResourceI, Statement

public class StatementImplRDB
extends StatementImpl
implements HasRDBID

A variation on the default Statement implementation supports reference to a reified version via an RDB resource ID.

Version:
$Revision: 1.2 $ on $Date: 2002/09/04 08:47:38 $
Author:
Dave Reynolds

Constructor Summary
StatementImplRDB(Resource subject, Property predicate, RDFNode object)
          Creates new StatementImpl
StatementImplRDB(Resource subject, Property predicate, RDFNode object, AnonId id, Model model)
          Creates new StatementImpl
StatementImplRDB(Resource subject, Property predicate, RDFNode object, Model model)
          Creates new StatementImpl
StatementImplRDB(Resource subject, Property predicate, RDFNode object, java.lang.String URI, Model model)
          Creates new StatementImpl
 
Method Summary
static StatementImplRDB createFrom(Statement s, Model m)
          Factory method to copy a Statement with all its parameters including uri/anonid to an RDB statement
 boolean getIsReifiedOnly()
          get flag to indicate that the statement is only reified and not asserted
 IDBID getRDBId()
          Return the unique ID for the resource associated with this statement.
 IDBID getRDBNSId()
          Return the unique ID for the resource's namespace or null for resources which have not yet be assigned an ID.
 IDBID getRDBStatementId()
          Return the unique ID for the statement itself
 void setIsReifiedOnly(boolean isOnlyReified)
          set flag to indicate that the statement is only reified and not asserted
 void setRDBId(IDBID id)
          Set the unique ID for the resource associated with this statement
 void setRDBNSId(IDBID id)
          Set the unique ID for the resource's namespace
 void setRDBStatementId(IDBID id)
          Set the unique ID for the statement itself
 void setURI(Resource r)
          Change the uri/anonid assigned to the statement to match that of the given resource
 
Methods inherited from class com.hp.hpl.mesa.rdf.jena.common.StatementImpl
equals, getAlt, getBag, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLanguage, getLiteral, getLocation, getLong, getObject, getObject, getPredicate, getProperty, getResource, getResource, getSeq, getShort, getStatementProperty, getString, getSubject, getWellFormed, hashCode, isReified, port, remove, removeProperties, set, set, set, set, set, set, set, set, set, set, set, setLocation, toString
 
Methods inherited from class com.hp.hpl.mesa.rdf.jena.common.ResourceImpl
abort, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, getEmbeddedResource, getId, getLocalName, getModel, getNameSpace, getURI, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, isAnon, listProperties, listProperties
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.mesa.rdf.jena.model.Resource
abort, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, getId, getLocalName, getModel, getNameSpace, getURI, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, isAnon, listProperties, listProperties
 

Constructor Detail

StatementImplRDB

public StatementImplRDB(Resource subject,
                        Property predicate,
                        RDFNode object)
Creates new StatementImpl


StatementImplRDB

public StatementImplRDB(Resource subject,
                        Property predicate,
                        RDFNode object,
                        Model model)
                 throws RDFException
Creates new StatementImpl


StatementImplRDB

public StatementImplRDB(Resource subject,
                        Property predicate,
                        RDFNode object,
                        AnonId id,
                        Model model)
                 throws RDFException
Creates new StatementImpl


StatementImplRDB

public StatementImplRDB(Resource subject,
                        Property predicate,
                        RDFNode object,
                        java.lang.String URI,
                        Model model)
                 throws RDFException
Creates new StatementImpl

Method Detail

createFrom

public static StatementImplRDB createFrom(Statement s,
                                          Model m)
                                   throws RDFException
Factory method to copy a Statement with all its parameters including uri/anonid to an RDB statement

Parameters:
s - the statement to be copied
m - the model to which the new statement should be attached
RDFException

getRDBStatementId

public IDBID getRDBStatementId()
Return the unique ID for the statement itself


setRDBStatementId

public void setRDBStatementId(IDBID id)
Set the unique ID for the statement itself


getRDBId

public IDBID getRDBId()
Return the unique ID for the resource associated with this statement.

Specified by:
getRDBId in interface HasRDBID

setRDBId

public void setRDBId(IDBID id)
Set the unique ID for the resource associated with this statement

Specified by:
setRDBId in interface HasRDBID

getRDBNSId

public IDBID getRDBNSId()
Return the unique ID for the resource's namespace or null for resources which have not yet be assigned an ID.

Specified by:
getRDBNSId in interface HasRDBID

setRDBNSId

public void setRDBNSId(IDBID id)
Set the unique ID for the resource's namespace

Specified by:
setRDBNSId in interface HasRDBID

getIsReifiedOnly

public boolean getIsReifiedOnly()
get flag to indicate that the statement is only reified and not asserted


setIsReifiedOnly

public void setIsReifiedOnly(boolean isOnlyReified)
set flag to indicate that the statement is only reified and not asserted


setURI

public void setURI(Resource r)
Change the uri/anonid assigned to the statement to match that of the given resource



Copyright © 2001 Hewlett-Packard. All Rights Reserved.