Skip to content

Commit

Permalink
Update query
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtich committed Sep 24, 2024
1 parent c49a96e commit 6dbba16
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions queries/graphs.rq
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Get all named graphs with number of triples each

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX schema: <http://schema.org/>

SELECT ?graph (count(*) as ?triples) {
SELECT ?graph ?name (count(*) as ?triples) {
GRAPH ?graph {?s ?p ?o}
} GROUP BY ?graph ORDER BY DESC(?triples)
OPTIONAL { ?graph schema:name ?name }
} GROUP BY ?graph ?name ORDER BY DESC(?triples)

0 comments on commit 6dbba16

Please sign in to comment.