|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Encapsulates a property in a DAML ontology. According to the specification, a daml:Property is an alias for rdf:Property. It also acts as the super-class for more semantically meaningful property classes: datatype properties and object properties. The DAML spec also allows any property to be unique (that is, it defines UniqueProperty as a sub-class of Property), so uniqueness is modelled here as an attribute of a DAMLProperty.
Method Summary | |
java.util.Iterator |
getDomainClasses()
Answer an iterator over all of the DAML classes that form the domain of this property. |
java.util.Iterator |
getEquivalentValues()
Answer an iterator over all of the DAML objects that are equivalent to this property, which will be the union of daml:equivalentTo and
daml:samePropertyAs . |
java.util.Iterator |
getRangeClasses()
Answer an iterator over all of the DAML classes that form the range of this property. |
java.util.Iterator |
getSameProperties()
Answer an iterator over all of the DAML properties that are equivalent to this value under the daml:samePropertyAs relation. |
java.util.Iterator |
getSubProperties()
Answer an iterator over all of the sub-properties of this property, using the rdfs:subPropertyOf relation (or one of its aliases). |
java.util.Iterator |
getSubProperties(boolean closed)
Answer an iterator over all of the sub-properties of this property, using the rdfs:subPropertyOf relation (or one of its aliases). |
java.util.Iterator |
getSuperProperties()
Answer an iterator over all of the super-properties of this property, using the rdfs:subPropertyOf relation (or one of its aliases). |
java.util.Iterator |
getSuperProperties(boolean closed)
Answer an iterator over all of the super-properties of this property, using the rdfs:subPropertyOf relation (or one of its aliases). |
boolean |
isUnique()
Answer true if this property is to be considered unique, that is it is characterised by the DAML class UniqueProperty |
PropertyAccessor |
prop_domain()
Property accessor for the 'domain' property of a property. |
PropertyAccessor |
prop_range()
Property accessor for the 'range' property of a property. |
PropertyAccessor |
prop_samePropertyAs()
Property accessor for the 'samePropertyAs' property of a DAML Property. |
PropertyAccessor |
prop_subPropertyOf()
Property accessor for the 'subPropertyOf' property of a property. |
void |
setIsUnique(boolean unique)
Set the flag to indicate that this property is to be considered unique - that is, it is defined by the DAML class UniqueProperty. |
Methods inherited from interface com.hp.hpl.jena.daml.DAMLCommon |
getAll, getDAMLModel, getEquivalenceSet, getNumPropertyValues, getPropertyValue, getPropertyValues, getRDFTypes, getVocabulary, hasRDFType, hasRDFType, prop_comment, prop_equivalentTo, prop_label, prop_type, remove, removeAll, removeProperty, replaceProperty, setPropertyValue, setRDFType, setRDFType |
Methods inherited from interface com.hp.hpl.mesa.rdf.jena.model.Resource |
abort, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getModel, getNameSpace, getProperty, getURI, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, isAnon, listProperties, listProperties, removeProperties, toString |
Methods inherited from interface com.hp.hpl.mesa.rdf.jena.model.Property |
getLocalName, getNameSpace, getOrdinal |
Method Detail |
public void setIsUnique(boolean unique)
unique
- True for a unique propertypublic boolean isUnique()
public PropertyAccessor prop_domain()
public PropertyAccessor prop_subPropertyOf()
public PropertyAccessor prop_samePropertyAs()
public PropertyAccessor prop_range()
public java.util.Iterator getSameProperties()
daml:samePropertyAs
relation. Note: only considers
daml:samePropertyAs
, for general equivalence, see
getEquivalentValues()
. Note that the first member of the iteration is
always the DAMLProperty on which the method is invoked: trivially, a property is
a member of the set of properties equivalent to itself. If the caller wants
the set of properties equivalent to this one, not including itself, simply ignore
the first element of the iteration.public java.util.Iterator getEquivalentValues()
daml:equivalentTo
and
daml:samePropertyAs
.getEquivalentValues
in interface DAMLCommon
public java.util.Iterator getDomainClasses()
public java.util.Iterator getRangeClasses()
public java.util.Iterator getSuperProperties()
rdfs:subPropertyOf
relation (or one of its aliases). The set of super-properties
is transitively closed over the subPropertyOf relation.public java.util.Iterator getSuperProperties(boolean closed)
rdfs:subPropertyOf
relation (or one of its aliases). The set of super-properties
is optionally transitively closed over the subPropertyOf relation.closed
- If true, iterate over the super-properties of my super-properties, etc.public java.util.Iterator getSubProperties()
rdfs:subPropertyOf
relation (or one of its aliases). The set of sub-properties
is transitively closed over the subPropertyOf relation.public java.util.Iterator getSubProperties(boolean closed)
rdfs:subPropertyOf
relation (or one of its aliases). The set of sub-properties
is optionally transitively closed over the subPropertyOf relation.closed
- If true, iterate over the sub-properties of my sub-properties, etc.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |