Skip to content
This repository was archived by the owner on Feb 5, 2020. It is now read-only.

Commit 5c20c56

Browse files
committed
Add wikidata source and example query
1 parent 3002274 commit 5c20c56

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

queries/wikidata/brad-pitt.sparql

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Directors of movies starring Brad Pitt in Wikidata
2+
# Datasource: https://query.wikidata.org/bigdata/ldf
3+
SELECT ?movie ?title ?name
4+
WHERE {
5+
?movie wdt:P161 [ rdfs:label "Brad Pitt"@en ];
6+
rdfs:label ?title;
7+
wdt:P57 [ rdfs:label ?name ].
8+
FILTER LANGMATCHES(LANG(?title), "EN")
9+
FILTER LANGMATCHES(LANG(?name), "EN")
10+
}

settings.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
{
3232
"name": "Harvard Library",
3333
"url": "http://data.linkeddatafragments.org/harvard"
34+
},
35+
{
36+
"name": "Wikidata",
37+
"url": "https://query.wikidata.org/bigdata/ldf"
3438
}
3539
],
3640
"prefixes": {
@@ -44,7 +48,9 @@
4448
"dbpedia": "http://dbpedia.org/resource/",
4549
"dbpedia-owl": "http://dbpedia.org/ontology/",
4650
"dbpprop": "http://dbpedia.org/property/",
47-
"schema": "http://schema.org/"
51+
"schema": "http://schema.org/",
52+
"wd": "http://www.wikidata.org/entity/",
53+
"wdt": "http://www.wikidata.org/prop/direct/"
4854
},
4955
"queries": "(Will be generated from the 'queries' folder by running the './queries-to-json' script.)"
5056
}

0 commit comments

Comments
 (0)