public class OWLGraphEdge extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OWLGraphEdge.OWLGraphEdgeSet
Represents a
Set of OWLGraphEdge s. |
Constructor and Description |
---|
OWLGraphEdge(OWLGraphEdge edge)
Copy constructor.
|
OWLGraphEdge(org.semanticweb.owlapi.model.OWLObject source,
org.semanticweb.owlapi.model.OWLObject target) |
OWLGraphEdge(org.semanticweb.owlapi.model.OWLObject source,
org.semanticweb.owlapi.model.OWLObject target,
List<OWLQuantifiedProperty> qpl,
org.semanticweb.owlapi.model.OWLOntology ontology) |
OWLGraphEdge(org.semanticweb.owlapi.model.OWLObject source,
org.semanticweb.owlapi.model.OWLObject target,
List<OWLQuantifiedProperty> qpl,
org.semanticweb.owlapi.model.OWLOntology ontology,
Set<org.semanticweb.owlapi.model.OWLAxiom> axioms,
org.semanticweb.owlapi.model.OWLClass gciFiller,
org.semanticweb.owlapi.model.OWLObjectPropertyExpression gciRelation) |
OWLGraphEdge(org.semanticweb.owlapi.model.OWLObject s,
org.semanticweb.owlapi.model.OWLObject t,
org.semanticweb.owlapi.model.OWLObjectPropertyExpression p,
OWLQuantifiedProperty.Quantifier q,
org.semanticweb.owlapi.model.OWLOntology o) |
OWLGraphEdge(org.semanticweb.owlapi.model.OWLObject s,
org.semanticweb.owlapi.model.OWLObject t,
org.semanticweb.owlapi.model.OWLObjectPropertyExpression p,
OWLQuantifiedProperty.Quantifier q,
org.semanticweb.owlapi.model.OWLOntology o,
org.semanticweb.owlapi.model.OWLAxiom ax) |
OWLGraphEdge(org.semanticweb.owlapi.model.OWLObject s,
org.semanticweb.owlapi.model.OWLObject t,
org.semanticweb.owlapi.model.OWLObjectPropertyExpression p,
OWLQuantifiedProperty.Quantifier q,
org.semanticweb.owlapi.model.OWLOntology o,
org.semanticweb.owlapi.model.OWLAxiom ax,
org.semanticweb.owlapi.model.OWLClass gciFiller,
org.semanticweb.owlapi.model.OWLObjectPropertyExpression gciRelation) |
OWLGraphEdge(org.semanticweb.owlapi.model.OWLObject source,
org.semanticweb.owlapi.model.OWLObject target,
org.semanticweb.owlapi.model.OWLOntology ontology) |
OWLGraphEdge(org.semanticweb.owlapi.model.OWLObject source,
org.semanticweb.owlapi.model.OWLObject target,
org.semanticweb.owlapi.model.OWLOntology ontology,
OWLQuantifiedProperty qp) |
OWLGraphEdge(org.semanticweb.owlapi.model.OWLObject source,
org.semanticweb.owlapi.model.OWLObject target,
org.semanticweb.owlapi.model.OWLOntology ontology,
Set<org.semanticweb.owlapi.model.OWLAxiom> underlyingAxioms,
org.semanticweb.owlapi.model.OWLClass gciFiller,
org.semanticweb.owlapi.model.OWLObjectPropertyExpression gciRelation) |
OWLGraphEdge(org.semanticweb.owlapi.model.OWLObject s,
org.semanticweb.owlapi.model.OWLObject t,
OWLQuantifiedProperty.Quantifier q) |
OWLGraphEdge(org.semanticweb.owlapi.model.OWLRestriction s,
org.semanticweb.owlapi.model.OWLObject t,
OWLQuantifiedProperty el,
org.semanticweb.owlapi.model.OWLOntology o) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object e) |
boolean |
equalsGCI(OWLGraphEdge e)
Checks that the
gciFiller and gciRelation of this OWLGraphEdge
an of e are equals. |
boolean |
equalsIgnoreOntology(Object e)
Equals method ignoring the
OWLOntology the OWLGraphEdge s compared
belong to, as opposed to the #equals() method, that takes into account
the ontologies for comparison. |
boolean |
equalsIgnoreOntologyAndGCI(Object e)
Equals method ignoring the
OWLOntology the OWLGraphEdge s compared
belong to, and ignoring their gciFiller s and gciRelation s
(as opposed to the #equals() method, that takes into account
everything for comparison). |
Set<org.semanticweb.owlapi.model.OWLAxiom> |
getAxioms()
Returns A
Set containing the underlying OWLAxiom s that allowed
to produce this OWLGraphEdge . |
int |
getDistance() |
OWLQuantifiedProperty |
getFinalQuantifiedProperty() |
OWLQuantifiedProperty |
getFirstQuantifiedProperty() |
org.semanticweb.owlapi.model.OWLClass |
getGCIFiller()
Returns the
OWLClass that is the OBO gci_filler
of this OWLGraphEdge . |
org.semanticweb.owlapi.model.OWLObjectPropertyExpression |
getGCIRelation()
Returns the
OWLObjectPropertyExpression that is the OBO gci_relation
of this OWLGraphEdge . |
OWLQuantifiedProperty |
getLastQuantifiedProperty() |
org.semanticweb.owlapi.model.OWLOntology |
getOntology() |
List<OWLQuantifiedProperty> |
getQuantifiedPropertyList() |
OWLQuantifiedProperty |
getSingleQuantifiedProperty() |
org.semanticweb.owlapi.model.OWLObject |
getSource() |
String |
getSourceId() |
Set<org.semanticweb.owlapi.model.OWLSubClassOfAxiom> |
getSubClassOfAxioms()
|
org.semanticweb.owlapi.model.OWLObject |
getTarget() |
String |
getTargetId() |
int |
hashCode() |
boolean |
isGCI()
Determines whether this
OWLGraphEdge corresponds to an OBO gci_relation. |
boolean |
isSourceNamedObject() |
boolean |
isTargetNamedObject() |
OWLGraphEdge |
merge(OWLGraphEdge edge)
Merges this
OWLGraphEdge and edge into a new one, containing
the union of their underlying OWLAxiom s, as returned by getAxioms() . |
void |
setDistance(int distance) |
void |
setOntology(org.semanticweb.owlapi.model.OWLOntology ontology) |
void |
setQuantifiedPropertyList(List<OWLQuantifiedProperty> qps) |
void |
setSingleQuantifiedProperty(OWLQuantifiedProperty qp) |
void |
setSource(org.semanticweb.owlapi.model.OWLObject source) |
void |
setTarget(org.semanticweb.owlapi.model.OWLObject target) |
String |
toString() |
public OWLGraphEdge(org.semanticweb.owlapi.model.OWLObject source, org.semanticweb.owlapi.model.OWLObject target, org.semanticweb.owlapi.model.OWLOntology ontology, OWLQuantifiedProperty qp)
public OWLGraphEdge(org.semanticweb.owlapi.model.OWLRestriction s, org.semanticweb.owlapi.model.OWLObject t, OWLQuantifiedProperty el, org.semanticweb.owlapi.model.OWLOntology o)
public OWLGraphEdge(org.semanticweb.owlapi.model.OWLObject source, org.semanticweb.owlapi.model.OWLObject target, List<OWLQuantifiedProperty> qpl, org.semanticweb.owlapi.model.OWLOntology ontology)
public OWLGraphEdge(org.semanticweb.owlapi.model.OWLObject source, org.semanticweb.owlapi.model.OWLObject target, List<OWLQuantifiedProperty> qpl, org.semanticweb.owlapi.model.OWLOntology ontology, Set<org.semanticweb.owlapi.model.OWLAxiom> axioms, org.semanticweb.owlapi.model.OWLClass gciFiller, org.semanticweb.owlapi.model.OWLObjectPropertyExpression gciRelation)
public OWLGraphEdge(org.semanticweb.owlapi.model.OWLObject source, org.semanticweb.owlapi.model.OWLObject target, org.semanticweb.owlapi.model.OWLOntology ontology)
public OWLGraphEdge(org.semanticweb.owlapi.model.OWLObject source, org.semanticweb.owlapi.model.OWLObject target, org.semanticweb.owlapi.model.OWLOntology ontology, Set<org.semanticweb.owlapi.model.OWLAxiom> underlyingAxioms, org.semanticweb.owlapi.model.OWLClass gciFiller, org.semanticweb.owlapi.model.OWLObjectPropertyExpression gciRelation)
public OWLGraphEdge(org.semanticweb.owlapi.model.OWLObject source, org.semanticweb.owlapi.model.OWLObject target)
public OWLGraphEdge(org.semanticweb.owlapi.model.OWLObject s, org.semanticweb.owlapi.model.OWLObject t, org.semanticweb.owlapi.model.OWLObjectPropertyExpression p, OWLQuantifiedProperty.Quantifier q, org.semanticweb.owlapi.model.OWLOntology o)
public OWLGraphEdge(org.semanticweb.owlapi.model.OWLObject s, org.semanticweb.owlapi.model.OWLObject t, org.semanticweb.owlapi.model.OWLObjectPropertyExpression p, OWLQuantifiedProperty.Quantifier q, org.semanticweb.owlapi.model.OWLOntology o, org.semanticweb.owlapi.model.OWLAxiom ax)
public OWLGraphEdge(org.semanticweb.owlapi.model.OWLObject s, org.semanticweb.owlapi.model.OWLObject t, org.semanticweb.owlapi.model.OWLObjectPropertyExpression p, OWLQuantifiedProperty.Quantifier q, org.semanticweb.owlapi.model.OWLOntology o, org.semanticweb.owlapi.model.OWLAxiom ax, org.semanticweb.owlapi.model.OWLClass gciFiller, org.semanticweb.owlapi.model.OWLObjectPropertyExpression gciRelation)
public OWLGraphEdge(org.semanticweb.owlapi.model.OWLObject s, org.semanticweb.owlapi.model.OWLObject t, OWLQuantifiedProperty.Quantifier q)
public OWLGraphEdge(OWLGraphEdge edge)
edge
- An OWLGraphEdge
which attributes will be copy from
to instantiate this one.public org.semanticweb.owlapi.model.OWLObject getSource()
public String getSourceId()
public void setSource(org.semanticweb.owlapi.model.OWLObject source)
public org.semanticweb.owlapi.model.OWLObject getTarget()
public String getTargetId()
public void setTarget(org.semanticweb.owlapi.model.OWLObject target)
public int getDistance()
public void setDistance(int distance)
public List<OWLQuantifiedProperty> getQuantifiedPropertyList()
public void setQuantifiedPropertyList(List<OWLQuantifiedProperty> qps)
public OWLQuantifiedProperty getSingleQuantifiedProperty()
public OWLQuantifiedProperty getFirstQuantifiedProperty()
public OWLQuantifiedProperty getLastQuantifiedProperty()
public void setSingleQuantifiedProperty(OWLQuantifiedProperty qp)
public OWLQuantifiedProperty getFinalQuantifiedProperty()
public org.semanticweb.owlapi.model.OWLOntology getOntology()
public void setOntology(org.semanticweb.owlapi.model.OWLOntology ontology)
public boolean isSourceNamedObject()
public boolean isTargetNamedObject()
public org.semanticweb.owlapi.model.OWLClass getGCIFiller()
OWLClass
that is the OBO gci_filler
of this OWLGraphEdge
. If this OWLGraphEdge
was not generated
from an OBO-like GCI axiom, this method always return null
.
See
Treatment of gci_relation qualifier for more details.OWLClass
that is the gci_filler
of this edge,
null
if it was not generated from an OBO-like GCI axiom.public org.semanticweb.owlapi.model.OWLObjectPropertyExpression getGCIRelation()
OWLObjectPropertyExpression
that is the OBO gci_relation
of this OWLGraphEdge
. If this OWLGraphEdge
was not generated
from an OBO-like GCI axiom, this method always return null
.
See
Treatment of gci_relation qualifier for more details.OWLObjectPropertyExpression
that is the gci_relation
of this edge, null
if it was not generated from an OBO-like GCI axiom.public boolean isGCI()
OWLGraphEdge
corresponds to an OBO gci_relation.
See
Treatment of gci_relation qualifier for more details.true
if this OWLGraphEdge
corresponds to an OBO gci_relation,
false
otherwise.getGCIFiller()
,
getGCIRelation()
public Set<org.semanticweb.owlapi.model.OWLAxiom> getAxioms()
Set
containing the underlying OWLAxiom
s that allowed
to produce this OWLGraphEdge
. This is because a same OWLGraphEdge
(meaning, with the same source
, target
, quantifiedPropertyList
,
ontology
, see hashCode
and equals
methods) can be produced
by different OWLAxiom
s. For instance, an OWLEquivalentClassesAxiom
and a
OWLSubClassOfAxiom
could produce equal OWLGraphEdge
s; or
two structurally equivalent OWLSubClassOfAxiom
s, but with different
OWLAnnotation
s.Set
of the underlying OWLAxiom
s that produced this
OWLGraphEdge
.getSubClassOfAxioms()
public Set<org.semanticweb.owlapi.model.OWLSubClassOfAxiom> getSubClassOfAxioms()
Set
of the underlying OWLSubClassOfAxiom
s that
produced this OWLGraphEdge
.getAxioms()
public OWLGraphEdge merge(OWLGraphEdge edge) throws IllegalArgumentException
OWLGraphEdge
and edge
into a new one, containing
the union of their underlying OWLAxiom
s, as returned by getAxioms()
.
This method is available only if this OWLGraphEdge
and edge
are considered equal by the equals
method (which does not take into
account the underlying OWLAxiom
s), otherwise an
IllegalArgumentException
is thrown. This method is useful to merge
several OWLGraphEdge
s structurally equivalent, but produced from
different OWLAxiom
s.edge
- The OWLGraphEdge
to be merged with this one.OWLGraphEdge
, equal to edge
and to this OWLGraphEdge
, but with merged OWLAxiom
s.IllegalArgumentException
- If edge
and this OWLGraphEdge
are not equal.public boolean equalsIgnoreOntology(Object e)
OWLOntology
the OWLGraphEdge
s compared
belong to, as opposed to the #equals()
method, that takes into account
the ontologies for comparison.e
- the reference object with which to compare.true
if this edge is structurally equivalent to e
,
without taking into account the OWLOntology
they belong to.public boolean equalsIgnoreOntologyAndGCI(Object e)
OWLOntology
the OWLGraphEdge
s compared
belong to, and ignoring their gciFiller
s and gciRelation
s
(as opposed to the #equals()
method, that takes into account
everything for comparison).e
- the reference object with which to compare.true
if this edge is structurally equivalent to e
,
without taking into account the OWLOntology
they belong to,
nor their gciFiller
s and gciRelation
s.public boolean equalsGCI(OWLGraphEdge e)
gciFiller
and gciRelation
of this OWLGraphEdge
an of e
are equals.e
- An OWLGraphEdge
for which we want to determine GCI equality
to this OWLGraphEdge
.true
if gciFiller
and gciRelation
are equals.getGCIFiller()
,
getGCIRelation()
Copyright © 2010–2016. All rights reserved.