Commit 3295d23a authored by Oyvind.Gjesdal's avatar Oyvind.Gjesdal
Browse files

add stats query

parent ca12701d
SELECT SAMPLE(?label) (COUNT(?class) AS ?total) WHERE {
GRAPH <urn:x-arq:UnionGraph> {
?s a ?class .
#?class rdfs:label ?label .
#FILTER(LANG(?label) = "")
FILTER(?class NOT IN (ubbont:DigitalResource, ore:Aggregation, ubbont:Page)).
#MINUS { ?s a ubbont:DigitalResource . }
#MINUS { ?s a ubbont:Page . }
SELECT ?total ?label
WHERE {
GRAPH <urn:x-arq:UnionGraph> {
{SELECT ?class (COUNT(?s) AS ?total) WHERE {
?s a ?class.
FILTER(?class NOT IN (ubbont:DigitalResource, ore:Aggregation, ubbont:Page, owl:DatatypeProperty, owl:ObjectProperty, owl:FunctionalProperty, rdfs:Class, owl:Class)). }
GROUP BY ?class ORDER BY desc(?total) LIMIT 50}
?class rdfs:label ?label .
FILTER(LANG(?label) = "")
}
GRAPH ubbont:ubbont {
?class rdfs:label ?label .
FILTER(LANG(?label) = "" || LANG(?label)="nb")
}
}
GROUP BY ?s
HAVING (COUNT(?class) > 1)
ORDER BY desc(?total)
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment