org.openanzo.rdfs.dataset
Interface Class

All Superinterfaces:
_Resource, CoreThing, DatasetThing
All Known Subinterfaces:
_Thing, Class, Datatype, Nothing
All Known Implementing Classes:
_ThingImpl, ClassImpl, ClassImpl, DatatypeImpl, NothingImpl

public interface Class
extends _Resource, DatasetThing

Interface for Class ontology class
Use the org.openanzo.rdfs.dataset.RDFSFactory to create instances of this interface.

(URI: http://www.w3.org/2000/01/rdf-schema#Class)


RDF Schema Standard Properties
label : Class
comment : The class of classes.



Field Summary
static org.openrdf.model.URI subClassOfProperty
          The Anzo Property for subClassOf
static org.openrdf.model.URI TYPE
          The rdf:type for this ontology class
 
Fields inherited from interface org.openanzo.rdfs.dataset._Resource
commentProperty, isDefinedByProperty, labelProperty, memberProperty, seeAlsoProperty, typeProperty, valueProperty
 
Method Summary
 Class addSubClassOf()
          Adds an anonymous value for the 'subClassOf' property
 void addSubClassOf(Class subClassOf)
          Adds a value for the 'subClassOf' property
 Class addSubClassOf(org.openrdf.model.Resource resource)
          Adds a value for the 'subClassOf' property.
 info.aduna.collections.iterators.CloseableIterator<Class> getSubClassOf()
          Get an Iterator the 'subClassOf' property values.
 void registerListener(_ResourceListener listener)
          Register a org.openanzo.rdfs.dataset._ResourceListener
 void registerListener(ClassListener listener)
          Register a ClassListener
 void removeSubClassOf(Class subClassOf)
          Removes a value for the 'subClassOf' property.
 void unregisterListener(_ResourceListener listener)
          Unregister a org.openanzo.rdfs.dataset._ResourceListener
 void unregisterListener(ClassListener listener)
          Unregister a ClassListener
 
Methods inherited from interface org.openanzo.rdfs.dataset._Resource
addComment, addIsDefinedBy, addIsDefinedBy, addIsDefinedBy, addLabel, addMember, addMember, addMember, addSeeAlso, addSeeAlso, addSeeAlso, addType, addType, addType, addValue, addValue, addValue, getComment, getIsDefinedBy, getLabel, getMember, getSeeAlso, getType, getValue, removeComment, removeIsDefinedBy, removeLabel, removeMember, removeSeeAlso, removeType, removeValue
 
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, listStatements, registerListener, removeStatements, resource, unregisterListener, uri
 

Field Detail

TYPE

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


subClassOfProperty

static final org.openrdf.model.URI subClassOfProperty
The Anzo Property for subClassOf

(URI: http://www.w3.org/2000/01/rdf-schema#subClassOf)



RDF Schema Standard Properties
label : subClassOf
comment : The subject is a subclass of a class.

Method Detail

getSubClassOf

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

Returns:
Iterator of Class
Throws:
JastorException
See Also:
subClassOfProperty

addSubClassOf

void addSubClassOf(Class subClassOf)
                   throws JastorException
Adds a value for the 'subClassOf' property

Parameters:
subClassOf - The Class to add
Throws:
JastorException
See Also:
subClassOfProperty

addSubClassOf

Class addSubClassOf()
                    throws JastorException
Adds an anonymous value for the 'subClassOf' property

Returns:
The anoymous Class created
Throws:
JastorException
See Also:
subClassOfProperty

addSubClassOf

Class addSubClassOf(org.openrdf.model.Resource resource)
                    throws JastorException
Adds a value for the 'subClassOf' property. This method is equivalent constructing a new instance of Class with the factory and calling addSubClassOf(org.openanzo.rdfs.dataset.Class subClassOf) The resource argument have rdf:type http://www.w3.org/2000/01/rdf-schema#Class. 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:
org.openanzo.rdfs.dataset.Class, value added
Throws:
JastorException
See Also:
subClassOfProperty

removeSubClassOf

void removeSubClassOf(Class subClassOf)
                      throws JastorException
Removes a value for the 'subClassOf' 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:
subClassOf - The Class to remove
Throws:
JastorException
See Also:
subClassOfProperty

registerListener

void registerListener(ClassListener listener)
Register a ClassListener

Parameters:
listener - ClassListener to register

unregisterListener

void unregisterListener(ClassListener listener)
Unregister a ClassListener

Parameters:
listener - ClassListener to unregister

registerListener

void registerListener(_ResourceListener listener)
Register a org.openanzo.rdfs.dataset._ResourceListener

Specified by:
registerListener in interface _Resource
Parameters:
listener - org.openanzo.rdfs.dataset._ResourceListener to register

unregisterListener

void unregisterListener(_ResourceListener listener)
Unregister a org.openanzo.rdfs.dataset._ResourceListener

Specified by:
unregisterListener in interface _Resource
Parameters:
listener - org.openanzo.rdfs.dataset._ResourceListener to unregister


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