|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dllearner.reasoning.SPARQLReasoner
public class SPARQLReasoner
| Constructor Summary | |
|---|---|
SPARQLReasoner(SparqlEndpointKS ks)
|
|
| Method Summary | |
|---|---|
SortedSetTuple<Individual> |
doubleRetrieval(Description description)
Performs a query for all instances of the given class description and its negation. |
Set<Description> |
getAssertedDefinitions(NamedClass namedClass)
Returns all asserted owl:equivalence class axioms for the given class. |
Map<Individual,SortedSet<Boolean>> |
getBooleanDatatypeMembers(DatatypeProperty datatypeProperty)
Convenience method, which can be used if it is known that the property has values which can be parsed as boolean value. |
ClassHierarchy |
getClassHierarchy()
Computes and returns the class hierarchy of the knowledge base. |
Map<Individual,SortedSet<Constant>> |
getDatatypeMembers(DatatypeProperty datatypeProperty)
Computes and returns all connections between individuals and values through the specified property, e.g. |
DatatypePropertyHierarchy |
getDatatypePropertyHierarchy()
Computes and returns the data property hierarchy of the knowledge base. |
Description |
getDomain(DatatypeProperty datatypeProperty)
Returns the domain of this data property. |
Description |
getDomain(ObjectProperty objectProperty)
Returns the domain of this object property. |
Map<Individual,SortedSet<Double>> |
getDoubleDatatypeMembers(DatatypeProperty datatypeProperty)
Convenience method, which can be used if it is known that the property has values which can be parsed as double. |
SortedSet<Individual> |
getFalseDatatypeMembers(DatatypeProperty datatypeProperty)
Convenience method, which can be used to get all individuals, which have value "false" for the given property. |
Set<NamedClass> |
getInconsistentClasses()
Returns all named classes, which are not satisfiable, i.e. cannot have instances. |
SortedSet<Individual> |
getIndividuals(Description description)
Gets all instances of a given class description in the knowledge base. |
SortedSet<Individual> |
getIndividuals(Description description,
int limit)
|
Map<Individual,SortedSet<Integer>> |
getIntDatatypeMembers(DatatypeProperty datatypeProperty)
Convenience method, which can be used if it is known that the property has values which can be parsed as integer. |
TreeSet<DatatypeProperty> |
getMostGeneralDatatypeProperties()
|
TreeSet<ObjectProperty> |
getMostGeneralProperties()
TODO Outdated in OWL 2, because the universal role is the most general. |
TreeSet<DatatypeProperty> |
getMostSpecialDatatypeProperties()
|
TreeSet<ObjectProperty> |
getMostSpecialProperties()
TODO Outdated in OWL, because the bottom role is the most specific. |
ObjectPropertyHierarchy |
getObjectPropertyHierarchy()
Computes and returns the object property hierarchy of the knowledge base. |
Map<ObjectProperty,Set<Individual>> |
getObjectPropertyRelationships(Individual individual)
A map of properties related to an individual, e.g. |
Map<Individual,SortedSet<Individual>> |
getPropertyMembers(ObjectProperty objectProperty)
Computes and returns all connections between individuals through the specified property, e.g. |
DataRange |
getRange(DatatypeProperty datatypeProperty)
Returns the range of this data property. |
Description |
getRange(ObjectProperty objectProperty)
Returns the range of this object property. |
Set<Individual> |
getRelatedIndividuals(Individual individual,
ObjectProperty objectProperty)
Returns the set of individuals, which are connect to the given individual with the specified object property. |
Set<Constant> |
getRelatedValues(Individual individual,
DatatypeProperty datatypeProperty)
Returns the set of individuals, which are connect to the given individual with the specified data property. |
Map<Individual,SortedSet<String>> |
getStringDatatypeMembers(DatatypeProperty datatypeProperty)
Convenience method, which can be used which returns the property values as strings (note that any literal can be represented as string, even numbers). |
SortedSet<Description> |
getSubClasses(Description description)
Returns direct sub classes in the class hierarchy. |
SortedSet<DatatypeProperty> |
getSubProperties(DatatypeProperty dataProperty)
Returns more special concepts in the subsumption hierarchy. |
SortedSet<ObjectProperty> |
getSubProperties(ObjectProperty objectProperty)
Returns more special concepts in the subsumption hierarchy. |
SortedSet<Description> |
getSuperClasses(Description description)
Returns direct super classes in the class hierarchy. |
SortedSet<Description> |
getSuperClasses(Description description,
boolean direct)
|
SortedSet<DatatypeProperty> |
getSuperProperties(DatatypeProperty dataProperty)
Returns more general concepts in the subsumption hierarchy. |
SortedSet<ObjectProperty> |
getSuperProperties(ObjectProperty objectProperty)
Returns more general concepts in the subsumption hierarchy. |
SortedSet<Individual> |
getTrueDatatypeMembers(DatatypeProperty datatypeProperty)
Convenience method, which can be used to get all individuals, which have value "true" for the given property. |
Set<NamedClass> |
getTypes(Individual individual)
Returns types of an individual, i.e. those classes where the individual is instance of. |
boolean |
hasType(Description description,
Individual individual)
Checks whether individual is instance of description. |
SortedSet<Individual> |
hasType(Description description,
Set<Individual> individuals)
Performs instance checks on a set of instances (reasoners might be more efficient than handling each check separately). |
boolean |
isEquivalentClass(Description class1,
Description class2)
Checks whether class1 is equivalent to class2. |
boolean |
isSuperClassOf(Description superClass,
Description subClass)
Checks whether superClass is a super class of subClass. |
Set<Description> |
isSuperClassOf(Set<Description> superClasses,
Description subClasses)
Checks which of superClasses are super classes of subClass |
static void |
main(String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SPARQLReasoner(SparqlEndpointKS ks)
| Method Detail |
|---|
public Set<NamedClass> getTypes(Individual individual)
IndividualReasoner
getTypes in interface IndividualReasonerindividual - An individual in the knowledge base.
public boolean hasType(Description description,
Individual individual)
IndividualReasonerindividual is instance of description.
For instance, "Leipzig" may be an instance of "City".
hasType in interface IndividualReasonerdescription - An OWL class description.individual - An individual.
public SortedSet<Individual> hasType(Description description,
Set<Individual> individuals)
IndividualReasoner
hasType in interface IndividualReasonerdescription - An OWL class description.individuals - An individual.
public SortedSet<Individual> getIndividuals(Description description)
IndividualReasoner
getIndividuals in interface IndividualReasonerdescription - An OWL class description.
public SortedSet<Individual> getIndividuals(Description description,
int limit)
public SortedSetTuple<Individual> doubleRetrieval(Description description)
IndividualReasoner
doubleRetrieval in interface IndividualReasonerdescription - An OWL class description.
public Set<Individual> getRelatedIndividuals(Individual individual,
ObjectProperty objectProperty)
IndividualReasoner
getRelatedIndividuals in interface IndividualReasonerindividual - An individual, e.g. eric.objectProperty - An object property, e.g. hasChild.
public Set<Constant> getRelatedValues(Individual individual,
DatatypeProperty datatypeProperty)
IndividualReasoner
getRelatedValues in interface IndividualReasonerindividual - An individual, e.g. eric.
public Map<ObjectProperty,Set<Individual>> getObjectPropertyRelationships(Individual individual)
IndividualReasoner
getObjectPropertyRelationships in interface IndividualReasonerindividual - An individual.
public Map<Individual,SortedSet<Individual>> getPropertyMembers(ObjectProperty objectProperty)
IndividualReasoner
getPropertyMembers in interface IndividualReasonerobjectProperty - An object property.
public Map<Individual,SortedSet<Constant>> getDatatypeMembers(DatatypeProperty datatypeProperty)
IndividualReasoner
getDatatypeMembers in interface IndividualReasonerdatatypeProperty - A data property.
public Map<Individual,SortedSet<Double>> getDoubleDatatypeMembers(DatatypeProperty datatypeProperty)
IndividualReasoner
getDoubleDatatypeMembers in interface IndividualReasonerdatatypeProperty - A data property.
IndividualReasoner.getDatatypeMembers(DatatypeProperty),
Double.valueOf(String)public Map<Individual,SortedSet<Integer>> getIntDatatypeMembers(DatatypeProperty datatypeProperty)
IndividualReasoner
getIntDatatypeMembers in interface IndividualReasonerdatatypeProperty - A data property.
IndividualReasoner.getDatatypeMembers(DatatypeProperty),
Integer.valueOf(String)public Map<Individual,SortedSet<Boolean>> getBooleanDatatypeMembers(DatatypeProperty datatypeProperty)
IndividualReasoner
getBooleanDatatypeMembers in interface IndividualReasonerdatatypeProperty - A data property.
IndividualReasoner.getDatatypeMembers(DatatypeProperty)public SortedSet<Individual> getTrueDatatypeMembers(DatatypeProperty datatypeProperty)
IndividualReasoner
getTrueDatatypeMembers in interface IndividualReasonerdatatypeProperty - A data property.
IndividualReasoner.getDatatypeMembers(DatatypeProperty)public SortedSet<Individual> getFalseDatatypeMembers(DatatypeProperty datatypeProperty)
IndividualReasoner
getFalseDatatypeMembers in interface IndividualReasonerdatatypeProperty - A data property.
IndividualReasoner.getDatatypeMembers(DatatypeProperty)public Map<Individual,SortedSet<String>> getStringDatatypeMembers(DatatypeProperty datatypeProperty)
IndividualReasoner
getStringDatatypeMembers in interface IndividualReasonerdatatypeProperty - A data property.
IndividualReasoner.getDatatypeMembers(DatatypeProperty)public Set<NamedClass> getInconsistentClasses()
SchemaReasoner
getInconsistentClasses in interface SchemaReasonerpublic Description getDomain(ObjectProperty objectProperty)
SchemaReasoner
getDomain in interface SchemaReasonerobjectProperty - An object property in the knowledge base.
objectPropertypublic Description getDomain(DatatypeProperty datatypeProperty)
SchemaReasoner
getDomain in interface SchemaReasonerdatatypeProperty - An data property in the knowledge base.
datatypePropertypublic Description getRange(ObjectProperty objectProperty)
SchemaReasoner
getRange in interface SchemaReasonerobjectProperty - An object property in the knowledge base.
objectPropertypublic DataRange getRange(DatatypeProperty datatypeProperty)
SchemaReasoner
getRange in interface SchemaReasonerdatatypeProperty - An data property in the knowledge base.
datatypeProperty
public boolean isSuperClassOf(Description superClass,
Description subClass)
SchemaReasonersuperClass is a super class of subClass.
isSuperClassOf in interface SchemaReasonersuperClass - The (supposed) super class.subClass - The (supposed) sub class.
superClass is a super class of subClass.
public boolean isEquivalentClass(Description class1,
Description class2)
SchemaReasonerclass1 is equivalent to class2.
isEquivalentClass in interface SchemaReasonerclass1 - The first class.class2 - The second class2.
class1 is equivalent to class2.public Set<Description> getAssertedDefinitions(NamedClass namedClass)
SchemaReasoner
getAssertedDefinitions in interface SchemaReasonernamedClass - A named class in the background knowledge.
public Set<Description> isSuperClassOf(Set<Description> superClasses,
Description subClasses)
SchemaReasonersuperClasses are super classes of subClass
isSuperClassOf in interface SchemaReasonersuperClasses - A set of (supposed) super classes.subClasses - The (supposed) sub class.
superClasses, which satisfy the superclass-subclass relationship.public ClassHierarchy getClassHierarchy()
SchemaReasoner
getClassHierarchy in interface SchemaReasonerpublic SortedSet<Description> getSuperClasses(Description description)
SchemaReasoner
getSuperClasses in interface SchemaReasonerdescription - Atomic concept, top, or bottom.
public SortedSet<Description> getSuperClasses(Description description,
boolean direct)
public SortedSet<Description> getSubClasses(Description description)
SchemaReasoner
getSubClasses in interface SchemaReasonerdescription - Atomic concept, top, or bottom.
public ObjectPropertyHierarchy getObjectPropertyHierarchy()
SchemaReasoner
getObjectPropertyHierarchy in interface SchemaReasonerpublic SortedSet<ObjectProperty> getSuperProperties(ObjectProperty objectProperty)
SchemaReasoner
getSuperProperties in interface SchemaReasonerobjectProperty - Atomic concept, top, or bottom.
ObjectPropertyHierarchy.getMoreGeneralRoles(ObjectProperty)public SortedSet<ObjectProperty> getSubProperties(ObjectProperty objectProperty)
SchemaReasoner
getSubProperties in interface SchemaReasonerobjectProperty - Atomic concept, top, or bottom.
ObjectPropertyHierarchy.getMoreSpecialRoles(ObjectProperty)public TreeSet<ObjectProperty> getMostGeneralProperties()
SchemaReasoner
getMostGeneralProperties in interface SchemaReasonerObjectPropertyHierarchy.getMostGeneralRoles()public TreeSet<ObjectProperty> getMostSpecialProperties()
SchemaReasoner
getMostSpecialProperties in interface SchemaReasonerObjectPropertyHierarchy.getMostSpecialRoles()public DatatypePropertyHierarchy getDatatypePropertyHierarchy()
SchemaReasoner
getDatatypePropertyHierarchy in interface SchemaReasonerpublic SortedSet<DatatypeProperty> getSuperProperties(DatatypeProperty dataProperty)
SchemaReasoner
getSuperProperties in interface SchemaReasonerdataProperty - Atomic concept, top, or bottom.
ObjectPropertyHierarchy.getMoreGeneralRoles(ObjectProperty)public SortedSet<DatatypeProperty> getSubProperties(DatatypeProperty dataProperty)
SchemaReasoner
getSubProperties in interface SchemaReasonerdataProperty - Atomic concept, top, or bottom.
ObjectPropertyHierarchy.getMoreSpecialRoles(ObjectProperty)public TreeSet<DatatypeProperty> getMostGeneralDatatypeProperties()
getMostGeneralDatatypeProperties in interface SchemaReasonerObjectPropertyHierarchy.getMostGeneralRoles()public TreeSet<DatatypeProperty> getMostSpecialDatatypeProperties()
getMostSpecialDatatypeProperties in interface SchemaReasonerObjectPropertyHierarchy.getMostSpecialRoles()public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||