-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added specification files and SPARQL queries
- Loading branch information
Showing
24 changed files
with
891 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
PREFIX wd: <http://www.wikidata.org/entity/> | ||
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | ||
|
||
SELECT (COUNT (DISTINCT ?item) AS ?count) WHERE{ | ||
?item wdt:P106 wd:Q82955 ; # occupation of politician | ||
wdt:P106 wd:Q189290 ; # occupation of milit. officer | ||
wdt:P410 wd:Q83460 . # military rank of general | ||
} |
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,7 @@ | ||
PREFIX wd: <http://www.wikidata.org/entity/> | ||
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | ||
|
||
SELECT (COUNT (DISTINCT ?item) AS ?count) WHERE{ | ||
?item wdt:P31 wd:Q3918 ; # instance of university | ||
wdt:P17 wd:Q145 . # country of United Kingdom | ||
} |
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 wd: <http://www.wikidata.org/entity/> | ||
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | ||
|
||
SELECT (COUNT (DISTINCT ?item) AS ?count) WHERE{ | ||
{?item wdt:P31 wd:Q423026 .} # instance of active site | ||
UNION | ||
{?item wdt:P31 wd:Q4936952 .} # instance of anat. struct. | ||
UNION | ||
{?item wdt:P31 wd:Q616005 .} | ||
UNION | ||
{?item wdt:P31 wd:Q4915012 .} | ||
UNION | ||
{?item wdt:P31 wd:Q11173 .} | ||
UNION | ||
{?item wdt:P31 wd:Q12136 .} | ||
UNION | ||
{?item wdt:P31 wd:Q7187 .} | ||
UNION | ||
{?item wdt:P31 wd:Q12140 .} | ||
UNION | ||
{?item wdt:P31 wd:Q28885102 .} | ||
UNION | ||
{?item wdt:P31 wd:Q50377224 .} | ||
UNION | ||
{?item wdt:P31 wd:Q898273 .} | ||
UNION | ||
{?item wdt:P31 wd:Q417841 .} | ||
UNION | ||
{?item wdt:P31 wd:Q8054 .} | ||
UNION | ||
{?item wdt:P31 wd:Q215980 .} | ||
UNION | ||
{?item wdt:P31 wd:Q15304597 .} | ||
UNION | ||
{?item wdt:P31 wd:Q7644128 .} | ||
UNION | ||
{?item wdt:P31 wd:Q50379781 .} # instance of therap. use | ||
} |
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,6 @@ | ||
PREFIX wd: <http://www.wikidata.org/entity/> | ||
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | ||
|
||
SELECT (COUNT (DISTINCT ?item) AS ?count) WHERE{ | ||
?item wdt:P106 wd:Q82955 . # occupation of politician | ||
} |
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,2 @@ | ||
PREFIX wd: <http://www.wikidata.org/entity/> | ||
DESCRIBE wd:Q355643 |
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,2 @@ | ||
PREFIX wd: <http://www.wikidata.org/entity/> | ||
DESCRIBE wd:1094046 |
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,2 @@ | ||
PREFIX wd: <http://www.wikidata.org/entity/> | ||
DESCRIBE wd:30555 |
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,2 @@ | ||
PREFIX wd: <http://www.wikidata.org/entity/> | ||
DESCRIBE wd:Q23 |
13 changes: 13 additions & 0 deletions
13
SPARQL/condition-3/count-qualifiers-General-military-Politician.sparql
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,13 @@ | ||
PREFIX wd: <http://www.wikidata.org/entity/> | ||
PREFIX ps: <http://www.wikidata.org/prop/statement/> | ||
PREFIX p: <http://www.wikidata.org/prop/> | ||
PREFIX pr: <http://www.wikidata.org/prop/reference/> | ||
PREFIX prov: <http://www.w3.org/ns/prov#> | ||
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | ||
|
||
SELECT (COUNT (DISTINCT ?qualifier) as ?count) | ||
WHERE{ | ||
wd:Q355643 p:P485 ?statement. | ||
?statement ?property ?qualifier . | ||
FILTER regex(str(?property), "http://www.wikidata.org/prop/qualifier/") | ||
} |
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,13 @@ | ||
PREFIX wd: <http://www.wikidata.org/entity/> | ||
PREFIX ps: <http://www.wikidata.org/prop/statement/> | ||
PREFIX p: <http://www.wikidata.org/prop/> | ||
PREFIX pr: <http://www.wikidata.org/prop/reference/> | ||
PREFIX prov: <http://www.w3.org/ns/prov#> | ||
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | ||
|
||
SELECT (COUNT (DISTINCT ?qualifier) as ?count) | ||
WHERE{ | ||
wd:Q1094046 p:P355 ?statement. | ||
?statement ?property ?qualifier . | ||
FILTER regex(str(?property), "http://www.wikidata.org/prop/qualifier/") | ||
} |
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,13 @@ | ||
PREFIX wd: <http://www.wikidata.org/entity/> | ||
PREFIX ps: <http://www.wikidata.org/prop/statement/> | ||
PREFIX p: <http://www.wikidata.org/prop/> | ||
PREFIX pr: <http://www.wikidata.org/prop/reference/> | ||
PREFIX prov: <http://www.w3.org/ns/prov#> | ||
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | ||
|
||
SELECT (COUNT (DISTINCT ?qualifier) as ?count) | ||
WHERE{ | ||
wd:Q17487737 p:P680 ?statement. | ||
?statement ?property ?qualifier . | ||
FILTER regex(str(?property), "http://www.wikidata.org/prop/qualifier/") | ||
} |
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,13 @@ | ||
PREFIX wd: <http://www.wikidata.org/entity/> | ||
PREFIX ps: <http://www.wikidata.org/prop/statement/> | ||
PREFIX p: <http://www.wikidata.org/prop/> | ||
PREFIX pr: <http://www.wikidata.org/prop/reference/> | ||
PREFIX prov: <http://www.w3.org/ns/prov#> | ||
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | ||
|
||
SELECT (COUNT (DISTINCT ?qualifier) as ?count) | ||
WHERE{ | ||
wd:Q23 p:P26 ?statement. | ||
?statement ?property ?qualifier . | ||
FILTER regex(str(?property), "http://www.wikidata.org/prop/qualifier/") | ||
} |
12 changes: 12 additions & 0 deletions
12
SPARQL/condition-3/count-references-General-military-Politician.sparql
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,12 @@ | ||
PREFIX wd: <http://www.wikidata.org/entity/> | ||
PREFIX ps: <http://www.wikidata.org/prop/statement/> | ||
PREFIX p: <http://www.wikidata.org/prop/> | ||
PREFIX pr: <http://www.wikidata.org/prop/reference/> | ||
PREFIX prov: <http://www.w3.org/ns/prov#> | ||
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | ||
|
||
SELECT (COUNT (DISTINCT ?reference) as ?count) | ||
WHERE{ | ||
wd:Q355643 p:P485 ?statement. | ||
?statement prov:wasDerivedFrom ?reference . | ||
} |
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,12 @@ | ||
PREFIX wd: <http://www.wikidata.org/entity/> | ||
PREFIX ps: <http://www.wikidata.org/prop/statement/> | ||
PREFIX p: <http://www.wikidata.org/prop/> | ||
PREFIX pr: <http://www.wikidata.org/prop/reference/> | ||
PREFIX prov: <http://www.w3.org/ns/prov#> | ||
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | ||
|
||
SELECT (COUNT (DISTINCT ?reference) as ?count) | ||
WHERE{ | ||
wd:Q1094046 p:P355 ?statement. | ||
?statement prov:wasDerivedFrom ?reference . | ||
} |
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,12 @@ | ||
PREFIX wd: <http://www.wikidata.org/entity/> | ||
PREFIX ps: <http://www.wikidata.org/prop/statement/> | ||
PREFIX p: <http://www.wikidata.org/prop/> | ||
PREFIX pr: <http://www.wikidata.org/prop/reference/> | ||
PREFIX prov: <http://www.w3.org/ns/prov#> | ||
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | ||
|
||
SELECT (COUNT (DISTINCT ?reference) as ?count) | ||
WHERE{ | ||
wd:Q17487737 p:P680 ?statement. | ||
?statement prov:wasDerivedFrom ?reference . | ||
} |
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,12 @@ | ||
PREFIX wd: <http://www.wikidata.org/entity/> | ||
PREFIX ps: <http://www.wikidata.org/prop/statement/> | ||
PREFIX p: <http://www.wikidata.org/prop/> | ||
PREFIX pr: <http://www.wikidata.org/prop/reference/> | ||
PREFIX prov: <http://www.w3.org/ns/prov#> | ||
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | ||
|
||
SELECT (COUNT (DISTINCT ?reference) as ?count) | ||
WHERE{ | ||
wd:Q23 p:P26 ?statement. | ||
?statement prov:wasDerivedFrom ?reference . | ||
} |
Oops, something went wrong.