org.openrdf.sesame.sailimpl.rdbms.model
Class IdURI

java.lang.Object
  extended byorg.openrdf.model.impl.URIImpl
      extended byorg.openrdf.sesame.sailimpl.rdbms.model.IdURI
All Implemented Interfaces:
Comparable, IdResource, IdValue, Resource, Serializable, URI, Value

public class IdURI
extends URIImpl
implements IdResource

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openrdf.model.impl.URIImpl
RDF_ALT, RDF_BAG, RDF_FIRST, RDF_LIST, RDF_NIL, RDF_OBJECT, RDF_PREDICATE, RDF_PROPERTY, RDF_REST, RDF_SEQ, RDF_STATEMENT, RDF_SUBJECT, RDF_TYPE, RDF_VALUE, RDF_XMLLITERAL, RDFS_CLASS, RDFS_COMMENT, RDFS_CONTAINER, RDFS_CONTAINERMEMBERSHIPPROPERTY, RDFS_DATATYPE, RDFS_DOMAIN, RDFS_ISDEFINEDBY, RDFS_LABEL, RDFS_LITERAL, RDFS_MEMBER, RDFS_RANGE, RDFS_RESOURCE, RDFS_SEEALSO, RDFS_SUBCLASSOF, RDFS_SUBPROPERTYOF
 
Constructor Summary
IdURI(RdfSource source, String uri, int internalId)
           
IdURI(RdfSource source, String namespace, String localname, int internalId)
           
IdURI(RdfSource source, URI uri, int internalId)
           
 
Method Summary
 void addProperty(URI property, Value value)
          Adds a property to this Resource in the RDF graph.
 int getInternalId()
          Gets the ID that is used in the RDBMS for this Value.
 StatementIterator getObjectStatements()
          Gets all statements from the RDF graph for which this value is the object.
 StatementIterator getPredicateStatements()
          Gets all statements from the RDF graph for which this URI is the predicate.
 RdfSource getRdfSource()
          Returns the RdfSource that contains this IdValue.
 StatementIterator getSubjectStatements()
          Gets all statements from the RDF graph for which this resource is the subject.
 void setInternalId(int internalId)
           
 
Methods inherited from class org.openrdf.model.impl.URIImpl
compareTo, equals, getLocalName, getNamespace, getURI, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

IdURI

public IdURI(RdfSource source,
             String uri,
             int internalId)

IdURI

public IdURI(RdfSource source,
             String namespace,
             String localname,
             int internalId)

IdURI

public IdURI(RdfSource source,
             URI uri,
             int internalId)
Method Detail

getRdfSource

public RdfSource getRdfSource()
Description copied from interface: IdValue
Returns the RdfSource that contains this IdValue. IDs are only unique within a single repository, but an application could use several repositories at the same time, passing IdValue generated by one Sail to another Sail. In such situations, the ID of the first Sail cannot be used by the second Sail.

Specified by:
getRdfSource in interface IdValue

getInternalId

public int getInternalId()
Description copied from interface: IdValue
Gets the ID that is used in the RDBMS for this Value.

Specified by:
getInternalId in interface IdValue

setInternalId

public void setInternalId(int internalId)

getSubjectStatements

public StatementIterator getSubjectStatements()
                                       throws GraphException
Description copied from interface: Resource
Gets all statements from the RDF graph for which this resource is the subject.

Specified by:
getSubjectStatements in interface Resource
Overrides:
getSubjectStatements in class URIImpl
Throws:
GraphException

getPredicateStatements

public StatementIterator getPredicateStatements()
                                         throws GraphException
Description copied from interface: URI
Gets all statements from the RDF graph for which this URI is the predicate.

Specified by:
getPredicateStatements in interface URI
Overrides:
getPredicateStatements in class URIImpl
Throws:
GraphException

getObjectStatements

public StatementIterator getObjectStatements()
                                      throws GraphException
Description copied from interface: Value
Gets all statements from the RDF graph for which this value is the object.

Specified by:
getObjectStatements in interface Value
Overrides:
getObjectStatements in class URIImpl
Throws:
GraphException

addProperty

public void addProperty(URI property,
                        Value value)
                 throws GraphException
Description copied from interface: Resource
Adds a property to this Resource in the RDF graph. The result is that a statement of the form (this, property, value) is added.

Specified by:
addProperty in interface Resource
Overrides:
addProperty in class URIImpl
Throws:
GraphException


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.