public class ReasonerHelper extends Object
| Constructor and Description |
|---|
ReasonerHelper(org.semanticweb.owlapi.reasoner.OWLReasoner r) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsSubclass(Collection<org.semanticweb.owlapi.model.OWLClassExpression> potentialSubs,
org.semanticweb.owlapi.model.OWLClassExpression cls) |
Set<org.semanticweb.owlapi.model.OWLClassExpression> |
filterClassExpressions(Set<org.semanticweb.owlapi.model.OWLClassExpression> clses) |
org.semanticweb.owlapi.model.OWLDataPropertyExpression |
getCandidatePropForRangeSubsumptionCheck(org.semanticweb.owlapi.model.OWLDataRange range)
Find a candidate property for datatype subsumption checking.
|
Set<org.semanticweb.owlapi.model.OWLDatatype> |
getDatatypesInSignature() |
org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLDatatype> |
getEquivalentTypes(org.semanticweb.owlapi.model.OWLDataRange range)
Equivalence between dataranges/types.
|
org.semanticweb.owlapi.model.OWLDataRange |
getGlobalAssertedRange(org.semanticweb.owlapi.model.OWLDataProperty p)
Find the asserted ranges on this property and all of its ancestors.
|
org.semanticweb.owlapi.model.OWLClassExpression |
getGlobalAssertedRange(org.semanticweb.owlapi.model.OWLObjectPropertyExpression p)
Check the ontologies for range assertions on p and all ancestors of p.
|
Set<org.semanticweb.owlapi.model.OWLDataProperty> |
getReferencedDataProperties() |
Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> |
getReferencedObjectProperties() |
org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLDatatype> |
getSubtypes(org.semanticweb.owlapi.model.OWLDataRange range)
Subsumption between dataranges/types.
|
boolean |
isAncestorOf(org.semanticweb.owlapi.model.OWLClassExpression cls1,
org.semanticweb.owlapi.model.OWLClassExpression cls2) |
boolean |
isDescendantOf(org.semanticweb.owlapi.model.OWLClassExpression cls1,
org.semanticweb.owlapi.model.OWLClassExpression cls2) |
boolean |
isInAssertedRange(org.semanticweb.owlapi.model.OWLDataProperty p,
org.semanticweb.owlapi.model.OWLDataRange f) |
boolean |
isInAssertedRange(org.semanticweb.owlapi.model.OWLObjectPropertyExpression p,
org.semanticweb.owlapi.model.OWLClassExpression f) |
boolean |
isLocallyFunctional(org.semanticweb.owlapi.model.OWLClassExpression c,
org.semanticweb.owlapi.model.OWLDataProperty p) |
boolean |
isLocallyFunctional(org.semanticweb.owlapi.model.OWLClassExpression c,
org.semanticweb.owlapi.model.OWLObjectPropertyExpression p) |
boolean |
isSubtype(org.semanticweb.owlapi.model.OWLDataRange subRange,
org.semanticweb.owlapi.model.OWLDataRange superRange)
Subsumption checking between dataranges/types.
|
public ReasonerHelper(org.semanticweb.owlapi.reasoner.OWLReasoner r)
public Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> getReferencedObjectProperties()
public Set<org.semanticweb.owlapi.model.OWLDataProperty> getReferencedDataProperties()
public boolean isDescendantOf(org.semanticweb.owlapi.model.OWLClassExpression cls1,
org.semanticweb.owlapi.model.OWLClassExpression cls2)
public boolean isAncestorOf(org.semanticweb.owlapi.model.OWLClassExpression cls1,
org.semanticweb.owlapi.model.OWLClassExpression cls2)
public Set<org.semanticweb.owlapi.model.OWLClassExpression> filterClassExpressions(Set<org.semanticweb.owlapi.model.OWLClassExpression> clses)
public boolean containsSubclass(Collection<org.semanticweb.owlapi.model.OWLClassExpression> potentialSubs, org.semanticweb.owlapi.model.OWLClassExpression cls)
public boolean isLocallyFunctional(org.semanticweb.owlapi.model.OWLClassExpression c,
org.semanticweb.owlapi.model.OWLObjectPropertyExpression p)
public boolean isLocallyFunctional(org.semanticweb.owlapi.model.OWLClassExpression c,
org.semanticweb.owlapi.model.OWLDataProperty p)
public org.semanticweb.owlapi.model.OWLClassExpression getGlobalAssertedRange(org.semanticweb.owlapi.model.OWLObjectPropertyExpression p)
Check the ontologies for range assertions on p and all ancestors of p.
p - the object property for which a range is wantedpublic org.semanticweb.owlapi.model.OWLDataRange getGlobalAssertedRange(org.semanticweb.owlapi.model.OWLDataProperty p)
Find the asserted ranges on this property and all of its ancestors.
If multiple ranges are found, they are pulled together into an intersection.
p - the property we are queryingpublic boolean isSubtype(org.semanticweb.owlapi.model.OWLDataRange subRange,
org.semanticweb.owlapi.model.OWLDataRange superRange)
#getCandidatePropForRangeSubsumptionCheck).subRange - superRange - RuntimeException - if no suitable property can be foundpublic org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLDatatype> getSubtypes(org.semanticweb.owlapi.model.OWLDataRange range)
#getCandidatePropForRangeSubsumptionCheck).range - The data range for which we will retrieve subtypesRuntimeException - if no suitable property can be foundpublic org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLDatatype> getEquivalentTypes(org.semanticweb.owlapi.model.OWLDataRange range)
#getCandidatePropForRangeSubsumptionCheck).range - The data range for which we will retrieve equivalentsRuntimeException - if no suitable property can be foundpublic org.semanticweb.owlapi.model.OWLDataPropertyExpression getCandidatePropForRangeSubsumptionCheck(org.semanticweb.owlapi.model.OWLDataRange range)
Find a candidate property for datatype subsumption checking.
If {O} is the set of ontologies loaded into the reasoner, a candidate is ANY data property (APART FROM Top) in the signature of {O} that satifies the criteria isSatisfiable(SomeValuesFrom(p, range).
range - the data range from which will be used in the above testpublic Set<org.semanticweb.owlapi.model.OWLDatatype> getDatatypesInSignature()
public boolean isInAssertedRange(org.semanticweb.owlapi.model.OWLObjectPropertyExpression p,
org.semanticweb.owlapi.model.OWLClassExpression f)
public boolean isInAssertedRange(org.semanticweb.owlapi.model.OWLDataProperty p,
org.semanticweb.owlapi.model.OWLDataRange f)
Copyright © 2013 The University of Manchester. All Rights Reserved.