org.openanzo.common.ontology
Interface Dataset

All Superinterfaces:
CoreThing, GraphThing
All Known Implementing Classes:
DatasetImpl

public interface Dataset
extends GraphThing

Interface for Dataset ontology class
Use the org.openanzo.common.ontology.AnzoFactory to create instances of this interface.

(URI: http://openanzo.org/types/Dataset)


RDF Schema Standard Properties
comment : A dataset for a precondition



Field Summary
static org.openrdf.model.URI defaultGraphProperty
          The Anzo Property for defaultGraph
static org.openrdf.model.URI namedGraphProperty
          The Anzo Property for namedGraph
static org.openrdf.model.URI TYPE
          The rdf:type for this ontology class
 
Method Summary
 NamedGraph addDefaultGraph()
          Adds an anonymous value for the 'defaultGraph' property
 void addDefaultGraph(NamedGraph defaultGraph)
          Adds a value for the 'defaultGraph' property
 NamedGraph addDefaultGraph(org.openrdf.model.Resource resource)
          Adds a value for the 'defaultGraph' property.
 NamedGraph addNamedGraph()
          Adds an anonymous value for the 'namedGraph' property
 void addNamedGraph(NamedGraph namedGraph)
          Adds a value for the 'namedGraph' property
 NamedGraph addNamedGraph(org.openrdf.model.Resource resource)
          Adds a value for the 'namedGraph' property.
 info.aduna.collections.iterators.CloseableIterator<NamedGraph> getDefaultGraph()
          Get an Iterator the 'defaultGraph' property values.
 info.aduna.collections.iterators.CloseableIterator<NamedGraph> getNamedGraph()
          Get an Iterator the 'namedGraph' property values.
 void removeDefaultGraph(NamedGraph defaultGraph)
          Removes a value for the 'defaultGraph' property.
 void removeDefaultGraph(org.openrdf.model.Resource defaultGraph)
          Remove a 'defaultGraph' property value.
 void removeNamedGraph(NamedGraph namedGraph)
          Removes a value for the 'namedGraph' property.
 void removeNamedGraph(org.openrdf.model.Resource namedGraph)
          Remove a 'namedGraph' property value.
 
Methods inherited from interface org.openanzo.jastor.GraphThing
getProperties, getPropertyValue, getPropertyValue, graph, setPropertyValue, setPropertyValue
 
Methods inherited from interface org.openanzo.jastor.CoreThing
clearCache, isRDFType, listStatements, registerListener, removeStatements, resource, unregisterListener, uri
 

Field Detail

TYPE

static final org.openrdf.model.URI TYPE
The rdf:type for this ontology class


defaultGraphProperty

static final org.openrdf.model.URI defaultGraphProperty
The Anzo Property for defaultGraph

(URI: http://openanzo.org/predicates/defaultGraph)



namedGraphProperty

static final org.openrdf.model.URI namedGraphProperty
The Anzo Property for namedGraph

(URI: http://openanzo.org/predicates/namedGraph)


Method Detail

getDefaultGraph

info.aduna.collections.iterators.CloseableIterator<NamedGraph> getDefaultGraph()
                                                                               throws JastorException
Get an Iterator the 'defaultGraph' property values. This Iteartor may be used to remove all such values.

Returns:
Iterator of NamedGraph
Throws:
JastorException
See Also:
defaultGraphProperty

addDefaultGraph

void addDefaultGraph(NamedGraph defaultGraph)
                     throws JastorException
Adds a value for the 'defaultGraph' property

Parameters:
defaultGraph - The NamedGraph to add
Throws:
JastorException
See Also:
defaultGraphProperty

addDefaultGraph

NamedGraph addDefaultGraph()
                           throws JastorException
Adds an anonymous value for the 'defaultGraph' property

Returns:
The anoymous NamedGraph created
Throws:
JastorException
See Also:
defaultGraphProperty

addDefaultGraph

NamedGraph addDefaultGraph(org.openrdf.model.Resource resource)
                           throws JastorException
Adds a value for the 'defaultGraph' property. This method is equivalent constructing a new instance of NamedGraph with the factory and calling addDefaultGraph(org.openanzo.common.ontology.NamedGraph defaultGraph) The resource argument have rdf:type http://openanzo.org/types/NamedGraph. That is, this method should not be used as a shortcut for creating new objects in the model.

Parameters:
resource - The Resource to add
Returns:
The org.openanzo.common.ontology.NamedGraph created
Throws:
JastorException
See Also:
defaultGraphProperty

removeDefaultGraph

void removeDefaultGraph(NamedGraph defaultGraph)
                        throws JastorException
Removes a value for the 'defaultGraph' property. This method should not be invoked while iterator through values. In that case, the remove() method of the Iterator itself should be used.

Parameters:
defaultGraph - The NamedGraph to remove
Throws:
JastorException
See Also:
defaultGraphProperty

removeDefaultGraph

void removeDefaultGraph(org.openrdf.model.Resource defaultGraph)
                        throws JastorException
Remove a 'defaultGraph' property value. This method should not be invoked while iterator through values. In that case, the remove() method of the Iterator itself should be used.

Parameters:
defaultGraph - NamedGraph, the value to remove
Throws:
JastorException
See Also:
defaultGraphProperty

getNamedGraph

info.aduna.collections.iterators.CloseableIterator<NamedGraph> getNamedGraph()
                                                                             throws JastorException
Get an Iterator the 'namedGraph' property values. This Iteartor may be used to remove all such values.

Returns:
Iterator of NamedGraph
Throws:
JastorException
See Also:
namedGraphProperty

addNamedGraph

void addNamedGraph(NamedGraph namedGraph)
                   throws JastorException
Adds a value for the 'namedGraph' property

Parameters:
namedGraph - The NamedGraph to add
Throws:
JastorException
See Also:
namedGraphProperty

addNamedGraph

NamedGraph addNamedGraph()
                         throws JastorException
Adds an anonymous value for the 'namedGraph' property

Returns:
The anoymous NamedGraph created
Throws:
JastorException
See Also:
namedGraphProperty

addNamedGraph

NamedGraph addNamedGraph(org.openrdf.model.Resource resource)
                         throws JastorException
Adds a value for the 'namedGraph' property. This method is equivalent constructing a new instance of NamedGraph with the factory and calling addNamedGraph(org.openanzo.common.ontology.NamedGraph namedGraph) The resource argument have rdf:type http://openanzo.org/types/NamedGraph. That is, this method should not be used as a shortcut for creating new objects in the model.

Parameters:
resource - The Resource to add
Returns:
The org.openanzo.common.ontology.NamedGraph created
Throws:
JastorException
See Also:
namedGraphProperty

removeNamedGraph

void removeNamedGraph(NamedGraph namedGraph)
                      throws JastorException
Removes a value for the 'namedGraph' property. This method should not be invoked while iterator through values. In that case, the remove() method of the Iterator itself should be used.

Parameters:
namedGraph - The NamedGraph to remove
Throws:
JastorException
See Also:
namedGraphProperty

removeNamedGraph

void removeNamedGraph(org.openrdf.model.Resource namedGraph)
                      throws JastorException
Remove a 'namedGraph' property value. This method should not be invoked while iterator through values. In that case, the remove() method of the Iterator itself should be used.

Parameters:
namedGraph - NamedGraph, the value to remove
Throws:
JastorException
See Also:
namedGraphProperty


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