Skip to content

How to handle schema:url on multilingual websites #149

@fjjulien

Description

@fjjulien

@saumier raise the following very interesting question over email:

You can look at the capitol-nb-ca datafeed in Artsdata
http://kg.artsdata.ca/en/query/show?title=Event entities in capitol-nb-ca&sparql=list_events&graph=http://kg.artsdata.ca/capacoa/artsdata-orion/capitol-nb-ca

The last issue I have, is that there are 2 urls from en and fr webpages for the same event. The Artsdata data model wants a single url for the event. This same problem happened in Footlight console many years ago and was solved by doing 2 transforms:

  1. creating 2 WebPage objects per event, each with a url and "inLanguage". That allows the reuse of the event with an unambiguous meaning for the 2 urls leading to en and fr webpages.
  2. selecting 1 url to be the event main url.

@frederic My question to you: should I use the same solution from Footlight Console described above, or do you see a different solution for an event’s multiple urls on a bilingual website?

The sample data shared by Gregory in his email looks like this:

Image

    "url": [
         "https://capitol.nb.ca/en/tickets-events/melissa-bedard",
         "https://capitol.nb.ca/fr/spectacles-et-billets/melissa-bedard"
         ],

I'll break down my response in multiple comments, to it is possible for readers to upvote or cite specific comments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions