org.openanzo.owl
Class OntologyImpl

java.lang.Object
  extended by org.openanzo.jastor.GraphThingImpl
      extended by org.openanzo.owl.OntologyImpl
All Implemented Interfaces:
CoreThing, GraphThing, Ontology

public class OntologyImpl
extends GraphThingImpl
implements Ontology

Implementation of Ontology Use the org.openanzo.owl.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.Ontology
TYPE
 
Method Summary
 GraphThing addImports()
          Adds an anonymous value for the 'Imports' property
 void addImports(GraphThing Imports)
          Adds a value for the 'Imports' property
 GraphThing addImports(org.openrdf.model.Resource resource)
          Adds a value for the 'Imports' property.
 info.aduna.collections.iterators.CloseableIterator<GraphThing> 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 removeImports(GraphThing Imports)
          Removes a value for the 'Imports' property.
 void removeImports(org.openrdf.model.Resource Imports)
          Remove a 'Imports' property value.
 
Methods inherited from class org.openanzo.jastor.GraphThingImpl
clearCache, equals, getLiteral, getLiteralValue, getProperties, getPropertyValue, getPropertyValue, graph, isRDFType, 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.GraphThing
getProperties, getPropertyValue, getPropertyValue, graph, 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 GraphThingImpl
Returns:
set of statements that makeup this THINGS's properties and types

getImports

public info.aduna.collections.iterators.CloseableIterator<GraphThing> 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 GraphThing
Throws:
JastorException
See Also:
Ontology.ImportsProperty

addImports

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

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

addImports

public GraphThing 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 GraphThing created
Throws:
JastorException
See Also:
Ontology.ImportsProperty

addImports

public GraphThing 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 GraphThing with the factory and calling addImports(org.openanzo.jastor.GraphThing 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:
The org.openanzo.jastor.GraphThing created
Throws:
JastorException
See Also:
Ontology.ImportsProperty

removeImports

public void removeImports(GraphThing 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 GraphThing to remove
Throws:
JastorException
See Also:
Ontology.ImportsProperty

removeImports

public void removeImports(org.openrdf.model.Resource Imports)
                   throws JastorException
Description copied from interface: Ontology
Remove a 'Imports' 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.

Specified by:
removeImports in interface Ontology
Parameters:
Imports - GraphThing, the value to remove
Throws:
JastorException
See Also:
Ontology.ImportsProperty


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