public interface LoadedOntology<O> extends Ontology<O>
Modifier and Type | Method and Description |
---|---|
java.util.Set<? extends java.lang.Object> |
getClasses() |
java.util.Set<? extends java.lang.Object> |
getDataProperties() |
java.util.Set<? extends java.lang.Object> |
getEntities()
Returns all named entities having URI beginning with the ontology URI
|
java.lang.Object |
getEntity(java.net.URI u)
returns the entity corresponding to the given URI
If no such entity exists, may return null or raise an exception
|
java.util.Set<java.lang.String> |
getEntityAnnotations(java.lang.Object o)
Returns all the values of the "owl:AnnotationProperty" property for a given entity.
|
java.util.Set<java.lang.String> |
getEntityAnnotations(java.lang.Object o,
java.lang.String lang)
Returns all the values of the "owl:AnnotationProperty" property for a given entity expressed in the required language.
|
java.util.Set<Annotation> |
getEntityAnnotationsL(java.lang.Object o) |
java.util.Set<java.lang.String> |
getEntityComments(java.lang.Object o)
Returns all the values of textual properties (e.g., "rdfs:comment", rdfs:label in RDFS/OWL) for a given entity
|
java.util.Set<java.lang.String> |
getEntityComments(java.lang.Object o,
java.lang.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).
|
java.lang.String |
getEntityName(java.lang.Object o)
returns the default name of an entity if specified.
|
java.lang.String |
getEntityName(java.lang.Object o,
java.lang.String lang)
returns the default name of an entity in a language (attribute xml:lang)
if specified.
|
java.util.Set<java.lang.String> |
getEntityNames(java.lang.Object o)
Returns all the names a given entity (e.g., rdfs:labels in OWL/RDFS).
|
java.util.Set<java.lang.String> |
getEntityNames(java.lang.Object o,
java.lang.String lang)
returns all the names of an entity in a language if specified.
|
java.net.URI |
getEntityURI(java.lang.Object o)
returns the URI of an entity in the ontology
|
java.util.Set<? extends java.lang.Object> |
getIndividuals() |
java.util.Set<? extends java.lang.Object> |
getObjectProperties() |
java.util.Set<? extends java.lang.Object> |
getProperties() |
boolean |
isClass(java.lang.Object o) |
boolean |
isDataProperty(java.lang.Object o) |
boolean |
isEntity(java.lang.Object o) |
boolean |
isIndividual(java.lang.Object o) |
boolean |
isObjectProperty(java.lang.Object o) |
boolean |
isProperty(java.lang.Object o) |
int |
nbClasses() |
int |
nbDataProperties() |
int |
nbEntities() |
int |
nbIndividuals() |
int |
nbObjectProperties() |
int |
nbProperties() |
void |
unload() |
getFile, getFormalism, getFormURI, getOntology, getURI, setFile, setFormalism, setFormURI, setOntology, setURI
java.lang.Object getEntity(java.net.URI u) throws OntowrapException
u:
- the URI of an entityOntowrapException
- when an exception has been caughtjava.net.URI getEntityURI(java.lang.Object o) throws OntowrapException
o:
- the entityOntowrapException
- when an exception has been caughtjava.lang.String getEntityName(java.lang.Object o) throws OntowrapException
o:
- the entityOntowrapException
- when something went wrongjava.lang.String getEntityName(java.lang.Object o, java.lang.String lang) throws OntowrapException
o:
- the entitylang:
- the code of the language ("en", "fr", "es", etc.)OntowrapException
- when something went wrongjava.util.Set<java.lang.String> getEntityNames(java.lang.Object o, java.lang.String lang) throws OntowrapException
o:
- the entitylang:
- the code of the language ("en", "fr", "es", etc.)OntowrapException
- when something went wrongjava.util.Set<java.lang.String> getEntityNames(java.lang.Object o) throws OntowrapException
o:
- the entityOntowrapException
- when something went wrongjava.util.Set<java.lang.String> getEntityComments(java.lang.Object o, java.lang.String lang) throws OntowrapException
o:
- the entitylang:
- the code of the language ("en", "fr", "es", etc.)OntowrapException
- when something went wrongjava.util.Set<java.lang.String> getEntityComments(java.lang.Object o) throws OntowrapException
o:
- the entityOntowrapException
- when something went wrongjava.util.Set<java.lang.String> getEntityAnnotations(java.lang.Object o) throws OntowrapException
o:
- the entityOntowrapException
- when something went wrongjava.util.Set<Annotation> getEntityAnnotationsL(java.lang.Object o) throws OntowrapException
OntowrapException
java.util.Set<java.lang.String> getEntityAnnotations(java.lang.Object o, java.lang.String lang) throws OntowrapException
o:
- the entitylang:
- the code of the language ("en", "fr", "es", etc.)OntowrapException
- when something went wrongboolean isEntity(java.lang.Object o) throws OntowrapException
OntowrapException
boolean isClass(java.lang.Object o) throws OntowrapException
OntowrapException
boolean isProperty(java.lang.Object o) throws OntowrapException
OntowrapException
boolean isDataProperty(java.lang.Object o) throws OntowrapException
OntowrapException
boolean isObjectProperty(java.lang.Object o) throws OntowrapException
OntowrapException
boolean isIndividual(java.lang.Object o) throws OntowrapException
OntowrapException
java.util.Set<? extends java.lang.Object> getEntities() throws OntowrapException
OntowrapException
- when something went wrongjava.util.Set<? extends java.lang.Object> getClasses() throws OntowrapException
OntowrapException
java.util.Set<? extends java.lang.Object> getProperties() throws OntowrapException
OntowrapException
java.util.Set<? extends java.lang.Object> getObjectProperties() throws OntowrapException
OntowrapException
java.util.Set<? extends java.lang.Object> getDataProperties() throws OntowrapException
OntowrapException
java.util.Set<? extends java.lang.Object> getIndividuals() throws OntowrapException
OntowrapException
int nbEntities() throws OntowrapException
OntowrapException
int nbClasses() throws OntowrapException
OntowrapException
int nbProperties() throws OntowrapException
OntowrapException
int nbDataProperties() throws OntowrapException
OntowrapException
int nbObjectProperties() throws OntowrapException
OntowrapException
int nbIndividuals() throws OntowrapException
OntowrapException
void unload() throws OntowrapException
OntowrapException
(C) INRIA & friends, 2003-2020