|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.hp.hpl.jena.daml.common.DAMLHierarchy
Represents knowledge about the class and property hierarchies in the DAML spec, so that these can be available without forcing the user to import the DAML specification into their model each time. Uses Singleton pattern.
Field Summary | |
Resource[][] |
DAML_STANDARD_CLASS_HIERARCHY
Map of DAML and RDF standard classes that are super-classes of other DAML standard classes. |
Resource[][] |
DAML_STANDARD_EQUIVALENCES
Known equivalences between DAML and RDFS values |
Property[] |
TRANSITIVE_PROPERTIES
A list of well-known properties that are known a priori to be transitive |
Method Summary | |
java.util.Iterator |
getEquivalentValues(Resource res)
Answer an iteration of those values that are equivalent to the given resource. |
static DAMLHierarchy |
getInstance()
Answer the singleton instance. |
boolean |
isDAMLSubClassOf(java.lang.String uri0,
java.lang.String uri1)
Answer true if the first URI represents a class in the standard DAML ontology that is a super-class of the class denoted by the second URI. |
boolean |
isTransitiveProperty(Resource res)
Answer true if the given property is well-known to be transitive. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Resource[][] DAML_STANDARD_CLASS_HIERARCHY
public Resource[][] DAML_STANDARD_EQUIVALENCES
public Property[] TRANSITIVE_PROPERTIES
Method Detail |
public static DAMLHierarchy getInstance()
public boolean isDAMLSubClassOf(java.lang.String uri0, java.lang.String uri1)
uri0
- A class URIuri1
- A class URIpublic boolean isTransitiveProperty(Resource res)
rdf:type TransitiveProperty
, it only
tests the table of well-known transitive properties.res
- A resourcepublic java.util.Iterator getEquivalentValues(Resource res)
res
- A resource, that may have known equivalent values
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |