org.openanzo.rdfs
Interface Class

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

public interface Class
extends _Resource, GraphThing

Interface for Class ontology class
Use the org.openanzo.rdfs.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._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 removeSubClassOf(Class subClassOf)
          Removes a value for the 'subClassOf' property.
 void removeSubClassOf(org.openrdf.model.Resource subClassOf)
          Remove a 'subClassOf' property value.
 
Methods inherited from interface org.openanzo.rdfs._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, removeIsDefinedBy, removeLabel, removeMember, removeMember, removeSeeAlso, removeSeeAlso, removeType, removeType, removeValue, removeValue
 
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


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.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:
The org.openanzo.rdfs.Class created
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

removeSubClassOf

void removeSubClassOf(org.openrdf.model.Resource subClassOf)
                      throws JastorException
Remove a 'subClassOf' 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:
subClassOf - Class, the value to remove
Throws:
JastorException
See Also:
subClassOfProperty


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