hbz / lobid

Linking Open Bibliographic Data
https://lobid.org/
Eclipse Public License 2.0
16 stars 4 forks source link

Add labels to LinkedGeoData entities #55

Closed acka47 closed 9 years ago

acka47 commented 10 years ago

Example (snippet, current state):

{
  "@graph" : [{
    "@id" : "http://d-nb.info/gnd/2015732-0",
    "preferredName" : "Köln",
    "preferredNameForThePlaceOrGeographicName" : "Köln"
  }, {
    "@id" : "http://lobid.org/resource/HT017621889",
    "@type" : [ "http://purl.org/vocab/frbr/core#Manifestation", "http://purl.org/ontology/bibo/Book", "http://purl.org/dc/terms/BibliographicResource" ],
    "spatial" : [ "http://linkedgeodata.org/triplify/node20953083", "http://sws.geonames.org/6691073/" ],
    "title" : "Musikstadt Köln",
  } ],
  "@context" : "http://api.lobid.org/context/lobid-resources.json"
}

To this, the rdfs:label information should be added from LinkedGeoData, but only for the German label. Example (snippet, envisioned result):

{
  "@graph" : [{
    "@id" : "http://d-nb.info/gnd/2015732-0",
    "preferredName" : "Köln",
    "preferredNameForThePlaceOrGeographicName" : "Köln"
  }, 
  { "@id" : "http://linkedgeodata.org/triplify/node20953083",
    "http://www.w3.org/2000/01/rdf-schema#label" : "Köln"
  },
  {
    "@id" : "http://lobid.org/resource/HT017621889",
    "@type" : [ "http://purl.org/vocab/frbr/core#Manifestation", "http://purl.org/ontology/bibo/Book", "http://purl.org/dc/terms/BibliographicResource" ],
    "spatial" : [ "http://linkedgeodata.org/triplify/node20953083", "http://sws.geonames.org/6691073/" ],
    "title" : "Musikstadt Köln",
  } ],
  "@context" : "http://api.lobid.org/context/lobid-resources.json"
}

(We would also have to add rdfs:label to the JSON-LD context.)

dr0i commented 10 years ago

Do you really mean to take labels from GeoNames? In our hdfs-enrich-workflow it is not supported to take a label from a dataset (here: GeoNames) to describe an other dataset (here: linkedgeodata), I think.

acka47 commented 10 years ago

@dr0i Sorry for the confusion. It was just a typo. Of course the label should come from LinkedGeoData. Corrected that in my comment above.

acka47 commented 9 years ago

We don't work with linkedgeodata currently. Closing.