|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DAMLCommon
Abstract super-class for all DAML resources (including properties). Defines shared
implementations and common services, such as property manipulation, vocabulary
management and rdf:type
management. Also defines accessors for common
properties, including comment
, label
, and equivalentTo
.
Method Summary | |
---|---|
DAMLModel |
getDAMLModel()
Answer the DAML model wherein this value is stored. |
ExtendedIterator |
getEquivalenceSet()
Answer the set of equivalent values to this value, but not including the value itself. |
ExtendedIterator |
getEquivalentValues()
Answer an iterator over all of the DAML objects that are equivalent to this value under the daml:equivalentTo relation. |
ExtendedIterator |
getRDFTypes(boolean complete)
Answer an iterator over all of the types to which this resource belongs. |
DAMLVocabulary |
getVocabulary()
Answer the DAML+OIL vocabulary that corresponds to the namespace that this value was declared in. |
LiteralAccessor |
prop_comment()
Accessor for the property of the comment on the value, whose value is a literal (string). |
PropertyAccessor |
prop_equivalentTo()
Property accessor for the equivalentTo property. |
LiteralAccessor |
prop_label()
Accessor for the property of the label on the value, whose value is a literal (string). |
PropertyAccessor |
prop_type()
Property accessor for the rdf:type property of a DAML value. |
void |
setRDFType(Resource rdfClass,
boolean replace)
Deprecated. Use OntResource.addRDFType(com.hp.hpl.jena.rdf.model.Resource) or OntResource.setRDFType(com.hp.hpl.jena.rdf.model.Resource) . |
Methods inherited from interface com.hp.hpl.jena.rdf.model.Resource |
---|
abort, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getModel, getNameSpace, getNode, getProperty, getRequiredProperty, getURI, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, listProperties, listProperties, removeAll, removeProperties, toString |
Methods inherited from interface com.hp.hpl.jena.rdf.model.RDFNode |
---|
as, canAs, inModel, isAnon, isLiteral, isResource, isURIResource, visitWith |
Methods inherited from interface com.hp.hpl.jena.graph.FrontsNode |
---|
asNode |
Method Detail |
---|
DAMLModel getDAMLModel()
Answer the DAML model wherein this value is stored.
void setRDFType(Resource rdfClass, boolean replace)
OntResource.addRDFType(com.hp.hpl.jena.rdf.model.Resource)
or OntResource.setRDFType(com.hp.hpl.jena.rdf.model.Resource)
.
Add an RDF type property for this node in the underlying model. If the replace flag is true, this type will replace any current type property for the node. Otherwise, the type will be in addition to any existing type property.
Deprecated in favour of OntResource.addRDFType(com.hp.hpl.jena.rdf.model.Resource)
for add, or
OntResource.setRDFType(com.hp.hpl.jena.rdf.model.Resource)
for replace.
rdfClass
- The RDF resource denoting the class that will be new value for the rdf:type property.replace
- If true, the given class will replace any existing type property for this
value, otherwise it will be added as an extra type statement.ExtendedIterator getRDFTypes(boolean complete)
Answer an iterator over all of the types to which this resource belongs. Optionally, restrict the results to the most specific types, so that any class that is subsumed by another class in this resource's set of types is not reported.
Note: that the interpretation of the complete
flag has
changed since Jena 1.x. Previously, the boolean flag was to generated the transitive
closure of the class hierarchy; this is now handled by the underlyin inference graph
(if specified). Now the flag is used to restrict the returned values to the most-specific
types for this resource.
complete
- If true, return all known types; if false, return only the most-specific
types.
DAMLVocabulary getVocabulary()
Answer the DAML+OIL vocabulary that corresponds to the namespace that this value was declared in.
ExtendedIterator getEquivalentValues()
Answer an iterator over all of the DAML objects that are equivalent to this
value under the daml:equivalentTo
relation.
Note that the first member of the iteration is
always the DAML value on which the method is invoked: trivially, a value is
a member of the set of values equivalent to itself. If the caller wants
the set of values equivalent to this one, not including itself, simply ignore
the first element of the iteration.
ExtendedIterator getEquivalenceSet()
Answer the set of equivalent values to this value, but not including the value itself. The iterator will range over a set: each element occurs only once.
LiteralAccessor prop_label()
Accessor for the property of the label on the value, whose value is a literal (string).
LiteralAccessor prop_comment()
Accessor for the property of the comment on the value, whose value is a literal (string).
PropertyAccessor prop_equivalentTo()
Property accessor for the equivalentTo
property. This
denotes that two terms have the same meaning. The DAML spec helpfully
says: for equivalentTo(X, Y), read X is an equivalent term to Y.
equivalentTo
.PropertyAccessor prop_type()
Property accessor for the rdf:type
property of a DAML value.
rdf:type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |