metaphacts / semopenalex

43 stars 5 forks source link

fix Geonames props #76

Open VladimirAlexiev opened 10 months ago

VladimirAlexiev commented 10 months ago

curl -Haccept:text/turtle https://semopenalex.org/geo/I200650556 shows

<https://semopenalex.org/geo/I200650556> a soa:Geo;
  <http://www.geonames.org/ontology#countryCode> "NO";
  <http://www.geonames.org/ontology#geonamesID> "3149318";
  <http://www.geonames.org/ontology#lat> "58.14671"^^<http://www.w3.org/2001/XMLSchema#float>;
  <http://www.geonames.org/ontology#long> "7.9956"^^<http://www.w3.org/2001/XMLSchema#float>;
  <https://dbpedia.org/property/city> "Kristiansand";
  <https://dbpedia.org/property/country> "Norway" .

But if you compare to https://sws.geonames.org/3149318/about.rdf, you'll see that 3 of the used Geonames props don't exist. Also, https://semopenalex.org/institution/I200650556 uses dbp:countryCode "NO", and there's no need to use a different prop here.

So please replace them as follows:

@prefix wgs: <http://www.w3.org/2003/01/geo/wgs84_pos#>.
<https://semopenalex.org/geo/I200650556> a soa:Geo;
  dbp:countryCode "NO";
  owl:sameAs <https://sws.geonames.org/3149318/>;
  wgs:lat "58.14671"^^xsd:float;
  wgs:long "7.9956"^^xsd:float;
  dbp:city "Kristiansand";
  dbp:country "Norway" .
linnaung commented 10 months ago

@VladimirAlexiev , thank you and will fix the ontology and mapping scripts.

VladimirAlexiev commented 9 months ago

I edited "please replace them as follows" to add the last 2 props (unchanged).

VladimirAlexiev commented 3 months ago

@davidlamprecht Still has some problems:

@prefix dbprop: <https://dbpedia.org/property/> .

<https://semopenalex.org/geo/I200650556> a soa:Geo;
  owl:sameAs <https://sws.geonames.org/3149318>;
  wgs:lat "58.14671"^^<http://www.w3.org/2001/XMLSchema#float>;
  wgs:long "7.9956"^^<http://www.w3.org/2001/XMLSchema#float>;
  dbprop:countryCode "NO";
  dbprop:city "Kristiansand";
  dbprop:country "Norway" .