fr.inrialpes.exmo.align.onto.owlapi10
Class OWLAPIOntology
java.lang.Object
fr.inrialpes.exmo.align.onto.BasicOntology<org.semanticweb.owl.model.OWLOntology>
fr.inrialpes.exmo.align.onto.owlapi10.OWLAPIOntology
- All Implemented Interfaces:
- HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>, LoadedOntology<org.semanticweb.owl.model.OWLOntology>, Ontology<org.semanticweb.owl.model.OWLOntology>
public class OWLAPIOntology
- extends BasicOntology<org.semanticweb.owl.model.OWLOntology>
- implements HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
Store the information regarding ontologies in a specific structure
Acts as an interface with regard to an ontology APY
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)
|
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()
|
protected Set<?> |
getEntities(Class<? extends org.semanticweb.owl.model.OWLEntity> c)
|
Object |
getEntity(URI uri)
|
Set<String> |
getEntityAnnotations(Object o)
|
Set<String> |
getEntityComments(Object o)
|
Set<String> |
getEntityComments(Object o,
String lang)
|
String |
getEntityName(Object o)
|
Set<String> |
getEntityNames(Object o)
|
Set<String> |
getEntityNames(Object o,
String lang)
|
URI |
getEntityURI(Object o)
|
Set<?> |
getIndividuals()
|
private Set<Object> |
getInheritedProperties(org.semanticweb.owl.model.OWLClass cl)
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nbentities
private int nbentities
nbclasses
private int nbclasses
nbproperties
private int nbproperties
nbobjectproperties
private int nbobjectproperties
nbdataproperties
private int nbdataproperties
nbindividuals
private int nbindividuals
OWLAPIOntology
public OWLAPIOntology()
getOntology
public org.semanticweb.owl.model.OWLOntology getOntology()
- Specified by:
getOntology
in interface Ontology<org.semanticweb.owl.model.OWLOntology>
- Overrides:
getOntology
in class BasicOntology<org.semanticweb.owl.model.OWLOntology>
setOntology
public void setOntology(org.semanticweb.owl.model.OWLOntology o)
- Specified by:
setOntology
in interface Ontology<org.semanticweb.owl.model.OWLOntology>
- Overrides:
setOntology
in class BasicOntology<org.semanticweb.owl.model.OWLOntology>
getEntity
public Object getEntity(URI uri)
throws AlignmentException
- Specified by:
getEntity
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
- Throws:
AlignmentException
getEntityURI
public URI getEntityURI(Object o)
throws AlignmentException
- Specified by:
getEntityURI
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
- Throws:
AlignmentException
getEntityName
public String getEntityName(Object o)
throws AlignmentException
- Specified by:
getEntityName
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
- Throws:
AlignmentException
getEntityNames
public Set<String> getEntityNames(Object o,
String lang)
throws AlignmentException
- Specified by:
getEntityNames
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
- Throws:
AlignmentException
getEntityNames
public Set<String> getEntityNames(Object o)
throws AlignmentException
- Specified by:
getEntityNames
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
- Throws:
AlignmentException
getEntityComments
public Set<String> getEntityComments(Object o,
String lang)
throws AlignmentException
- Specified by:
getEntityComments
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
- Throws:
AlignmentException
getEntityComments
public Set<String> getEntityComments(Object o)
throws AlignmentException
- Specified by:
getEntityComments
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
- Throws:
AlignmentException
getAnnotations
protected Set<String> getAnnotations(org.semanticweb.owl.model.OWLEntity e,
String lang,
String typeAnnot)
throws org.semanticweb.owl.model.OWLException
- Throws:
org.semanticweb.owl.model.OWLException
getEntityAnnotations
public Set<String> getEntityAnnotations(Object o)
throws AlignmentException
- Specified by:
getEntityAnnotations
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
- Throws:
AlignmentException
isEntity
public boolean isEntity(Object o)
- Specified by:
isEntity
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
isClass
public boolean isClass(Object o)
- Specified by:
isClass
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
isProperty
public boolean isProperty(Object o)
- Specified by:
isProperty
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
isDataProperty
public boolean isDataProperty(Object o)
- Specified by:
isDataProperty
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
isObjectProperty
public boolean isObjectProperty(Object o)
- Specified by:
isObjectProperty
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
isIndividual
public boolean isIndividual(Object o)
- Specified by:
isIndividual
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
getEntities
protected Set<?> getEntities(Class<? extends org.semanticweb.owl.model.OWLEntity> c)
throws org.semanticweb.owl.model.OWLException
- Throws:
org.semanticweb.owl.model.OWLException
getEntities
public Set<?> getEntities()
- Specified by:
getEntities
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
getClasses
public Set<?> getClasses()
- Specified by:
getClasses
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
getProperties
public Set<?> getProperties()
- Specified by:
getProperties
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
getDataProperties
public Set<?> getDataProperties()
- Specified by:
getDataProperties
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
getObjectProperties
public Set<?> getObjectProperties()
- Specified by:
getObjectProperties
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
getIndividuals
public Set<?> getIndividuals()
- Specified by:
getIndividuals
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
nbEntities
public int nbEntities()
- Specified by:
nbEntities
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
nbClasses
public int nbClasses()
- Specified by:
nbClasses
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
nbProperties
public int nbProperties()
- Specified by:
nbProperties
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
nbObjectProperties
public int nbObjectProperties()
- Specified by:
nbObjectProperties
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
nbDataProperties
public int nbDataProperties()
- Specified by:
nbDataProperties
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
nbIndividuals
public int nbIndividuals()
- Specified by:
nbIndividuals
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
unload
public void unload()
- Specified by:
unload
in interface LoadedOntology<org.semanticweb.owl.model.OWLOntology>
getCapabilities
public boolean getCapabilities(int Direct,
int Asserted,
int Named)
- Specified by:
getCapabilities
in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
getSubClasses
public Set<Object> getSubClasses(Object cl,
int local,
int asserted,
int named)
- Specified by:
getSubClasses
in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
getSuperClasses
public Set<Object> getSuperClasses(Object cl,
int local,
int asserted,
int named)
- Specified by:
getSuperClasses
in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
getProperties
public Set<Object> getProperties(Object cl,
int local,
int asserted,
int named)
- Specified by:
getProperties
in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
getDataProperties
public Set<Object> getDataProperties(Object c,
int local,
int asserted,
int named)
- Specified by:
getDataProperties
in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
getObjectProperties
public Set<Object> getObjectProperties(Object c,
int local,
int asserted,
int named)
- Specified by:
getObjectProperties
in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
getInstances
public Set<Object> getInstances(Object cl,
int local,
int asserted,
int named)
- Specified by:
getInstances
in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
getSubProperties
public Set<Object> getSubProperties(Object pr,
int local,
int asserted,
int named)
- Specified by:
getSubProperties
in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
getSuperProperties
public Set<Object> getSuperProperties(Object pr,
int local,
int asserted,
int named)
- Specified by:
getSuperProperties
in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
getRange
public Set<Object> getRange(Object p,
int asserted)
- Specified by:
getRange
in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
getDomain
public Set<Object> getDomain(Object p,
int asserted)
- Specified by:
getDomain
in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
getClasses
public Set<Object> getClasses(Object i,
int local,
int asserted,
int named)
- Specified by:
getClasses
in interface HeavyLoadedOntology<org.semanticweb.owl.model.OWLOntology>
getCardinalityRestrictions
public Set<Object> getCardinalityRestrictions(Object p)
getInheritedProperties
private Set<Object> getInheritedProperties(org.semanticweb.owl.model.OWLClass cl)
getProperties
public void getProperties(org.semanticweb.owl.model.OWLDescription desc,
Set<Object> list)
throws org.semanticweb.owl.model.OWLException
- Throws:
org.semanticweb.owl.model.OWLException
getProperties
public void getProperties(org.semanticweb.owl.model.OWLRestriction rest,
Set<Object> list)
throws org.semanticweb.owl.model.OWLException
- Throws:
org.semanticweb.owl.model.OWLException
getProperties
public void getProperties(org.semanticweb.owl.model.OWLNaryBooleanDescription d,
Set<Object> list)
throws org.semanticweb.owl.model.OWLException
- Throws:
org.semanticweb.owl.model.OWLException
getProperties
public void getProperties(org.semanticweb.owl.model.OWLClass cl,
Set<Object> list)
throws org.semanticweb.owl.model.OWLException
- Throws:
org.semanticweb.owl.model.OWLException
(C) INRIA & friends, 2003-2008