Class Edge
java.lang.Object
org.incenp.obofoundry.kgcl.model.OntologyElement
org.incenp.obofoundry.kgcl.model.Edge
A relationship between two nodes.
Currently the only kinds of edges supported in KGCL:
A subClassOf B <==> Edge(subject=A, predicate=owl:subClassOf, object=B)
A subClassOf P some B <==> Edge(subject=A, predicate=P, object=B)
P subPropertyOf Q <==> Edge(subject=P, predicate=owl:subPropertyOf, object=Q)
These represent the most common kind of pairwise relationship between classes, and classes are the dominant node type in ontologies.
In future a wider variety of OWL axiom types will be supportedn through the use of an additional edge property/slot to indicate the interpretation of the axiom, following owlstar (https://github.com/cmungall/owlstar).
For example:
`A subClassOf R only B <==> Edge(subject=A, predicate=P, object=B, interpretation=AllOnly)`
`A Annotation(P,B) <==> Edge(subject=A, predicate=P, object=B, interpretation=annotationAssertion)`
Note that not all axioms are intended to map to edges. Axioms/triples where the object is a literal would be represented as node properties. Complex OWL axioms involving nesting would have their own dedicated construct, or may be represented generically. These are out of scope for the current version of KGCL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()voidsetAnnotationSet(Annotation annotationSet) voidvoidsetObjectRepresentation(String objectRepresentation) voidsetPredicate(Node predicate) voidsetPredicateRepresentation(String predicateRepresentation) voidsetSubject(Node subject) voidsetSubjectRepresentation(String subjectRepresentation) toString()
-
Constructor Details
-
Edge
public Edge()
-
-
Method Details
-
getSubject
-
getPredicate
-
getObject
-
getSubjectRepresentation
-
getPredicateRepresentation
-
getObjectRepresentation
-
getAnnotationSet
-
setSubject
-
setPredicate
-
setObject
-
setSubjectRepresentation
-
setPredicateRepresentation
-
setObjectRepresentation
-
setAnnotationSet
-
toString
- Overrides:
toStringin classOntologyElement
-
equals
- Overrides:
equalsin classOntologyElement
-
canEqual
- Overrides:
canEqualin classOntologyElement
-
hashCode
public int hashCode()- Overrides:
hashCodein classOntologyElement
-