-
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.
Merge branch 'master' into 493-add-link-to-API-usage-policy
- Loading branch information
Showing
16 changed files
with
40,619 additions
and
40,341 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
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
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -8,10 +8,10 @@ IFS=$'\n\t' | |
curl --verbose -XPOST http://localhost:7200/organisations/transform | ||
curl --verbose -XPOST http://localhost:7200/organisations/index | ||
|
||
# see https://github.com/hbz/lobid-organisations/issues/419: | ||
totalItems=$(curl "http://localhost:7200/organisations/search?q=_exists_%3AdbsID+AND+NOT+_exists_%3Aisil+AND+_exists_%3Alocation.geo"|jq .totalItems) | ||
if [ $totalItems -lt 4000 ]; then | ||
mail -s "Missing geo data in lobid-organisations" "[email protected]" -a "From: hduser@weywot1" << EOF | ||
See https://github.com/hbz/lobid-organisations/issues/419 | ||
# see https://github.com/hbz/lobid-organisations/issues/482: | ||
totalItems=$(curl "http://localhost:7200/organisations/search?q=_exists_%3AdbsID+AND+NOT+_exists_%3Aisil"|jq .totalItems) | ||
if [ $totalItems -gt 0 ]; then | ||
mail -s "DB-ID without ISIL in lobid-organisations" "[email protected]" -a "From: hduser@weywot1" << EOF | ||
See https://github.com/hbz/lobid-organisations/issues/482 | ||
EOF | ||
fi |
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,22 @@ | ||
# see #482 | ||
|
||
OUTPUT_FILE="./conf/wikidataLookup.tsv" | ||
OUTPUT_FILE_TMP=${OUTPUT_FILE}".tmp" | ||
|
||
# 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#^"##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' |sed 's#"$##g' > $OUTPUT_FILE_TMP | ||
|
||
if [ -s $OUTPUT_FILE_TMP ]; then | ||
mv $OUTPUT_FILE_TMP $OUTPUT_FILE | ||
fi | ||
|
Oops, something went wrong.