Print records when linking them to Wikidata.
This commit is contained in:
parent
38ce175b5b
commit
e5747acc61
5 changed files with 8 additions and 6 deletions
|
|
@ -213,7 +213,7 @@ country:Sweden a schema:Country ;
|
||||||
rdfs:label "Sweden"@en .
|
rdfs:label "Sweden"@en .
|
||||||
|
|
||||||
country:Switzerland a schema:Country ;
|
country:Switzerland a schema:Country ;
|
||||||
rdfs:label "Switzerland"@en .
|
rdfs:label "Switzerland"@en .
|
||||||
|
|
||||||
country:Turkey a schema:Country ;
|
country:Turkey a schema:Country ;
|
||||||
rdfs:label "Turkey"@en .
|
rdfs:label "Turkey"@en .
|
||||||
|
|
@ -239,8 +239,8 @@ country:USA a schema:Country ;
|
||||||
country:Vietnam a schema:Country ;
|
country:Vietnam a schema:Country ;
|
||||||
rdfs:label "Vietnam"@en .
|
rdfs:label "Vietnam"@en .
|
||||||
|
|
||||||
country:Wales_UK a schema:Country ;
|
country:Wales a schema:Country ;
|
||||||
rdfs:label "Wales (UK)"@en .
|
rdfs:label "Wales"@en .
|
||||||
|
|
||||||
country:West_Europe a schema:Country ;
|
country:West_Europe a schema:Country ;
|
||||||
rdfs:label "West Europe"@en .
|
rdfs:label "West Europe"@en .
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,8 @@ country:UAS rdfs:comment "No Wikidata entity found" .
|
||||||
# No Wikidata entity found for USA
|
# No Wikidata entity found for USA
|
||||||
country:USA rdfs:comment "No Wikidata entity found" .
|
country:USA rdfs:comment "No Wikidata entity found" .
|
||||||
|
|
||||||
# No Wikidata entity found for Wales (UK)
|
# No Wikidata entity found for Wales
|
||||||
country:Wales_UK rdfs:comment "No Wikidata entity found" .
|
country:Wales rdfs:comment "No Wikidata entity found" .
|
||||||
|
|
||||||
# No Wikidata entity found for West Europe
|
# No Wikidata entity found for West Europe
|
||||||
country:West_Europe rdfs:comment "No Wikidata entity found" .
|
country:West_Europe rdfs:comment "No Wikidata entity found" .
|
||||||
|
|
|
||||||
1
src/link_countries_to_wikidata.rb
Normal file → Executable file
1
src/link_countries_to_wikidata.rb
Normal file → Executable file
|
|
@ -23,6 +23,7 @@ graph.query([nil, RDF.type, SCHEMA.Country]) do |stmt|
|
||||||
|
|
||||||
label = label_stmt.object
|
label = label_stmt.object
|
||||||
local_name = subject.to_s.sub(COUNTRY.to_s, '')
|
local_name = subject.to_s.sub(COUNTRY.to_s, '')
|
||||||
|
$stderr.puts label.to_ntriples
|
||||||
|
|
||||||
solutions = WIKIDATA.query(<<~SPARQL)
|
solutions = WIKIDATA.query(<<~SPARQL)
|
||||||
SELECT DISTINCT ?country ?geoNamesID WHERE {
|
SELECT DISTINCT ?country ?geoNamesID WHERE {
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ graph.query([nil, RDF.type, TM.Religion]) do |stmt|
|
||||||
|
|
||||||
label = label_stmt.object
|
label = label_stmt.object
|
||||||
local_name = subject.to_s.sub(RELIGION.to_s, '')
|
local_name = subject.to_s.sub(RELIGION.to_s, '')
|
||||||
|
$stderr.puts label.to_ntriples
|
||||||
|
|
||||||
solutions = WIKIDATA.query(<<~SPARQL)
|
solutions = WIKIDATA.query(<<~SPARQL)
|
||||||
SELECT DISTINCT ?religion WHERE {
|
SELECT DISTINCT ?religion WHERE {
|
||||||
|
|
|
||||||
0
src/map_countries_from_location.rb
Normal file → Executable file
0
src/map_countries_from_location.rb
Normal file → Executable file
Loading…
Reference in a new issue