org.openanzo.jastor
Interface DatasetThing

All Superinterfaces:
CoreThing
All Known Subinterfaces:
_Property, _Resource, _Thing, Alt, AnnotationProperty, AntisymmetricProperty, Bag, Class, Class, Constant, Container, ContainerMembershipProperty, DataRange, DataRestriction, Datatype, DatatypeProperty, FunctionalDataPropety, FunctionalObjectProperty, FunctionalProperty, FunctionalPropety, Individual, InverseFunctionalProperty, IrreflexiveProperty, List, Literal, Nothing, ObjectProperty, ObjectRestriction, Ontology, OWLEntity, ReflexiveProperty, Restriction, Seq, SymmetricProperty, TransitiveProperty
All Known Implementing Classes:
_PropertyImpl, _ResourceImpl, _ThingImpl, AltImpl, AnnotationPropertyImpl, AntisymmetricPropertyImpl, BagImpl, ClassImpl, ClassImpl, ConstantImpl, ContainerImpl, ContainerMembershipPropertyImpl, DataRangeImpl, DataRestrictionImpl, DatasetThingImpl, DatatypeImpl, DatatypePropertyImpl, FunctionalDataPropetyImpl, FunctionalObjectPropertyImpl, FunctionalPropertyImpl, FunctionalPropetyImpl, IndividualImpl, InverseFunctionalPropertyImpl, IrreflexivePropertyImpl, ListImpl, LiteralImpl, NothingImpl, ObjectPropertyImpl, ObjectRestrictionImpl, OntologyImpl, OWLEntityImpl, ReflexivePropertyImpl, RestrictionImpl, SeqImpl, SymmetricPropertyImpl, TransitivePropertyImpl

public interface DatasetThing
extends CoreThing

Thing is the base ontology class of all other ontology classes for classes that reside within a dataset.

Author:
Joe Betz, Ben Szekely (bhszekel@us.ibm.com)

Field Summary
 
Fields inherited from interface org.openanzo.jastor.CoreThing
TYPE
 
Method Summary
 IDataset dataset()
          Get the Dataset where this THING resides
 info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> getProperties(org.openrdf.model.Resource... context)
          Retrieve set of statements containing all properties for THING's resource
 org.openrdf.model.Value getPropertyValue(java.lang.String property, org.openrdf.model.Resource... context)
          Retrieve single DatasetProperty for the given property within set of provided contexts
 org.openrdf.model.Value getPropertyValue(org.openrdf.model.URI property, org.openrdf.model.Resource... context)
          Retrieve single DatasetProperty for the given property within set of provided contexts
 DatasetPropertyIterator<org.openrdf.model.Value> getPropertyValues(java.lang.String property, org.openrdf.model.Resource... context)
          Retrieve iterator of DatasetProperties for the given property within set of provided contexts
 DatasetPropertyIterator<org.openrdf.model.Value> getPropertyValues(org.openrdf.model.URI property, org.openrdf.model.Resource... context)
          Retrieve iterator of DatasetProperties for the given property within set of provided contexts
 org.openrdf.model.URI namedGraphUri()
          Get the URI of the NamedGraph where this THING resides
 void setPropertyValue(java.lang.String property, org.openrdf.model.Value value, org.openrdf.model.Resource context)
          Set the property value for THING within given context
 void setPropertyValue(org.openrdf.model.URI property, org.openrdf.model.Value value, org.openrdf.model.Resource context)
          Set the property value for THING within given context
 
Methods inherited from interface org.openanzo.jastor.CoreThing
clearCache, isRDFType, listStatements, registerListener, removeStatements, resource, unregisterListener, uri
 

Method Detail

dataset

IDataset dataset()
Get the Dataset where this THING resides

Returns:
Dataset where this THING resides

namedGraphUri

org.openrdf.model.URI namedGraphUri()
Get the URI of the NamedGraph where this THING resides

Returns:
URI of the NamedGraph where this THING resides

getPropertyValues

DatasetPropertyIterator<org.openrdf.model.Value> getPropertyValues(org.openrdf.model.URI property,
                                                                   org.openrdf.model.Resource... context)
Retrieve iterator of DatasetProperties for the given property within set of provided contexts

Parameters:
property - property containing DatasetProperty
context - context to do search over
Returns:
iterator of DatasetProperties for the given property within set of provided contexts

getPropertyValues

DatasetPropertyIterator<org.openrdf.model.Value> getPropertyValues(java.lang.String property,
                                                                   org.openrdf.model.Resource... context)
Retrieve iterator of DatasetProperties for the given property within set of provided contexts

Parameters:
property - property containing DatasetProperty
context - context to do search over
Returns:
iterator of DatasetProperties for the given property within set of provided contexts

getPropertyValue

org.openrdf.model.Value getPropertyValue(org.openrdf.model.URI property,
                                         org.openrdf.model.Resource... context)
Retrieve single DatasetProperty for the given property within set of provided contexts

Parameters:
property - property containing DatasetProperty
context - context to do search over
Returns:
single DatasetProperty for the given property within set of provided contexts

getPropertyValue

org.openrdf.model.Value getPropertyValue(java.lang.String property,
                                         org.openrdf.model.Resource... context)
Retrieve single DatasetProperty for the given property within set of provided contexts

Parameters:
property - property containing DatasetProperty
context - context to do search over
Returns:
single DatasetProperty for the given property within set of provided contexts

getProperties

info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> getProperties(org.openrdf.model.Resource... context)
Retrieve set of statements containing all properties for THING's resource

Parameters:
context - context to do search over
Returns:
set of statements containing all properties for THING's resource

setPropertyValue

void setPropertyValue(org.openrdf.model.URI property,
                      org.openrdf.model.Value value,
                      org.openrdf.model.Resource context)
Set the property value for THING within given context

Parameters:
property - URI of property to set
value - Value of property to set
context - Context where statement should be created

setPropertyValue

void setPropertyValue(java.lang.String property,
                      org.openrdf.model.Value value,
                      org.openrdf.model.Resource context)
Set the property value for THING within given context

Parameters:
property - String representation of URI of property to set
value - Value of property to set
context - Context where statement should be created


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