public class OWLGraphWrapperEdges extends OWLGraphWrapperExtended
OWLGraphWrapperEdges.Config
object to customize the behavior for closures and used
properties.OWLReasoner
, if available, to infer relations between
entities.OWLGraphWrapper
,
OWLGraphWrapperExtended
Modifier and Type | Class and Description |
---|---|
class |
OWLGraphWrapperEdges.Config
Configuration options.
|
Modifier and Type | Field and Description |
---|---|
Map<org.semanticweb.owlapi.model.OWLObject,Set<OWLGraphEdge>> |
inferredEdgeBySource |
protected Profiler |
profiler |
sourceOntology, supportOntologySet
Modifier | Constructor and Description |
---|---|
protected |
OWLGraphWrapperEdges(org.semanticweb.owlapi.model.OWLOntology ontology) |
protected |
OWLGraphWrapperEdges(String iri) |
Modifier and Type | Method and Description |
---|---|
void |
cacheEdges()
caches full outgoing and incoming edges
|
void |
clearCachedEdges()
Clear the current edge cache.
|
protected OWLQuantifiedProperty |
combinedQuantifiedPropertyPair(OWLQuantifiedProperty x,
OWLQuantifiedProperty y)
Edge composition rules
TODO - property chains of length > 2
|
protected boolean |
combineEdgePair(OWLGraphEdge mergedEdge,
List<OWLQuantifiedProperty> neQp,
List<OWLQuantifiedProperty> extEdgeQp,
int nextDist)
Combine the
OWLQuantifiedProperty List s neQp and
extEdgeQp and assigned the resulting OWLQuantifiedProperty s
to mergedEdge . |
OWLGraphEdge |
combineEdgePair(org.semanticweb.owlapi.model.OWLObject s,
OWLGraphEdge ne,
OWLGraphEdge extEdge,
int nextDist)
Composes two graph edges into a new edge, using axioms in the ontology to determine the correct composition
|
org.semanticweb.owlapi.model.OWLObject |
edgeToTargetExpression(OWLGraphEdge e)
pack/translate an edge (either asserted or a graph closure edge) into
an OWL class expression according to the OWLGraph to OWLOntology
translation rules.
|
List<org.semanticweb.owlapi.model.OWLObjectProperty> |
expandRelationChain(org.semanticweb.owlapi.model.OWLObjectProperty property)
If available, return the elements of the equivalent property chain.
|
protected void |
filterEdges(Set<OWLGraphEdge> edges,
Set<? extends org.semanticweb.owlapi.model.OWLPropertyExpression> overProperties) |
Set<org.semanticweb.owlapi.model.OWLObject> |
getAncestors(org.semanticweb.owlapi.model.OWLObject x)
returns all ancestors of an object.
|
Set<org.semanticweb.owlapi.model.OWLObject> |
getAncestors(org.semanticweb.owlapi.model.OWLObject x,
Set<org.semanticweb.owlapi.model.OWLPropertyExpression> overProps)
returns all ancestors that can be reached over subclass or
the specified set of relations
|
Set<org.semanticweb.owlapi.model.OWLObject> |
getAncestors(org.semanticweb.owlapi.model.OWLObject x,
Set<org.semanticweb.owlapi.model.OWLPropertyExpression> overProps,
boolean isStrict)
As
overProps ,
but if isStrict is true, then only consider paths that include at least one edge
with a property in the specified set. |
Set<org.semanticweb.owlapi.model.OWLObject> |
getAncestorsReflexive(org.semanticweb.owlapi.model.OWLObject x) |
Set<org.semanticweb.owlapi.model.OWLObject> |
getAncestorsReflexive(org.semanticweb.owlapi.model.OWLObject x,
Set<org.semanticweb.owlapi.model.OWLPropertyExpression> overProps) |
Set<OWLGraphEdge> |
getCompleteEdgesBetween(org.semanticweb.owlapi.model.OWLObject s,
org.semanticweb.owlapi.model.OWLObject t) |
Set<OWLGraphEdge> |
getCompleteOutgoingEdgesClosure(org.semanticweb.owlapi.model.OWLObject s)
|
OWLGraphWrapperEdges.Config |
getConfig() |
Set<org.semanticweb.owlapi.model.OWLObject> |
getDescendants(org.semanticweb.owlapi.model.OWLObject x)
gets all descendants d of x, where d is reachable by any path.
|
Set<org.semanticweb.owlapi.model.OWLObject> |
getDescendantsReflexive(org.semanticweb.owlapi.model.OWLObject x)
gets all reflexive descendants d of x, where d is reachable by any path.
|
String |
getEdgeLabel(OWLGraphEdge e)
Get the human readable label for an edge.
|
Set<OWLGraphEdge> |
getEdgesBetween(org.semanticweb.owlapi.model.OWLObject s,
org.semanticweb.owlapi.model.OWLObject t) |
Set<OWLGraphEdge> |
getIncomingEdges(org.semanticweb.owlapi.model.OWLObject t) |
Set<OWLGraphEdge> |
getIncomingEdgesClosure(org.semanticweb.owlapi.model.OWLObject t)
gets all inferred edges coming in to the target edge
|
Set<OWLGraphEdge> |
getIncomingEdgesClosure(org.semanticweb.owlapi.model.OWLObject t,
boolean isComplete)
As
getIncomingEdgesClosure(OWLObject t) , but allows the option of including
'complete' edge list. |
Set<org.semanticweb.owlapi.model.OWLObject> |
getIndividualDescendants(org.semanticweb.owlapi.model.OWLObject x)
return all individuals i where x is reachable from i
|
Set<OWLGraphEdge> |
getInstanceChainsFromClosure(org.semanticweb.owlapi.model.OWLClass c)
Finds all edges between an instance i and he given class c.
|
Set<org.semanticweb.owlapi.model.OWLIndividual> |
getInstancesFromClosure(org.semanticweb.owlapi.model.OWLClass c)
Find all edges of the form [i INST c] in the graph closure.
|
Set<org.semanticweb.owlapi.model.OWLObject> |
getNamedAncestors(org.semanticweb.owlapi.model.OWLObject x)
Gets all ancestors that are OWLNamedObjects
|
Set<org.semanticweb.owlapi.model.OWLObject> |
getNamedAncestorsReflexive(org.semanticweb.owlapi.model.OWLObject x) |
Set<OWLGraphEdge> |
getOutgoingEdges(org.semanticweb.owlapi.model.OWLObject cls)
retrieves direct edges from a source
to the direct **named** target
e.g.
|
Set<OWLGraphEdge> |
getOutgoingEdges(org.semanticweb.owlapi.model.OWLObject obj,
boolean isClosure,
boolean isReflexive) |
Set<OWLGraphEdge> |
getOutgoingEdges(org.semanticweb.owlapi.model.OWLObject cls,
Set<? extends org.semanticweb.owlapi.model.OWLPropertyExpression> props)
retrieves direct edges from a source
to the direct **named** target for a given set of properties
e.g.
|
Set<OWLGraphEdge> |
getOutgoingEdgesClosure(org.semanticweb.owlapi.model.OWLObject s)
Retrieves the graph closure originating from source.
|
Set<OWLGraphEdge> |
getOutgoingEdgesClosure(org.semanticweb.owlapi.model.OWLObject s,
boolean isComplete)
|
Set<OWLGraphEdge> |
getOutgoingEdgesClosure(org.semanticweb.owlapi.model.OWLObject s,
Set<? extends org.semanticweb.owlapi.model.OWLPropertyExpression> overProperties)
As
getOutgoingEdgesClosure(OWLObject s) , but only consider the specified
set of properties when walking the graph. |
Set<OWLGraphEdge> |
getOutgoingEdgesClosureReflexive(org.semanticweb.owlapi.model.OWLObject s)
as
getOutgoingEdgesClosure(OWLObject) , but also includes an identity edge |
Set<OWLGraphEdge> |
getOutgoingEdgesClosureReflexive(org.semanticweb.owlapi.model.OWLObject s,
Set<? extends org.semanticweb.owlapi.model.OWLPropertyExpression> props)
as
getOutgoingEdgesClosure(OWLObject, Set) , but also include an identify edge |
Set<OWLGraphEdge> |
getOWLGraphEdgeSubsumers(OWLGraphEdge e)
generalizes over quantified properties
|
Set<OWLGraphEdge> |
getOWLGraphEdgeSubsumers(OWLGraphEdge e,
int i) |
Set<OWLGraphEdge> |
getPrimitiveIncomingEdges(org.semanticweb.owlapi.model.OWLObject t) |
Set<OWLGraphEdge> |
getPrimitiveOutgoingEdges(org.semanticweb.owlapi.model.OWLObject s)
primitive edges connect any combination of named objects and expressions
|
Set<OWLGraphEdge> |
getPrimitiveOutgoingEdges(org.semanticweb.owlapi.model.OWLObject s,
Set<? extends org.semanticweb.owlapi.model.OWLPropertyExpression> overProperties) |
Profiler |
getProfiler() |
org.semanticweb.owlapi.reasoner.OWLReasoner |
getReasoner() |
List<org.semanticweb.owlapi.model.OWLObjectProperty> |
getRelationOrChain(String id)
If available, return the elements of the equivalent property chain.
|
Set<org.semanticweb.owlapi.model.OWLObject> |
getSubsumersFromClosure(org.semanticweb.owlapi.model.OWLObject s)
find the set of classes or class expressions subsuming source, using the graph closure.
|
Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> |
getSuperPropertiesOf(org.semanticweb.owlapi.model.OWLObjectPropertyExpression p)
returns parent properties of p in all ontologies
|
Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> |
getSuperPropertyClosureOf(org.semanticweb.owlapi.model.OWLObjectPropertyExpression p) |
Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> |
getSuperPropertyReflexiveClosureOf(org.semanticweb.owlapi.model.OWLObjectPropertyExpression p) |
protected boolean |
isExcluded(OWLQuantifiedProperty qp) |
boolean |
isExcludeEdge(OWLGraphEdge edge) |
protected Set<OWLGraphEdge> |
primitiveEdgeToFullEdges(OWLGraphEdge e) |
Set<org.semanticweb.owlapi.model.OWLObject> |
queryDescendants(org.semanticweb.owlapi.model.OWLClassExpression t)
Performs a closed-world query using a DL expression as a set of boolean database-style constraints.
|
Set<org.semanticweb.owlapi.model.OWLObject> |
queryDescendants(org.semanticweb.owlapi.model.OWLClassExpression t,
boolean isInstances,
boolean isClasses) |
Set<org.semanticweb.owlapi.model.OWLObject> |
queryDescendants(OWLGraphEdge e)
Treats an edge as a path and performs a query.
|
void |
setConfig(OWLGraphWrapperEdges.Config config) |
void |
setProfiler(Profiler profiler) |
void |
setReasoner(org.semanticweb.owlapi.reasoner.OWLReasoner reasoner) |
getAllOWLObjectsByAltId, getAllUsedSubsets, getAltIds, getAnnotationProperty, getAnnotationPropertyValue, getAnnotationPropertyValue, getAnnotationPropertyValues, getAnnotationPropertyValues, getAnnotationValue, getAnnotationValues, getBuiltin, getComment, getComment, getConsider, getCreatedBy, getDef, getDef, getDefXref, getDefXref, getDomain, getIdentifier, getIdentifier, getIdentifier, getIdentifier, getIRIByIdentifier, getIRIByIdentifier, getIRIByLabel, getIRIByLabel, getIsAnonymous, getIsAntiSymmetric, getIsCyclic, getIsFunctional, getIsInverseFunctional, getIsMetaTag, getIsObsolete, getIsObsoleteBinaryString, getIsReflexive, getIsSymmetric, getIsTransitive, getLabel, getLabel, getLabelOrDisplayId, getNamespace, getNamespace, getObjectByAltId, getOntologyId, getOWLAnnotationProperty, getOWLClass, getOWLClass, getOWLClass, getOWLClassByIdentifier, getOWLClassByIdentifier, getOWLClassesInSubset, getOWLIndividual, getOWLIndividual, getOWLIndividualByIdentifier, getOWLObject, getOWLObject, getOWLObjectByAltId, getOWLObjectByIdentifier, getOWLObjectByLabel, getOWLObjectProperty, getOWLObjectProperty, getOWLObjectPropertyByIdentifier, getOWLObjectsByAltId, getOWLObjectsInSubset, getRange, getReplacedBy, getSubsets, getSubsets, getVersions, getXref, getXref, isObsolete
addImport, addImportsFromSupportOntologies, addSupportOntologiesFromImportsClosure, addSupportOntologiesFromImportsClosure, addSupportOntology, getAllOntologies, getAllOWLClasses, getAllOWLObjects, getAllOWLSubClassOfAxiomsForSubClass, getAllOWLSubClassOfAxiomsForSuperClass, getDataFactory, getManager, getSourceOntology, getSupportOntologySet, mergeImportClosure, mergeImportClosure, mergeOntology, mergeOntology, mergeSupportOntology, mergeSupportOntology, remakeOntologiesFromImportsClosure, remakeOntologiesFromImportsClosure, removeSupportOntology, setSourceOntology, setSupportOntologySet
public Map<org.semanticweb.owlapi.model.OWLObject,Set<OWLGraphEdge>> inferredEdgeBySource
protected Profiler profiler
protected OWLGraphWrapperEdges(org.semanticweb.owlapi.model.OWLOntology ontology)
protected OWLGraphWrapperEdges(String iri) throws org.semanticweb.owlapi.model.OWLOntologyCreationException
org.semanticweb.owlapi.model.OWLOntologyCreationException
public Profiler getProfiler()
public void setProfiler(Profiler profiler)
public org.semanticweb.owlapi.reasoner.OWLReasoner getReasoner()
public void setReasoner(org.semanticweb.owlapi.reasoner.OWLReasoner reasoner)
reasoner
- public OWLGraphWrapperEdges.Config getConfig()
public void setConfig(OWLGraphWrapperEdges.Config config)
public Set<OWLGraphEdge> getOutgoingEdges(org.semanticweb.owlapi.model.OWLObject cls)
cls
- sourcepublic Set<OWLGraphEdge> getOutgoingEdges(org.semanticweb.owlapi.model.OWLObject cls, Set<? extends org.semanticweb.owlapi.model.OWLPropertyExpression> props)
cls
- sourceprops
- public Set<OWLGraphEdge> getOutgoingEdges(org.semanticweb.owlapi.model.OWLObject obj, boolean isClosure, boolean isReflexive)
public Set<OWLGraphEdge> getPrimitiveOutgoingEdges(org.semanticweb.owlapi.model.OWLObject s)
e.g. (A SubClassOf R some B) => <A,sub,R-some-B>, <R-some-B,R-some,B>
s
- sourceoverProperties
- OWLGraphEdge
public Set<OWLGraphEdge> getPrimitiveOutgoingEdges(org.semanticweb.owlapi.model.OWLObject s, Set<? extends org.semanticweb.owlapi.model.OWLPropertyExpression> overProperties)
protected boolean isExcluded(OWLQuantifiedProperty qp)
protected void filterEdges(Set<OWLGraphEdge> edges, Set<? extends org.semanticweb.owlapi.model.OWLPropertyExpression> overProperties)
public boolean isExcludeEdge(OWLGraphEdge edge)
protected Set<OWLGraphEdge> primitiveEdgeToFullEdges(OWLGraphEdge e)
public void cacheEdges()
in general you should not need to call this directly; used internally by this class.
public void clearCachedEdges()
cacheEdges()
public Set<OWLGraphEdge> getIncomingEdges(org.semanticweb.owlapi.model.OWLObject t)
t
- public Set<OWLGraphEdge> getPrimitiveIncomingEdges(org.semanticweb.owlapi.model.OWLObject t)
public org.semanticweb.owlapi.model.OWLObject edgeToTargetExpression(OWLGraphEdge e)
(this is the reverse translation of the one from an OWLOntology to an OWLGraph)
e.g. after calling for the graph closure of an OWLClass a, we may get back an edge <a [part_of-some, adjacent_to-some, has_part-some] b>. after feeding this edge into this method we obtain the expression part_of some (adjacent_to some (has_part some b))
e
- edgepublic Set<OWLGraphEdge> getOutgoingEdgesClosure(org.semanticweb.owlapi.model.OWLObject s)
Composition rules are used to compact the list of connecting edge labels (e.g. transitivity).
The resulting edges can be translated into class expressions using method edgeToTargetExpression(e). E.g. in the above the expression would be R some (S some C)
s
- sourcepublic Set<OWLGraphEdge> getOutgoingEdgesClosure(org.semanticweb.owlapi.model.OWLObject s, Set<? extends org.semanticweb.owlapi.model.OWLPropertyExpression> overProperties)
getOutgoingEdgesClosure(OWLObject s)
, but only consider the specified
set of properties when walking the graph.
Advanced usage notice: note that if the desired set of properties is {P},
and there exists a property chain Q o R --> P, then be sure to include Q and R in
the specified sets
- overProperties
- public Set<OWLGraphEdge> getOutgoingEdgesClosureReflexive(org.semanticweb.owlapi.model.OWLObject s)
getOutgoingEdgesClosure(OWLObject)
, but also includes an identity edges
- OWLGraphEdge
public Set<OWLGraphEdge> getOutgoingEdgesClosureReflexive(org.semanticweb.owlapi.model.OWLObject s, Set<? extends org.semanticweb.owlapi.model.OWLPropertyExpression> props)
getOutgoingEdgesClosure(OWLObject, Set)
, but also include an identify edges
- props
- public Set<org.semanticweb.owlapi.model.OWLObject> getSubsumersFromClosure(org.semanticweb.owlapi.model.OWLObject s)
this is just the composition of getOutgoingEdgesClosure and edgeToTargetExpression -- the latter method "packs" a chain of edges into a class expression
only "linear" expressions are found, corresponding to a path in the graph. e.g. [sub,part_of-some,develops_from-some] ==> part_of some (develops_from some t)
if the edge consists entirely of subclass links, the the subsumers will be all named classes.
s
- sourceOWLObject
public Set<OWLGraphEdge> getOutgoingEdgesClosure(org.semanticweb.owlapi.model.OWLObject s, boolean isComplete)
s
- isComplete
- public Set<OWLGraphEdge> getCompleteOutgoingEdgesClosure(org.semanticweb.owlapi.model.OWLObject s)
s
- public Set<org.semanticweb.owlapi.model.OWLObject> queryDescendants(OWLGraphEdge e)
E.g <x [R SOME] [S SOME] y> will be treated as the class expression R SOME (S SOME y)
e
- OWLObject
, never nullpublic Set<org.semanticweb.owlapi.model.OWLObject> queryDescendants(org.semanticweb.owlapi.model.OWLClassExpression t)
No attempt is made to optimize the query. The engine is incomplete and currently ontology implements queries for constructs that use AND, OR, SOME
t
- classExpressionpublic Set<org.semanticweb.owlapi.model.OWLObject> queryDescendants(org.semanticweb.owlapi.model.OWLClassExpression t, boolean isInstances, boolean isClasses)
public Set<OWLGraphEdge> getEdgesBetween(org.semanticweb.owlapi.model.OWLObject s, org.semanticweb.owlapi.model.OWLObject t)
s
- sourcet
- targetpublic Set<OWLGraphEdge> getCompleteEdgesBetween(org.semanticweb.owlapi.model.OWLObject s, org.semanticweb.owlapi.model.OWLObject t)
public Set<org.semanticweb.owlapi.model.OWLObject> getAncestors(org.semanticweb.owlapi.model.OWLObject x)
x
- sourcepublic Set<org.semanticweb.owlapi.model.OWLObject> getAncestors(org.semanticweb.owlapi.model.OWLObject x, Set<org.semanticweb.owlapi.model.OWLPropertyExpression> overProps)
x
- the sourceObjectoverProps
- public Set<org.semanticweb.owlapi.model.OWLObject> getAncestors(org.semanticweb.owlapi.model.OWLObject x, Set<org.semanticweb.owlapi.model.OWLPropertyExpression> overProps, boolean isStrict)
overProps
,
but if isStrict is true, then only consider paths that include at least one edge
with a property in the specified set. i.e. exclude subclass-only paths.s
- overProperties
- public Set<org.semanticweb.owlapi.model.OWLObject> getAncestorsReflexive(org.semanticweb.owlapi.model.OWLObject x)
public Set<org.semanticweb.owlapi.model.OWLObject> getAncestorsReflexive(org.semanticweb.owlapi.model.OWLObject x, Set<org.semanticweb.owlapi.model.OWLPropertyExpression> overProps)
public Set<org.semanticweb.owlapi.model.OWLObject> getNamedAncestors(org.semanticweb.owlapi.model.OWLObject x)
i.e. excludes anonymous class expressions
x
- public Set<org.semanticweb.owlapi.model.OWLObject> getNamedAncestorsReflexive(org.semanticweb.owlapi.model.OWLObject x)
public String getEdgeLabel(OWLGraphEdge e)
e
- public Set<org.semanticweb.owlapi.model.OWLObject> getDescendants(org.semanticweb.owlapi.model.OWLObject x)
x
- getAncestors(org.semanticweb.owlapi.model.OWLObject)
,
owltools.graph
public Set<org.semanticweb.owlapi.model.OWLObject> getDescendantsReflexive(org.semanticweb.owlapi.model.OWLObject x)
x
- getAncestors(org.semanticweb.owlapi.model.OWLObject)
,
owltools.graph
public Set<org.semanticweb.owlapi.model.OWLObject> getIndividualDescendants(org.semanticweb.owlapi.model.OWLObject x)
x
- OWLObject
spublic Set<OWLGraphEdge> getIncomingEdgesClosure(org.semanticweb.owlapi.model.OWLObject t, boolean isComplete)
getIncomingEdgesClosure(OWLObject t)
, but allows the option of including
'complete' edge list. A complete edge list also includes redundant subsuming paths. E.g
if there is a path <x [R some] [S some] y> and R' and S' are super-properties of R and S, then there will also be a path <x [R' some] [S' some] y>
The default is false, i.e. if the more specific path exists, only it will be returned
t
- isComplete
- public Set<OWLGraphEdge> getIncomingEdgesClosure(org.semanticweb.owlapi.model.OWLObject t)
for every s, if t is reachable from s, then include the inferred edge between s and t.
t
- targetgetOutgoingEdgesClosure(org.semanticweb.owlapi.model.OWLObject)
public OWLGraphEdge combineEdgePair(org.semanticweb.owlapi.model.OWLObject s, OWLGraphEdge ne, OWLGraphEdge extEdge, int nextDist)
For example, Edge(x,SUBCLASS_OF,y) * Edge(y,SUBCLASS_OF,z) yields Edge(x,SUBCLASS_OF,z)
Note that property chains of length>2 are currently ignored
s
- - source nodene
- - edge 1extEdge
- - edge 2nextDist
- - new distanceprotected boolean combineEdgePair(OWLGraphEdge mergedEdge, List<OWLQuantifiedProperty> neQp, List<OWLQuantifiedProperty> extEdgeQp, int nextDist)
OWLQuantifiedProperty
List
s neQp
and
extEdgeQp
and assigned the resulting OWLQuantifiedProperty
s
to mergedEdge
. If the OWLQuantifiedProperty
s could be
properly combined, mergedEdge
will be modified as a result
of the call to this method, and the method will return true
.
If the OWLQuantifiedProperty
s could not be combined,
this method returns false
, and mergedEdge
is not be modified.
This method is notably used by combineEdgePair(OWLObject, OWLGraphEdge,
OWLGraphEdge, int)
, and was created so that this part of the logic could be used
on extending Java classes.
mergedEdge
- An OWLGraphEdge
whose OWLQuantifiedProperty
s
will be defined by merging neQp
and extEdgeQp
.neQp
- A List
of OWLQuantifiedProperty
s to be combined
with extEdgeQp
.extEdgeQp
- A List
of OWLQuantifiedProperty
s to be combined
with neQp
.nextDist
- The distance to assign to mergedEdge
by calling
OWLGraphEdge#setDistance(int)
.true
if neQp
and extEdgeQp
could be combined
and mergedEdge
modified as a result.protected OWLQuantifiedProperty combinedQuantifiedPropertyPair(OWLQuantifiedProperty x, OWLQuantifiedProperty y)
x
- y
- public Set<org.semanticweb.owlapi.model.OWLIndividual> getInstancesFromClosure(org.semanticweb.owlapi.model.OWLClass c)
the semantics are the same as inferred ClassAssertion axioms
c
- owlClasspublic Set<OWLGraphEdge> getInstanceChainsFromClosure(org.semanticweb.owlapi.model.OWLClass c)
this includes inferred class assertions, as well as chains such as
i has_part j, j inst_of k, k part_of some c
c
- owlClasspublic Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> getSuperPropertiesOf(org.semanticweb.owlapi.model.OWLObjectPropertyExpression p)
p
- public Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> getSuperPropertyClosureOf(org.semanticweb.owlapi.model.OWLObjectPropertyExpression p)
public Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> getSuperPropertyReflexiveClosureOf(org.semanticweb.owlapi.model.OWLObjectPropertyExpression p)
public Set<OWLGraphEdge> getOWLGraphEdgeSubsumers(OWLGraphEdge e)
e
- public Set<OWLGraphEdge> getOWLGraphEdgeSubsumers(OWLGraphEdge e, int i)
public List<org.semanticweb.owlapi.model.OWLObjectProperty> getRelationOrChain(String id)
OWLObjectProperty
as a list with one element or if available, the equivalent chain.
If the id does not map to an known property, return null.id
- the id of the propertypublic List<org.semanticweb.owlapi.model.OWLObjectProperty> expandRelationChain(org.semanticweb.owlapi.model.OWLObjectProperty property)
WARNING: If multiple chains exist, only the first one is returned. This should not happen for any ontology converted from OBO to OWL, as multiple equivalent_to chains are a violation of OBO specification.
property
- the property to be expandedCopyright © 2010–2015. All rights reserved.