|
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<org.semanticweb.owl.model.OWLOntology>
fr.inrialpes.exmo.ontowrap.owlapi10.OWLAPIOntology
public class OWLAPIOntology
Store the information regarding ontologies in a specific structure Acts as an interface with regard to an ontology APY
| Field Summary | |
|---|---|
private int |
nbclasses
|
private int |
nbdataproperties
|
private int |
nbentities
|
private int |
nbindividuals
|
private int |
nbobjectproperties
|
private int |
nbproperties
|
| Fields inherited from class fr.inrialpes.exmo.ontowrap.BasicOntology |
|---|
file, formalism, formalismURI, onto, uri |
| Constructor Summary | |
|---|---|
OWLAPIOntology()
|
|
| Method Summary | |
|---|---|
protected Set<String> |
getAnnotations(org.semanticweb.owl.model.OWLEntity e,
String lang,
String typeAnnot)
|
boolean |
getCapabilities(int Direct,
int Asserted,
int Named)
|
Set<Object> |
getCardinalityRestrictions(Object p)
returns emptyset in case of error (e.g., if p is a property) |
Set<?> |
getClasses()
|
Set<Object> |
getClasses(Object i,
int local,
int asserted,
int named)
|
Set<?> |
getDataProperties()
|
Set<Object> |
getDataProperties(Object c,
int local,
int asserted,
int named)
|
Set<Object> |
getDomain(Object p,
int asserted)
|
Set<?> |
getEntities()
Returns all named entities having URI beginning with the ontology URI |
protected Set<?> |
getEntities(Class<? extends org.semanticweb.owl.model.OWLEntity> c)
|
Object |
getEntity(URI uri)
|
Set<String> |
getEntityAnnotations(Object o)
Returns all the values of the "owl:AnnotationProperty" property for a given entity. |
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<?> |
getIndividuals()
|
private Set<Object> |
getInheritedProperties(org.semanticweb.owl.model.OWLClass cl)
Inherits all properties of a class |
Set<Object> |
getInstances(Object cl,
int local,
int asserted,
int named)
|
Set<?> |
getObjectProperties()
|
Set<Object> |
getObjectProperties(Object c,
int local,
int asserted,
int named)
|
org.semanticweb.owl.model.OWLOntology |
getOntology()
|
Set<?> |
getProperties()
|
Set<Object> |
getProperties(Object cl,
int local,
int asserted,
int named)
|
void |
getProperties(org.semanticweb.owl.model.OWLClass cl,
Set<Object> list)
|
void |
getProperties(org.semanticweb.owl.model.OWLDescription desc,
Set<Object> list)
|
void |
getProperties(org.semanticweb.owl.model.OWLNaryBooleanDescription d,
Set<Object> list)
|
void |
getProperties(org.semanticweb.owl.model.OWLRestriction rest,
Set<Object> list)
|
Set<Object> |
getRange(Object p,
int asserted)
|
Set<Object> |
getSubClasses(Object cl,
int local,
int asserted,
int named)
|
Set<Object> |
getSubProperties(Object pr,
int local,
int asserted,
int named)
|
Set<Object> |
getSuperClasses(Object cl,
int local,
int asserted,
int named)
|
Set<Object> |
getSuperProperties(Object pr,
int local,
int asserted,
int named)
|
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 |
setOntology(org.semanticweb.owl.model.OWLOntology o)
|
void |
unload()
|
| Methods inherited from class fr.inrialpes.exmo.ontowrap.BasicOntology |
|---|
getFile, getFormalism, getFormURI, getFragmentAsLabel, getURI, setFile, setFormalism, setFormURI, 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, getURI, setFile, setFormalism, setFormURI, setURI |
| Field Detail |
|---|
private int nbentities
private int nbclasses
private int nbproperties
private int nbobjectproperties
private int nbdataproperties
private int nbindividuals
| Constructor Detail |
|---|
public OWLAPIOntology()
| Method Detail |
|---|
public org.semanticweb.owl.model.OWLOntology getOntology()
getOntology in interface Ontology<org.semanticweb.owl.model.OWLOntology>getOntology in class BasicOntology<org.semanticweb.owl.model.OWLOntology>public void setOntology(org.semanticweb.owl.model.OWLOntology o)
setOntology in interface Ontology<org.semanticweb.owl.model.OWLOntology>setOntology in class BasicOntology<org.semanticweb.owl.model.OWLOntology>
public Object getEntity(URI uri)
throws OntowrapException
getEntity in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>OntowrapException
public URI getEntityURI(Object o)
throws OntowrapException
getEntityURI in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>OntowrapException
public String getEntityName(Object o)
throws OntowrapException
LoadedOntology
getEntityName in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>o - the entity
OntowrapException
public String getEntityName(Object o,
String lang)
throws OntowrapException
LoadedOntology
getEntityName in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>o - the entity
OntowrapException
public Set<String> getEntityNames(Object o,
String lang)
throws OntowrapException
LoadedOntology
getEntityNames in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>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<org.semanticweb.owl.model.OWLOntology>o - the entity
OntowrapException
public Set<String> getEntityComments(Object o,
String lang)
throws OntowrapException
LoadedOntology
getEntityComments in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>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<org.semanticweb.owl.model.OWLOntology>o - the entity
OntowrapException
protected Set<String> getAnnotations(org.semanticweb.owl.model.OWLEntity e,
String lang,
String typeAnnot)
throws org.semanticweb.owl.model.OWLException
org.semanticweb.owl.model.OWLException
public Set<String> getEntityAnnotations(Object o)
throws OntowrapException
LoadedOntology
getEntityAnnotations in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>o - the entity
OntowrapException
public Set<String> getEntityAnnotations(Object o,
String lang)
throws OntowrapException
LoadedOntology
getEntityAnnotations in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>o - the entitylang - the code of the language ("en", "fr", "es", etc.)
OntowrapExceptionpublic boolean isEntity(Object o)
isEntity in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>public boolean isClass(Object o)
isClass in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>public boolean isProperty(Object o)
isProperty in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>public boolean isDataProperty(Object o)
isDataProperty in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>public boolean isObjectProperty(Object o)
isObjectProperty in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>public boolean isIndividual(Object o)
isIndividual in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
protected Set<?> getEntities(Class<? extends org.semanticweb.owl.model.OWLEntity> c)
throws org.semanticweb.owl.model.OWLException
org.semanticweb.owl.model.OWLExceptionpublic Set<?> getEntities()
LoadedOntology
getEntities in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>public Set<?> getClasses()
getClasses in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>public Set<?> getProperties()
getProperties in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>public Set<?> getDataProperties()
getDataProperties in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>public Set<?> getObjectProperties()
getObjectProperties in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>public Set<?> getIndividuals()
getIndividuals in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>public int nbEntities()
nbEntities in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>public int nbClasses()
nbClasses in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>public int nbProperties()
nbProperties in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>public int nbObjectProperties()
nbObjectProperties in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>public int nbDataProperties()
nbDataProperties in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>public int nbIndividuals()
nbIndividuals in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>public void unload()
unload in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
public boolean getCapabilities(int Direct,
int Asserted,
int Named)
getCapabilities in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
public Set<Object> getSubClasses(Object cl,
int local,
int asserted,
int named)
getSubClasses in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
public Set<Object> getSuperClasses(Object cl,
int local,
int asserted,
int named)
getSuperClasses in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
public Set<Object> getProperties(Object cl,
int local,
int asserted,
int named)
getProperties in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
public Set<Object> getDataProperties(Object c,
int local,
int asserted,
int named)
getDataProperties in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
public Set<Object> getObjectProperties(Object c,
int local,
int asserted,
int named)
getObjectProperties in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
public Set<Object> getInstances(Object cl,
int local,
int asserted,
int named)
getInstances in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
public Set<Object> getSubProperties(Object pr,
int local,
int asserted,
int named)
getSubProperties in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
public Set<Object> getSuperProperties(Object pr,
int local,
int asserted,
int named)
getSuperProperties in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
public Set<Object> getRange(Object p,
int asserted)
getRange in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
public Set<Object> getDomain(Object p,
int asserted)
getDomain in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
public Set<Object> getClasses(Object i,
int local,
int asserted,
int named)
getClasses in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>public Set<Object> getCardinalityRestrictions(Object p)
private Set<Object> getInheritedProperties(org.semanticweb.owl.model.OWLClass cl)
public void getProperties(org.semanticweb.owl.model.OWLDescription desc,
Set<Object> list)
throws org.semanticweb.owl.model.OWLException
org.semanticweb.owl.model.OWLException
public void getProperties(org.semanticweb.owl.model.OWLRestriction rest,
Set<Object> list)
throws org.semanticweb.owl.model.OWLException
org.semanticweb.owl.model.OWLException
public void getProperties(org.semanticweb.owl.model.OWLNaryBooleanDescription d,
Set<Object> list)
throws org.semanticweb.owl.model.OWLException
org.semanticweb.owl.model.OWLException
public void getProperties(org.semanticweb.owl.model.OWLClass cl,
Set<Object> list)
throws org.semanticweb.owl.model.OWLException
org.semanticweb.owl.model.OWLException
|
Alignment API and Server 4.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||