diff --git a/data/countries.ttl b/data/countries.ttl index 1219d38..29eb04a 100644 --- a/data/countries.ttl +++ b/data/countries.ttl @@ -213,7 +213,7 @@ country:Sweden a schema:Country ; rdfs:label "Sweden"@en . country:Switzerland a schema:Country ; - rdfs:label "Switzerland"@en . + rdfs:label "Switzerland"@en . country:Turkey a schema:Country ; rdfs:label "Turkey"@en . @@ -239,8 +239,8 @@ country:USA a schema:Country ; country:Vietnam a schema:Country ; rdfs:label "Vietnam"@en . -country:Wales_UK a schema:Country ; - rdfs:label "Wales (UK)"@en . +country:Wales a schema:Country ; + rdfs:label "Wales"@en . country:West_Europe a schema:Country ; rdfs:label "West Europe"@en . diff --git a/data/countries_wikidata_review.ttl b/data/countries_wikidata_review.ttl index 29c1113..63d7505 100644 --- a/data/countries_wikidata_review.ttl +++ b/data/countries_wikidata_review.ttl @@ -60,8 +60,8 @@ country:UAS rdfs:comment "No Wikidata entity found" . # No Wikidata entity found for USA country:USA rdfs:comment "No Wikidata entity found" . -# No Wikidata entity found for Wales (UK) -country:Wales_UK rdfs:comment "No Wikidata entity found" . +# No Wikidata entity found for Wales +country:Wales rdfs:comment "No Wikidata entity found" . # No Wikidata entity found for West Europe country:West_Europe rdfs:comment "No Wikidata entity found" . diff --git a/src/link_countries_to_wikidata.rb b/src/link_countries_to_wikidata.rb old mode 100644 new mode 100755 index e2daa85..0c1acf5 --- a/src/link_countries_to_wikidata.rb +++ b/src/link_countries_to_wikidata.rb @@ -23,7 +23,8 @@ graph.query([nil, RDF.type, SCHEMA.Country]) do |stmt| label = label_stmt.object local_name = subject.to_s.sub(COUNTRY.to_s, '') - + $stderr.puts label.to_ntriples + solutions = WIKIDATA.query(<<~SPARQL) SELECT DISTINCT ?country ?geoNamesID WHERE { ?country rdfs:label #{label.to_ntriples} . diff --git a/src/link_religions_to_wikidata.rb b/src/link_religions_to_wikidata.rb index a112d3b..e01526a 100755 --- a/src/link_religions_to_wikidata.rb +++ b/src/link_religions_to_wikidata.rb @@ -23,6 +23,7 @@ graph.query([nil, RDF.type, TM.Religion]) do |stmt| label = label_stmt.object local_name = subject.to_s.sub(RELIGION.to_s, '') + $stderr.puts label.to_ntriples solutions = WIKIDATA.query(<<~SPARQL) SELECT DISTINCT ?religion WHERE { diff --git a/src/map_countries_from_location.rb b/src/map_countries_from_location.rb old mode 100644 new mode 100755