-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb1376a
commit 5a31ca3
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
core/sail/memory/src/test/resources/benchmarkFiles/sub-select.qr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
PREFIX ex: <http://example.com/ns#> | ||
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#> | ||
PREFIX sh: <http://www.w3.org/ns/shacl#> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
PREFIX dcat: <http://www.w3.org/ns/dcat#> | ||
PREFIX dc: <http://purl.org/dc/terms/> | ||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> | ||
PREFIX foaf: <http://xmlns.com/foaf/0.1/> | ||
PREFIX dct: <http://purl.org/dc/terms/> | ||
|
||
SELECT ?type1 ?type2 ?language2 ?mbox ?count ?identifier2 where { | ||
|
||
?a a ?type2. | ||
?b a ?type1. | ||
|
||
?b dcat:dataset ?a. | ||
|
||
?a dcat:distribution ?mbox. | ||
?a dct:language ?language. | ||
FILTER (?type1 != ?type2) | ||
?a dct:identifier ?identifier. | ||
|
||
BIND(?a as ?c) | ||
|
||
{ | ||
select distinct ?c (count(?dist) as ?count) ?language2 where { | ||
?c a ?type2. | ||
?c dcat:distribution ?dist. | ||
?c dct:language ?language2. | ||
} group by ?c ?language2 having (?count > 2) | ||
} | ||
|
||
} group by ?type1 ?type2 ?language2 ?mbox ?count ?identifier2 order by ?type1 ?type2 ?language2 ?mbox ?count ?identifier2 | ||
|
||
|
||
|