Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix the sunburst diagram OpenBisMantic data #46

Open
firmao opened this issue May 15, 2023 · 0 comments
Open

Fix the sunburst diagram OpenBisMantic data #46

firmao opened this issue May 15, 2023 · 0 comments
Assignees

Comments

@firmao
Copy link
Contributor

firmao commented May 15, 2023

Sparql endpoint: https://fuseki.matolab.org/openbismantic/sparql

File and line:

PREFIX owl: <http://www.w3.org/2002/07/owl#>

Query:
PREFIX owl: http://www.w3.org/2002/07/owl#
PREFIX rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema#
SELECT ?c (MIN(?label) AS ?label1) ?superclass (count(?x) as ?count) WHERE {
?x a ?c .
OPTIONAL {?c rdfs:label ?label} .
?c rdfs:subClassOf ?superclass.
filter (?c != ?superclass &&
!exists {?c rdfs:subClassOf ?othersuper. ?othersuper rdfs:subClassOf ?superclass.
filter(?c != ?othersuper && ?othersuper != ?superclass)})
} group by ?c ?label1 ?superclass HAVING(?count > 1) order by desc(?count)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants