org.openanzo.owl.dataset
Class OntologyImpl

java.lang.Object
  extended by org.openanzo.jastor.DatasetThingImpl
      extended by org.openanzo.owl.dataset.OntologyImpl
All Implemented Interfaces:
CoreThing, DatasetThing, Ontology

public class OntologyImpl
extends DatasetThingImpl
implements Ontology

Implementation of Ontology Use the org.openanzo.owl.dataset.OWL11Factory to create instances of this class.

(URI: http://www.w3.org/2002/07/owl#Ontology)



Field Summary
 
Fields inherited from interface org.openanzo.owl.dataset.Ontology
TYPE
 
Method Summary
 DatasetThing addImports()
          Adds an anonymous value for the 'Imports' property
 void addImports(DatasetThing Imports)
          Adds a value for the 'Imports' property
 DatasetThing addImports(org.openrdf.model.Resource resource)
          Adds a value for the 'Imports' property.
 info.aduna.collections.iterators.CloseableIterator<DatasetThing> getImports()
          Get an Iterator the 'Imports' property values.
 java.util.Collection<org.openrdf.model.Statement> listStatements()
          Get set of statements that makeup this THINGS's properties and types
 void registerListener(OntologyListener listener)
          Register a OntologyListener
 void registerWithEventManager()
          Register the object listeners with the dataset's event manager
 void removeImports(DatasetThing Imports)
          Removes a value for the 'Imports' property.
 void unregisterListener(OntologyListener listener)
          Unregister a OntologyListener
 void unregisterWithEventManager()
          Unregister the object listeners with the dataset's event manager
 
Methods inherited from class org.openanzo.jastor.DatasetThingImpl
clearCache, dataset, equals, getLiteral, getLiteralValue, getProperties, getPropertyValue, getPropertyValue, getPropertyValues, getPropertyValues, isRDFType, namedGraphUri, registerListener, removeStatements, resource, setPropertyValue, setPropertyValue, toString, unregisterListener, uri
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openanzo.jastor.DatasetThing
dataset, getProperties, getPropertyValue, getPropertyValue, getPropertyValues, getPropertyValues, namedGraphUri, setPropertyValue, setPropertyValue
 
Methods inherited from interface org.openanzo.jastor.CoreThing
clearCache, isRDFType, registerListener, removeStatements, resource, unregisterListener, uri
 

Method Detail

listStatements

public java.util.Collection<org.openrdf.model.Statement> listStatements()
Description copied from interface: CoreThing
Get set of statements that makeup this THINGS's properties and types

Specified by:
listStatements in interface CoreThing
Overrides:
listStatements in class DatasetThingImpl
Returns:
set of statements that makeup this THINGS's properties and types

getImports

public info.aduna.collections.iterators.CloseableIterator<DatasetThing> getImports()
                                                                            throws JastorException
Description copied from interface: Ontology
Get an Iterator the 'Imports' property values. This Iteartor may be used to remove all such values.

Specified by:
getImports in interface Ontology
Returns:
Iterator of DatasetThing
Throws:
JastorException
See Also:
Ontology.ImportsProperty

addImports

public void addImports(DatasetThing Imports)
                throws JastorException
Description copied from interface: Ontology
Adds a value for the 'Imports' property

Specified by:
addImports in interface Ontology
Parameters:
Imports - The DatasetThing to add
Throws:
JastorException
See Also:
Ontology.ImportsProperty

addImports

public DatasetThing addImports()
                        throws JastorException
Description copied from interface: Ontology
Adds an anonymous value for the 'Imports' property

Specified by:
addImports in interface Ontology
Returns:
The anoymous DatasetThing created
Throws:
JastorException
See Also:
Ontology.ImportsProperty

addImports

public DatasetThing addImports(org.openrdf.model.Resource resource)
                        throws JastorException
Description copied from interface: Ontology
Adds a value for the 'Imports' property. This method is equivalent constructing a new instance of DatasetThing with the factory and calling addImports(org.openanzo.jastor.DatasetThing Imports) The resource argument have rdf:type http://www.w3.org/2000/01/rdf-schema#Resource. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
addImports in interface Ontology
Parameters:
resource - The Resource to add
Returns:
org.openanzo.jastor.DatasetThing, value added
Throws:
JastorException
See Also:
Ontology.ImportsProperty

removeImports

public void removeImports(DatasetThing Imports)
                   throws JastorException
Description copied from interface: Ontology
Removes a value for the 'Imports' property. This method should not be invoked while iterator through values. In that case, the remove() method of the Iterator itself should be used.

Specified by:
removeImports in interface Ontology
Parameters:
Imports - The DatasetThing to remove
Throws:
JastorException
See Also:
Ontology.ImportsProperty

registerWithEventManager

public void registerWithEventManager()
Register the object listeners with the dataset's event manager


unregisterWithEventManager

public void unregisterWithEventManager()
Unregister the object listeners with the dataset's event manager


registerListener

public void registerListener(OntologyListener listener)
Description copied from interface: Ontology
Register a OntologyListener

Specified by:
registerListener in interface Ontology
Parameters:
listener - OntologyListener to register

unregisterListener

public void unregisterListener(OntologyListener listener)
Description copied from interface: Ontology
Unregister a OntologyListener

Specified by:
unregisterListener in interface Ontology
Parameters:
listener - OntologyListener to unregister


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