|
Alignment API and Server 4.1.${version.update} | |||||||||
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.skos.SKOSDataset>
fr.inrialpes.exmo.ontowrap.skosapi.SKOSThesaurus
public class SKOSThesaurus
Field Summary | |
---|---|
(package private) org.semanticweb.skos.SKOSDataFactory |
factory
|
private static HashSet |
NullSet
|
Fields inherited from class fr.inrialpes.exmo.ontowrap.BasicOntology |
---|
file, formalism, formalismURI, onto, uri |
Constructor Summary | |
---|---|
SKOSThesaurus()
|
Method Summary | |
---|---|
boolean |
getCapabilities(int Direct,
int Asserted,
int Named)
THESE ARE HEAVY LOADED PRIMITIVES |
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)
|
void |
getDataValues(org.semanticweb.skos.SKOSConcept o,
org.semanticweb.skos.SKOSDataProperty p,
Set<String> result)
onto.getSKOSDataRelationAssertions(concept) assertion.getSKOSObject(); if (literal.isTyped()) { SKOSTypedLiteral typedLiteral = literal.getAsSKOSTypedLiteral(); System.out.println("\t\t" + assertion.getSKOSProperty().getURI().getFragment() + " " + literal.getLiteral() + " Type:" + typedLiteral.getDataType().getURI() ); } else { SKOSUntypedLiteral untypedLiteral = literal.getAsSKOSUntypedLiteral(); if (untypedLiteral.hasLang()) { lang = untypedLiteral.getLang(); }} |
void |
getDataValues(org.semanticweb.skos.SKOSConcept o,
org.semanticweb.skos.SKOSDataProperty p,
Set<String> result,
String lang)
|
Set<Object> |
getDomain(Object p,
int asserted)
|
Set<?> |
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)
There is no languages on annotations in SKOS API Hence we return all of them |
Map<String,String> |
getEntityAnnotationsL(Object o)
|
Set<String> |
getEntityComments(Object o)
Returns all the values of the "rdfs:comment" property for a given entity |
Set<String> |
getEntityComments(Object o,
String lang)
Returns the values of the "rdfs:comment" property for a given entity and for a given natural language (attribute xml:lang). |
String |
getEntityName(Object o)
returns one of the prefLabel property values for a given SKOS concept. |
String |
getEntityName(Object o,
String lang)
returns one of the prefLabel property values for a given SKOS concept in a given language. |
Set<String> |
getEntityNames(Object o)
Returns the values of the prefLabel, hiddenLabel and altLabel properties. |
Set<String> |
getEntityNames(Object o,
String lang)
Returns the values of the prefLabel, hiddenLabel and altLabel properties in a given language. |
URI |
getEntityURI(Object o)
|
Set<?> |
getIndividuals()
|
Set<Object> |
getInstances(Object c,
int local,
int asserted,
int named)
|
Set<?> |
getObjectProperties()
|
Set<Object> |
getObjectProperties(Object c,
int local,
int asserted,
int named)
|
Set<?> |
getProperties()
|
Set<Object> |
getProperties(Object c,
int local,
int asserted,
int named)
|
Set<Object> |
getRange(Object p,
int asserted)
|
Set<Object> |
getSubClasses(Object c,
int local,
int asserted,
int named)
|
Set<Object> |
getSubProperties(Object p,
int local,
int asserted,
int named)
|
Set<Object> |
getSuperClasses(Object c,
int local,
int asserted,
int named)
|
Set<Object> |
getSuperProperties(Object p,
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 |
setFactory(org.semanticweb.skos.SKOSDataFactory df)
|
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 |
---|
org.semanticweb.skos.SKOSDataFactory factory
private static HashSet NullSet
Constructor Detail |
---|
public SKOSThesaurus()
Method Detail |
---|
public void setFactory(org.semanticweb.skos.SKOSDataFactory df)
public void getDataValues(org.semanticweb.skos.SKOSConcept o, org.semanticweb.skos.SKOSDataProperty p, Set<String> result)
public void getDataValues(org.semanticweb.skos.SKOSConcept o, org.semanticweb.skos.SKOSDataProperty p, Set<String> result, String lang)
public String getEntityName(Object o) throws OntowrapException
getEntityName
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
o
- the entity
OntowrapException
- JE// This is not satisfying because in case of several PrefLabels it will return the first one...public String getEntityName(Object o, String lang) throws OntowrapException
getEntityName
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
o
- the entitylang
- the code of the language ("en", "fr", "es", etc.)
OntowrapException
- JE// This is not satisfying because in case of several PrefLabels it will return the first one...public Set<String> getEntityNames(Object o, String lang) throws OntowrapException
getEntityNames
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
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<org.semanticweb.skos.SKOSDataset>
o
- the concept
OntowrapException
public Set<String> getEntityComments(Object o, String lang) throws OntowrapException
getEntityComments
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
o
- the entitylang
- the code of the language ("en", "fr", "es", etc.)
OntowrapException
public Map<String,String> getEntityAnnotationsL(Object o) throws OntowrapException
getEntityAnnotationsL
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
OntowrapException
public Set<String> getEntityComments(Object o) throws OntowrapException
getEntityComments
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
o
- the entity
OntowrapException
public Set<String> getEntityAnnotations(Object o) throws OntowrapException
getEntityAnnotations
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
o
- the entity
OntowrapException
public Set<String> getEntityAnnotations(Object o, String lang) throws OntowrapException
getEntityAnnotations
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
o
- the entitylang
- the code of the language ("en", "fr", "es", etc.)
OntowrapException
public Object getEntity(URI u) throws OntowrapException
getEntity
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
OntowrapException
public URI getEntityURI(Object o) throws OntowrapException
getEntityURI
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
OntowrapException
public Set<?> getClasses()
getClasses
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
public Set<?> getDataProperties()
getDataProperties
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
public Set<?> getEntities()
LoadedOntology
getEntities
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
public Set<?> getIndividuals()
getIndividuals
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
public Set<?> getObjectProperties()
getObjectProperties
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
public Set<?> getProperties()
getProperties
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
public boolean isClass(Object o)
isClass
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
public boolean isDataProperty(Object o)
isDataProperty
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
public boolean isEntity(Object o)
isEntity
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
public boolean isIndividual(Object o)
isIndividual
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
public boolean isObjectProperty(Object o)
isObjectProperty
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
public boolean isProperty(Object o)
isProperty
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
public int nbEntities()
nbEntities
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
public int nbClasses()
nbClasses
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
public int nbDataProperties()
nbDataProperties
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
public int nbIndividuals()
nbIndividuals
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
public int nbObjectProperties()
nbObjectProperties
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
public int nbProperties()
nbProperties
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
public void unload()
unload
in interface LoadedOntology<org.semanticweb.skos.SKOSDataset>
public boolean getCapabilities(int Direct, int Asserted, int Named)
getCapabilities
in interface HeavyLoadedOntology<org.semanticweb.skos.SKOSDataset>
public Set<Object> getSubClasses(Object c, int local, int asserted, int named)
getSubClasses
in interface HeavyLoadedOntology<org.semanticweb.skos.SKOSDataset>
public Set<Object> getSuperClasses(Object c, int local, int asserted, int named)
getSuperClasses
in interface HeavyLoadedOntology<org.semanticweb.skos.SKOSDataset>
public Set<Object> getProperties(Object c, int local, int asserted, int named)
getProperties
in interface HeavyLoadedOntology<org.semanticweb.skos.SKOSDataset>
public Set<Object> getDataProperties(Object c, int local, int asserted, int named)
getDataProperties
in interface HeavyLoadedOntology<org.semanticweb.skos.SKOSDataset>
public Set<Object> getObjectProperties(Object c, int local, int asserted, int named)
getObjectProperties
in interface HeavyLoadedOntology<org.semanticweb.skos.SKOSDataset>
public Set<Object> getInstances(Object c, int local, int asserted, int named)
getInstances
in interface HeavyLoadedOntology<org.semanticweb.skos.SKOSDataset>
public Set<Object> getSubProperties(Object p, int local, int asserted, int named)
getSubProperties
in interface HeavyLoadedOntology<org.semanticweb.skos.SKOSDataset>
public Set<Object> getSuperProperties(Object p, int local, int asserted, int named)
getSuperProperties
in interface HeavyLoadedOntology<org.semanticweb.skos.SKOSDataset>
public Set<Object> getRange(Object p, int asserted)
getRange
in interface HeavyLoadedOntology<org.semanticweb.skos.SKOSDataset>
public Set<Object> getDomain(Object p, int asserted)
getDomain
in interface HeavyLoadedOntology<org.semanticweb.skos.SKOSDataset>
public Set<Object> getClasses(Object i, int local, int asserted, int named)
getClasses
in interface HeavyLoadedOntology<org.semanticweb.skos.SKOSDataset>
|
Alignment API and Server 4.1.${version.update} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |