|
Alignment API and Server 4.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.inrialpes.exmo.ontowrap.BasicOntology<com.hp.hpl.jena.ontology.OntModel>
fr.inrialpes.exmo.ontowrap.jena25.JENAOntology
public class JENAOntology
| Field Summary | |
|---|---|
protected static com.hp.hpl.jena.util.iterator.Map1<com.hp.hpl.jena.ontology.OntClass,com.hp.hpl.jena.ontology.OntResource> |
mapClass
|
protected static com.hp.hpl.jena.util.iterator.Map1<com.hp.hpl.jena.ontology.Individual,com.hp.hpl.jena.ontology.OntResource> |
mapInd
|
protected static com.hp.hpl.jena.util.iterator.Map1<com.hp.hpl.jena.ontology.OntProperty,com.hp.hpl.jena.ontology.OntResource> |
mapProperty
|
| Fields inherited from class fr.inrialpes.exmo.ontowrap.BasicOntology |
|---|
file, formalism, formalismURI, onto, uri |
| Constructor Summary | |
|---|---|
JENAOntology()
|
|
| Method Summary | |
|---|---|
Set<com.hp.hpl.jena.ontology.OntClass> |
getClasses()
|
Set<com.hp.hpl.jena.ontology.DatatypeProperty> |
getDataProperties()
|
Set<com.hp.hpl.jena.ontology.OntResource> |
getEntities()
Returns all named entities having URI beginning with the ontology URI |
Object |
getEntity(URI u)
|
Set<String> |
getEntityAnnotations(Object o)
Returns all the values of the "owl:AnnotationProperty" property for a given entity. |
void |
getEntityAnnotations(Object o,
Set<String> annots,
String lang)
|
Set<String> |
getEntityAnnotations(Object o,
String lang)
Returns all the values of the "owl:AnnotationProperty" property for a given entity expressed in the required language. |
Set<String> |
getEntityComments(Object o)
Returns all the values of textual properties (e.g., "rdfs:comment", rdfs:label in RDFS/OWL) for a given entity |
Set<String> |
getEntityComments(Object o,
String lang)
Returns the values ofof textual properties (e.g., "rdfs:comment", rdfs:label in RDFS/OWL) for a given entity and for a given natural language (attribute xml:lang). |
String |
getEntityName(Object o)
returns the default name of an entity if specified. |
String |
getEntityName(Object o,
String lang)
returns the default name of an entity in a language (attribute xml:lang) if specified. |
Set<String> |
getEntityNames(Object o)
Returns all the names a given entity (e.g., rdfs:labels in OWL/RDFS). |
Set<String> |
getEntityNames(Object o,
String lang)
returns all the names of an entity in a language if specified. |
URI |
getEntityURI(Object o)
|
Set<com.hp.hpl.jena.ontology.Individual> |
getIndividuals()
|
Set<com.hp.hpl.jena.ontology.ObjectProperty> |
getObjectProperties()
|
Set<com.hp.hpl.jena.ontology.OntProperty> |
getProperties()
|
boolean |
isClass(Object o)
|
boolean |
isDataProperty(Object o)
|
boolean |
isEntity(Object o)
|
boolean |
isIndividual(Object o)
|
boolean |
isObjectProperty(Object o)
|
boolean |
isProperty(Object o)
|
int |
nbClasses()
|
int |
nbDataProperties()
|
int |
nbEntities()
|
int |
nbIndividuals()
|
int |
nbObjectProperties()
|
int |
nbProperties()
|
void |
unload()
|
| Methods inherited from class fr.inrialpes.exmo.ontowrap.BasicOntology |
|---|
getFile, getFormalism, getFormURI, getFragmentAsLabel, getOntology, getURI, setFile, setFormalism, setFormURI, setOntology, setURI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface fr.inrialpes.exmo.ontowrap.Ontology |
|---|
getFile, getFormalism, getFormURI, getOntology, getURI, setFile, setFormalism, setFormURI, setOntology, setURI |
| Field Detail |
|---|
protected static final com.hp.hpl.jena.util.iterator.Map1<com.hp.hpl.jena.ontology.OntProperty,com.hp.hpl.jena.ontology.OntResource> mapProperty
protected static final com.hp.hpl.jena.util.iterator.Map1<com.hp.hpl.jena.ontology.OntClass,com.hp.hpl.jena.ontology.OntResource> mapClass
protected static final com.hp.hpl.jena.util.iterator.Map1<com.hp.hpl.jena.ontology.Individual,com.hp.hpl.jena.ontology.OntResource> mapInd
| Constructor Detail |
|---|
public JENAOntology()
| Method Detail |
|---|
public Object getEntity(URI u)
throws OntowrapException
getEntity in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>OntowrapException
public void getEntityAnnotations(Object o,
Set<String> annots,
String lang)
throws OntowrapException
OntowrapException
public Set<String> getEntityAnnotations(Object o)
throws OntowrapException
LoadedOntology
getEntityAnnotations in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>o - the entity
OntowrapException
public Set<String> getEntityAnnotations(Object o,
String lang)
throws OntowrapException
LoadedOntology
getEntityAnnotations in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>o - the entitylang - the code of the language ("en", "fr", "es", etc.)
OntowrapException
public Set<String> getEntityComments(Object o,
String lang)
throws OntowrapException
LoadedOntology
getEntityComments in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>o - the entitylang - the code of the language ("en", "fr", "es", etc.)
OntowrapException
public Set<String> getEntityComments(Object o)
throws OntowrapException
LoadedOntology
getEntityComments in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>o - the entity
OntowrapException
public String getEntityName(Object o)
throws OntowrapException
LoadedOntology
getEntityName in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>o - the entity
OntowrapException
public String getEntityName(Object o,
String lang)
throws OntowrapException
LoadedOntology
getEntityName in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>o - the entity
OntowrapException
public Set<String> getEntityNames(Object o,
String lang)
throws OntowrapException
LoadedOntology
getEntityNames in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>o - the entitylang - the code of the language ("en", "fr", "es", etc.)
OntowrapException
public Set<String> getEntityNames(Object o)
throws OntowrapException
LoadedOntology
getEntityNames in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>o - the entity
OntowrapException
public URI getEntityURI(Object o)
throws OntowrapException
getEntityURI in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>OntowrapExceptionpublic Set<com.hp.hpl.jena.ontology.OntClass> getClasses()
getClasses in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>public Set<com.hp.hpl.jena.ontology.DatatypeProperty> getDataProperties()
getDataProperties in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>public Set<com.hp.hpl.jena.ontology.OntResource> getEntities()
LoadedOntology
getEntities in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>public Set<com.hp.hpl.jena.ontology.Individual> getIndividuals()
getIndividuals in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>public Set<com.hp.hpl.jena.ontology.ObjectProperty> getObjectProperties()
getObjectProperties in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>public Set<com.hp.hpl.jena.ontology.OntProperty> getProperties()
getProperties in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>public boolean isClass(Object o)
isClass in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>public boolean isDataProperty(Object o)
isDataProperty in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>public boolean isEntity(Object o)
isEntity in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>public boolean isIndividual(Object o)
isIndividual in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>public boolean isObjectProperty(Object o)
isObjectProperty in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>public boolean isProperty(Object o)
isProperty in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>public int nbEntities()
nbEntities in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>public int nbClasses()
nbClasses in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>public int nbDataProperties()
nbDataProperties in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>public int nbIndividuals()
nbIndividuals in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>public int nbObjectProperties()
nbObjectProperties in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>public int nbProperties()
nbProperties in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>public void unload()
unload in interface LoadedOntology<com.hp.hpl.jena.ontology.OntModel>
|
Alignment API and Server 4.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||