Skip to content

Fix the sunburst diagram OpenBisMantic data #46

@firmao

Description

@firmao

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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions