Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-9987

JSON-LD: Use "Concept URI" for Wikidata IRIs in the sameAs relation

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2021-03-15
    • None
    • Embedded Metadata
    • None

      The JSON-LD of the page https://musicbrainz.org/work/17ff494f-7698-33ab-b841-b1ce5e01423a contains under the "sameAs" relation the entry https://www.wikidata.org/wiki/Q765883. That Wikidata page contains on the left a link labeled "Concept URI" whose value is http://www.wikidata.org/entity/Q765883. Note the /entity/ instead of /wiki/ (and the missing s in the scheme). So Wikidata seems to be making a difference between a "concept" and a page describing a concept. For more details on this distinction see [1].

      Therefore I propose changing the "sameAs" entry to the "Concept URI".

      This fine distinction becomes important when using for instance the Wikidata Query Service [2] (or the SPARQL endpoint). Try for instance those two example queries requesting an audio file of the recording:
      a)
      select * where {
      <https://www.wikidata.org/wiki/Q765883> wdt:P51 ?audio.
      }
      b)
      select * where {
      <http://www.wikidata.org/entity/Q765883> wdt:P51 ?audio.
      }

      Only b) has a result.

      [1] https://www.w3.org/TR/cooluris/
      [2] https://query.wikidata.org/

            reosarevok Nicolás Tamargo
            babelfisch Toni Schindler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2021-03-15