-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- update tsv - update tests
- Loading branch information
Showing
6 changed files
with
40,551 additions
and
40,298 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,12 @@ | ||
# Items that have an ISIL or DBS ID, add GND ID if existing | ||
curl --header "Accept: text/tab-separated-values" -G 'https://query.wikidata.org/sparql' --data-urlencode query=' | ||
SELECT ?item ?itemLabel ?isil ?gndId ?dbsId | ||
WHERE | ||
{ | ||
{ ?item wdt:P791 ?isil } # Give back entries that either have an ISIL | ||
UNION # or | ||
{ ?item wdt:P4007 ?dbsId . } # a DBS ID | ||
OPTIONAL { ?item wdt:P227 ?gndId . } # Add GND ID if in Wikidata. | ||
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en". } | ||
} | ||
' |sed 's#^"##g'|sed 's#"\t<#\t#g'|sed 's#>\t"#\t#g' |sed 's#"@..#\t#g' |sed 's#\t"#\t#g' |sed 's#"\t#\t#g' |sed 's#"\^\^.*##g' |sed 's#\t\t#\t#g' > ./conf/wikidataLookup1.tsv |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.