|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectit.polito.elite.doseWS.wrappers.OntologyImpl
The Ontology wrapper.
| Constructor Summary | |
OntologyImpl()
Constructor. |
|
OntologyImpl(java.lang.String resource,
boolean isURI)
|
|
| Method Summary | |
java.util.Vector |
getAllClasses()
Provides a Vector containing all ontology concepts as URIs. |
java.util.Hashtable |
getAllRelations()
Returns all relations of the ontology with their weights. |
java.lang.String |
getDefinition(java.lang.String topicURI,
java.lang.String language)
Returns the language-dependent definition of a concept. |
java.lang.String |
getLabel(java.lang.String uri)
Retrieved the label of an ontology concept, given the URI. |
int |
getNumberOfSubClasses(java.lang.String uri)
Counts the number of sons for a given concept. |
com.hp.hpl.jena.ontology.OntClass |
getOntClass(java.lang.String uri)
Returns the Ontology class. |
java.util.Vector |
getRelationEnds(java.lang.String nodeURI,
java.lang.String relationURI)
Given a concept and a relation, returns an Iterator over the classes the source concept is related to (through the given relation). |
java.util.Set |
getRoots()
|
java.util.Iterator |
getSubClasses(java.lang.String uri)
Retrieves all direct sub-classes of the given concept. |
java.util.Iterator |
getSuperClasses(java.lang.String uri)
Retrieves all direct super-classes of the given concept. |
java.lang.String |
getTitle(java.lang.String topicURI,
java.lang.String language)
Returns the language-dependent title of a concept. |
void |
OntologyImplCommon(java.io.InputStreamReader in)
|
void |
OntologyImplFile(java.lang.String inputOntoFilename)
Constructor. |
void |
OntologyImplURL(java.lang.String url)
|
void |
printTuples()
Prints the ontology concepts on the output console, formatted as tuples. |
void |
printXML()
Prints the ontology concepts on the output console formatted as valid XML. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OntologyImpl()
public OntologyImpl(java.lang.String resource,
boolean isURI)
| Method Detail |
public void OntologyImplFile(java.lang.String inputOntoFilename)
public void OntologyImplCommon(java.io.InputStreamReader in)
public void OntologyImplURL(java.lang.String url)
public void printTuples()
public void printXML()
public java.util.Vector getAllClasses()
getAllClasses in interface Ontologypublic java.util.Set getRoots()
getRoots in interface Ontologypublic java.lang.String getLabel(java.lang.String uri)
uri - The concept URI.
public com.hp.hpl.jena.ontology.OntClass getOntClass(java.lang.String uri)
uri - The URI of the class.
public java.util.Iterator getSubClasses(java.lang.String uri)
getSubClasses in interface Ontologyuri - The URI of the "father" concept.
public java.util.Iterator getSuperClasses(java.lang.String uri)
getSuperClasses in interface Ontologyuri - The URI of the concept.
public int getNumberOfSubClasses(java.lang.String uri)
uri - The concept label.
public java.util.Vector getRelationEnds(java.lang.String nodeURI,
java.lang.String relationURI)
getRelationEnds in interface OntologynodeURI - The source concept as URI.relationURI - The relation as URI.
public java.util.Hashtable getAllRelations()
getAllRelations in interface Ontology
public java.lang.String getTitle(java.lang.String topicURI,
java.lang.String language)
getTitle in interface OntologytopicURI - The URI of a concept.language - The language code.
public java.lang.String getDefinition(java.lang.String topicURI,
java.lang.String language)
getDefinition in interface OntologytopicURI - The URI of a concept.language - The language code.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||