clarin-eric / VLO

Virtual Language Observatory
GNU General Public License v3.0
14 stars 6 forks source link

Rewrite PIDs to HTTP resolveable URIs for dataset metadata #304

Closed twagoo closed 4 years ago

twagoo commented 4 years ago

As implemented in #209, we can see cases like the following:

{
  "url": "http://vlo.clarin.eu/record/http_58__47__47_hdl.handle.net_47_10032_47_3089d8235c4a1cf796c8f753b3f7af16",
  "name": "Basilex Lexicon",
  "description": "The Basilex Lexicon comprises all lemma's from the Basilex Corpus. The Basilex Corpus is an annotated collection of texts written for children in elementary school.",
  "identifier": [
    "hdl:10032/tm-a2-k7"
  ],
  "sameAs": "hdl:10032/tm-a2-k7",
  "mainEntityOfPage": "hdl:10032/tm-a2-k7",
  "spatial": [
    {
      "name": "Netherlands",
      "@type": "Place"
    }
  ]
}

Google warns that, for instance, the value for sameAs is not a valid URL. To resolve this, all PIDs must be rewritten to URLs with a resolver prefix. Logic for this is already available in the front end code.

twagoo commented 4 years ago

covered by #307