I have searched and tested out multiple ways to get the distance between
two nodes. I want a query that will show the child concepts and how far
away they are from the current concept so that I can create a table on a
form showcasing this.
The following query works if a ?sub concept does not have two connection
through skos:broader. But once a ?sub has two parent concepts with the
skos:broader it overcounts. I have included a basic example diagram on the
issue I am dealing with. Any ideas on how to get an accurate count?
SELECT ?sub (count(distinct ?mid) as ?distance)
WHERE {
$this ^skos:broader* ?mid .
?mid ^skos:broader+ ?sub .
}
group by $this ?sub
--
The topics of this mailing list include TopBraid EDG and related technologies
such as SHACL.
To post to this group, send email to [email protected]
---
You received this message because you are subscribed to the Google Groups
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/topbraid-users/be2ebc41-1fa7-4a70-a3ca-d8ee2cf575ddn%40googlegroups.com.