org.openanzo.rdfs.dataset
Interface _Property

All Superinterfaces:
_Resource, CoreThing, DatasetThing
All Known Subinterfaces:
AntisymmetricProperty, ContainerMembershipProperty, DatatypeProperty, FunctionalDataPropety, FunctionalObjectProperty, FunctionalProperty, FunctionalPropety, InverseFunctionalProperty, IrreflexiveProperty, ObjectProperty, ReflexiveProperty, SymmetricProperty, TransitiveProperty
All Known Implementing Classes:
_PropertyImpl, AntisymmetricPropertyImpl, ContainerMembershipPropertyImpl, DatatypePropertyImpl, FunctionalDataPropetyImpl, FunctionalObjectPropertyImpl, FunctionalPropertyImpl, FunctionalPropetyImpl, InverseFunctionalPropertyImpl, IrreflexivePropertyImpl, ObjectPropertyImpl, ReflexivePropertyImpl, SymmetricPropertyImpl, TransitivePropertyImpl

public interface _Property
extends _Resource, DatasetThing

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

(URI: http://www.w3.org/1999/02/22-rdf-syntax-ns#Property)


RDF Schema Standard Properties
label : Property
comment : The class of RDF Propertys.



Field Summary
static org.openrdf.model.URI domainProperty
          The Anzo Property for domain
static org.openrdf.model.URI rangeProperty
          The Anzo Property for range
static org.openrdf.model.URI subPropertyOfProperty
          The Anzo Property for subPropertyOf
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
 void addSubPropertyOf(_Property subPropertyOf)
          Adds a value for the 'subPropertyOf' property
 _Property addSubPropertyOf()
          Adds an anonymous value for the 'subPropertyOf' property
 _Property addSubPropertyOf(org.openrdf.model.Resource resource)
          Adds a value for the 'subPropertyOf' property.
 Class getDomain()
          Gets the 'domain' property value
 Class getRange()
          Gets the 'range' property value
 info.aduna.collections.iterators.CloseableIterator<_Property> getSubPropertyOf()
          Get an Iterator the 'subPropertyOf' property values.
 void registerListener(_PropertyListener listener)
          Register a _PropertyListener
 void registerListener(_ResourceListener listener)
          Register a org.openanzo.rdfs.dataset._ResourceListener
 void removeSubPropertyOf(_Property subPropertyOf)
          Removes a value for the 'subPropertyOf' property.
 Class setDomain()
          Sets the 'domain' property value to an anonymous node
 void setDomain(Class domain)
          Sets the 'domain' property value
 Class setDomain(org.openrdf.model.Resource resource)
          Sets the 'domain' property value to the given resource, and add's rdf:type properties.
 Class setRange()
          Sets the 'range' property value to an anonymous node
 void setRange(Class range)
          Sets the 'range' property value
 Class setRange(org.openrdf.model.Resource resource)
          Sets the 'range' property value to the given resource, and add's rdf:type properties.
 void unregisterListener(_PropertyListener listener)
          Unregister a _PropertyListener
 void unregisterListener(_ResourceListener listener)
          Unregister a org.openanzo.rdfs.dataset._ResourceListener
 
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


domainProperty

static final org.openrdf.model.URI domainProperty
The Anzo Property for domain

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



RDF Schema Standard Properties
label : domain
comment : A domain of the subject property.


rangeProperty

static final org.openrdf.model.URI rangeProperty
The Anzo Property for range

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



RDF Schema Standard Properties
label : range
comment : A range of the subject property.


subPropertyOfProperty

static final org.openrdf.model.URI subPropertyOfProperty
The Anzo Property for subPropertyOf

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



RDF Schema Standard Properties
label : subPropertyOf
comment : The subject is a subproperty of a property.

Method Detail

getDomain

Class getDomain()
                throws JastorException
Gets the 'domain' property value

Returns:
Class
Throws:
JastorException
See Also:
domainProperty

setDomain

void setDomain(Class domain)
               throws JastorException
Sets the 'domain' property value

Parameters:
domain - Class, value to set
Throws:
JastorException
See Also:
domainProperty

setDomain

Class setDomain()
                throws JastorException
Sets the 'domain' property value to an anonymous node

Returns:
Class, the created value
Throws:
JastorException
See Also:
domainProperty

setDomain

Class setDomain(org.openrdf.model.Resource resource)
                throws JastorException
Sets the 'domain' property value to the given resource, and add's rdf:type properties. This method is equivalent constructing a new instance of Class with the factory. and calling setDomain(org.openanzo.rdfs.dataset.Class domain) 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 - Resource must not be be null.
Returns:
Class, the newly created value
Throws:
JastorException
See Also:
domainProperty

getRange

Class getRange()
               throws JastorException
Gets the 'range' property value

Returns:
Class
Throws:
JastorException
See Also:
rangeProperty

setRange

void setRange(Class range)
              throws JastorException
Sets the 'range' property value

Parameters:
range - Class, value to set
Throws:
JastorException
See Also:
rangeProperty

setRange

Class setRange()
               throws JastorException
Sets the 'range' property value to an anonymous node

Returns:
Class, the created value
Throws:
JastorException
See Also:
rangeProperty

setRange

Class setRange(org.openrdf.model.Resource resource)
               throws JastorException
Sets the 'range' property value to the given resource, and add's rdf:type properties. This method is equivalent constructing a new instance of Class with the factory. and calling setRange(org.openanzo.rdfs.dataset.Class range) 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 - Resource must not be be null.
Returns:
Class, the newly created value
Throws:
JastorException
See Also:
rangeProperty

getSubPropertyOf

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

Returns:
Iterator of _Property
Throws:
JastorException
See Also:
subPropertyOfProperty

addSubPropertyOf

void addSubPropertyOf(_Property subPropertyOf)
                      throws JastorException
Adds a value for the 'subPropertyOf' property

Parameters:
subPropertyOf - The _Property to add
Throws:
JastorException
See Also:
subPropertyOfProperty

addSubPropertyOf

_Property addSubPropertyOf()
                           throws JastorException
Adds an anonymous value for the 'subPropertyOf' property

Returns:
The anoymous _Property created
Throws:
JastorException
See Also:
subPropertyOfProperty

addSubPropertyOf

_Property addSubPropertyOf(org.openrdf.model.Resource resource)
                           throws JastorException
Adds a value for the 'subPropertyOf' property. This method is equivalent constructing a new instance of _Property with the factory and calling addSubPropertyOf(org.openanzo.rdfs.dataset._Property subPropertyOf) The resource argument have rdf:type http://www.w3.org/1999/02/22-rdf-syntax-ns#Property. 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._Property, value added
Throws:
JastorException
See Also:
subPropertyOfProperty

removeSubPropertyOf

void removeSubPropertyOf(_Property subPropertyOf)
                         throws JastorException
Removes a value for the 'subPropertyOf' 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:
subPropertyOf - The _Property to remove
Throws:
JastorException
See Also:
subPropertyOfProperty

registerListener

void registerListener(_PropertyListener listener)
Register a _PropertyListener

Parameters:
listener - _PropertyListener to register

unregisterListener

void unregisterListener(_PropertyListener listener)
Unregister a _PropertyListener

Parameters:
listener - _PropertyListener 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.