Commit 4b66d10a authored by Oyvind.Gjesdal's avatar Oyvind.Gjesdal
Browse files

use NOT IN instead of MINUS, also ignore aggregations

parent 1fd95122
......@@ -2,11 +2,10 @@ SELECT ?label (COUNT(?class) AS ?total) WHERE {
GRAPH <urn:x-arq:UnionGraph> {
?s a ?class .
?class rdfs:label ?label .
FILTER(LANG(?label) = "")
MINUS { ?s a ubbont:DigitalResource . }
MINUS { ?s a ubbont:Page . }
FILTER(LANG(?label) = "").
FILTER (?class NOT IN (ubbont:DigitalResource,ubbont:Page, ore:Aggregation))
}
}
GROUP BY ?label
HAVING (COUNT(?class) > 1)
ORDER BY desc(?total)
\ No newline at end of file
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