|
Alignment API and Server 4.2.${version.update} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.inrialpes.exmo.ontowrap.skoslite.SKOSLiteThesaurus
public class SKOSLiteThesaurus
Field Summary | |
---|---|
protected URI |
file
|
protected String |
formalism
|
protected URI |
formUri
|
protected com.hp.hpl.jena.rdf.model.Model |
onto
|
protected com.hp.hpl.jena.rdf.model.InfModel |
ontoInf
|
protected static String |
SKOS_BROADERTRANSITIVE
|
protected static String |
SKOS_CONCEPT
|
protected static String |
SKOS_NARROWERTRANSITIVE
|
protected static String |
SKOS_NOTATION
|
protected static String |
SKOS_NOTE
|
protected static String |
SKOS_NS
|
protected static String |
SKOS_ONTO
|
protected static String |
SKOS_PREFLABEL
|
protected URI |
uri
|
Constructor Summary | |
---|---|
SKOSLiteThesaurus(com.hp.hpl.jena.rdf.model.Model onto)
|
|
SKOSLiteThesaurus(URI file)
|
Method Summary | ||
---|---|---|
boolean |
getCapabilities(int Direct,
int Asserted,
int Named)
|
|
Set<? extends Object> |
getClasses()
|
|
Set<? extends Object> |
getClasses(Object i,
int local,
int asserted,
int named)
returns empty set |
|
Set<? extends Object> |
getDataProperties()
|
|
Set<? extends Object> |
getDataProperties(Object c,
int local,
int asserted,
int named)
returns empty set |
|
Set<? extends Object> |
getDomain(Object p,
int asserted)
returns empty set |
|
Set<? extends Object> |
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. |
|
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> |
getEntityAnnotations(Object o,
String lang,
String[] types)
|
|
Set<Annotation> |
getEntityAnnotationsL(Object o)
|
|
Set<Annotation> |
getEntityAnnotationsL(Object o,
String[] types)
|
|
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 one of the skos:prefLabel In skos there at most one prefLabel for a given language |
|
String |
getEntityName(Object o,
String lang)
returns the skos:prefLabel for the given language. |
|
Set<String> |
getEntityNames(Object o)
returns all the labels, i.e. |
|
Set<String> |
getEntityNames(Object o,
String lang)
returns all the labels, i.e. |
|
URI |
getEntityURI(Object o)
|
|
URI |
getFile()
|
|
String |
getFormalism()
|
|
URI |
getFormURI()
|
|
Set<? extends Object> |
getIndividuals()
No individuals for skos. |
|
Set<? extends Object> |
getInstances(Object c,
int local,
int asserted,
int named)
returns empty set |
|
Set<? extends Object> |
getObjectProperties()
No object property for skos. |
|
Set<? extends Object> |
getObjectProperties(Object c,
int local,
int asserted,
int named)
returns empty set |
|
com.hp.hpl.jena.rdf.model.Model |
getOntology()
|
|
Set<? extends Object> |
getProperties()
No property for skos. |
|
Set<? extends Object> |
getProperties(Object c,
int local,
int asserted,
int named)
returns empty set |
|
Set<? extends Object> |
getRange(Object p,
int asserted)
returns empty set |
|
|
getSubClasses(E c,
int local,
int asserted,
int named)
returns all sub concepts of given object c. |
|
Set<? extends Object> |
getSubProperties(Object p,
int local,
int asserted,
int named)
returns empty set |
|
Set<? extends Object> |
getSuperClasses(Object c,
int local,
int asserted,
int named)
|
|
Set<? extends Object> |
getSuperProperties(Object p,
int local,
int asserted,
int named)
returns empty set |
|
URI |
getURI()
|
|
boolean |
isClass(Object o)
returns true if the given object is an instance of skos:Concept |
|
boolean |
isDataProperty(Object o)
returns false |
|
boolean |
isEntity(Object o)
returns false |
|
boolean |
isIndividual(Object o)
returns false |
|
boolean |
isObjectProperty(Object o)
returns false |
|
boolean |
isProperty(Object o)
returns false |
|
int |
nbClasses()
returns the number of skos:Concept in the thesaurus |
|
int |
nbDataProperties()
returns 0 |
|
int |
nbEntities()
returns the same number than nbClasses() |
|
int |
nbIndividuals()
returns 0 |
|
int |
nbObjectProperties()
returns 0 |
|
int |
nbProperties()
returns 0 |
|
void |
setFile(URI file)
|
|
void |
setFormalism(String name)
|
|
void |
setFormURI(URI u)
|
|
void |
setOntology(com.hp.hpl.jena.rdf.model.Model o)
|
|
void |
setURI(URI uri)
|
|
void |
unload()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String SKOS_ONTO
protected static final String SKOS_NS
protected static final String SKOS_CONCEPT
protected static final String SKOS_PREFLABEL
protected static final String SKOS_NOTE
protected static final String SKOS_NOTATION
protected static final String SKOS_BROADERTRANSITIVE
protected static final String SKOS_NARROWERTRANSITIVE
protected com.hp.hpl.jena.rdf.model.InfModel ontoInf
protected com.hp.hpl.jena.rdf.model.Model onto
protected String formalism
protected URI formUri
protected URI file
protected URI uri
Constructor Detail |
---|
public SKOSLiteThesaurus(URI file)
public SKOSLiteThesaurus(com.hp.hpl.jena.rdf.model.Model onto)
Method Detail |
---|
public boolean getCapabilities(int Direct, int Asserted, int Named) throws OntowrapException
getCapabilities
in interface HeavyLoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public Set<? extends Object> getClasses(Object i, int local, int asserted, int named) throws OntowrapException
getClasses
in interface HeavyLoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public Set<? extends Object> getDataProperties(Object c, int local, int asserted, int named) throws OntowrapException
getDataProperties
in interface HeavyLoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public Set<? extends Object> getDomain(Object p, int asserted) throws OntowrapException
getDomain
in interface HeavyLoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public Set<? extends Object> getInstances(Object c, int local, int asserted, int named) throws OntowrapException
getInstances
in interface HeavyLoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public Set<? extends Object> getObjectProperties(Object c, int local, int asserted, int named) throws OntowrapException
getObjectProperties
in interface HeavyLoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public Set<? extends Object> getProperties(Object c, int local, int asserted, int named) throws OntowrapException
getProperties
in interface HeavyLoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public Set<? extends Object> getRange(Object p, int asserted) throws OntowrapException
getRange
in interface HeavyLoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public Set<? extends Object> getSubProperties(Object p, int local, int asserted, int named) throws OntowrapException
getSubProperties
in interface HeavyLoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public Set<? extends Object> getSuperProperties(Object p, int local, int asserted, int named) throws OntowrapException
getSuperProperties
in interface HeavyLoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public <E> Set<E> getSubClasses(E c, int local, int asserted, int named)
getSubClasses
in interface HeavyLoadedOntology<com.hp.hpl.jena.rdf.model.Model>
public Set<? extends Object> getSuperClasses(Object c, int local, int asserted, int named) throws OntowrapException
getSuperClasses
in interface HeavyLoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public Set<? extends Object> getClasses() throws OntowrapException
getClasses
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public Set<? extends Object> getDataProperties() throws OntowrapException
getDataProperties
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public Set<? extends Object> getEntities() throws OntowrapException
LoadedOntology
getEntities
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public Object getEntity(URI u) throws OntowrapException
getEntity
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public Set<String> getEntityAnnotations(Object o, String lang, String[] types) throws OntowrapException
OntowrapException
public Set<Annotation> getEntityAnnotationsL(Object o, String[] types) throws OntowrapException
OntowrapException
public Set<Annotation> getEntityAnnotationsL(Object o) throws OntowrapException
getEntityAnnotationsL
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public Set<String> getEntityAnnotations(Object o) throws OntowrapException
LoadedOntology
getEntityAnnotations
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
o
- the entity
OntowrapException
public Set<String> getEntityAnnotations(Object o, String lang) throws OntowrapException
LoadedOntology
getEntityAnnotations
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
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.rdf.model.Model>
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.rdf.model.Model>
o
- the entity
OntowrapException
public String getEntityName(Object o) throws OntowrapException
getEntityName
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
o
- the entity
OntowrapException
public String getEntityName(Object o, String lang) throws OntowrapException
getEntityName
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
o
- the entity
OntowrapException
public Set<String> getEntityNames(Object o, String lang) throws OntowrapException
getEntityNames
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
o
- the entitylang
- the code of the language ("en", "fr", "es", etc.)
OntowrapException
public Set<String> getEntityNames(Object o) throws OntowrapException
getEntityNames
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
o
- the entity
OntowrapException
public URI getEntityURI(Object o) throws OntowrapException
getEntityURI
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public Set<? extends Object> getIndividuals() throws OntowrapException
getIndividuals
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public Set<? extends Object> getObjectProperties() throws OntowrapException
getObjectProperties
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public Set<? extends Object> getProperties() throws OntowrapException
getProperties
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public boolean isClass(Object o) throws OntowrapException
isClass
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public boolean isDataProperty(Object o) throws OntowrapException
isDataProperty
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public boolean isEntity(Object o) throws OntowrapException
isEntity
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public boolean isIndividual(Object o) throws OntowrapException
isIndividual
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public boolean isObjectProperty(Object o) throws OntowrapException
isObjectProperty
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public boolean isProperty(Object o) throws OntowrapException
isProperty
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public int nbClasses() throws OntowrapException
nbClasses
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public int nbDataProperties() throws OntowrapException
nbDataProperties
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public int nbEntities() throws OntowrapException
nbEntities
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public int nbIndividuals() throws OntowrapException
nbIndividuals
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public int nbObjectProperties() throws OntowrapException
nbObjectProperties
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public int nbProperties() throws OntowrapException
nbProperties
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public void unload() throws OntowrapException
unload
in interface LoadedOntology<com.hp.hpl.jena.rdf.model.Model>
OntowrapException
public URI getFile()
getFile
in interface Ontology<com.hp.hpl.jena.rdf.model.Model>
public URI getFormURI()
getFormURI
in interface Ontology<com.hp.hpl.jena.rdf.model.Model>
public String getFormalism()
getFormalism
in interface Ontology<com.hp.hpl.jena.rdf.model.Model>
public com.hp.hpl.jena.rdf.model.Model getOntology()
getOntology
in interface Ontology<com.hp.hpl.jena.rdf.model.Model>
public URI getURI()
getURI
in interface Ontology<com.hp.hpl.jena.rdf.model.Model>
public void setFile(URI file)
setFile
in interface Ontology<com.hp.hpl.jena.rdf.model.Model>
public void setFormURI(URI u)
setFormURI
in interface Ontology<com.hp.hpl.jena.rdf.model.Model>
public void setFormalism(String name)
setFormalism
in interface Ontology<com.hp.hpl.jena.rdf.model.Model>
public void setOntology(com.hp.hpl.jena.rdf.model.Model o)
setOntology
in interface Ontology<com.hp.hpl.jena.rdf.model.Model>
public void setURI(URI uri)
setURI
in interface Ontology<com.hp.hpl.jena.rdf.model.Model>
|
Alignment API and Server 4.2.${version.update} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |