I'm trying to write an ontology that will propagate certain classes between connected nodes. Such connection can be done by any property. The propagation should be in the direction of the domains of such properties.
For example:
Node A -(any property)-> Node B
Node B -(rdfs:type)-> Sensitive Element
Here we can see two nodes Node A
and Node B
connected by some property any property
. Node B
is a Sensitive Element
. By being connected to Node B
which is a sensitive element, I would like to infer that Node A
is a sensitive as well:
Node A -(rdfs:type)-> Sensitive Element
That triple is the one I am trying to infer. You can see that I have propagated the Sensitive Element
class in the direction of the domain of any property
.
Is it possible to write an OWL ontology that would achieve such inference triple?
Extra info:
- As a reasoning engine I'm using Apache Jena with all its defaults
- For convenience reasons I would like to obtain such result from inference rather than a SPARQL query