Maybe someone can give me a hint. Is it possible to measure the distance between two concepts / classes related to the same ontology?
For example, suppose I have an ontology with an astronomical class and a telescope class. There is a connection between them, but this is not a direct connection. Astronomy has a parent class called Science, and the telescope has a parent class called Optical Instrument, which belongs to its parent element, Instrumentation, which belongs to the Empical Science class, which finally belongs to the Science class.
Thus, there is an indirect connection between the telescope and astronomy, and I want to know the number of steps required to reach one class, starting from another.
Is there a simple SPARQL query that resolves this issue? Or are there any better ways to make this work? Or is it impossible to find it with the semantic web paradigm?
Any hint would be greatly appreciated.
source share