Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorporate language tags for variantName of works #357

Open
acka47 opened this issue Oct 11, 2023 · 1 comment
Open

Incorporate language tags for variantName of works #357

acka47 opened this issue Oct 11, 2023 · 1 comment

Comments

@acka47
Copy link
Contributor

acka47 commented Oct 11, 2023

Context: This was originally requested by Deutsches Literaturarchiv Marbach via email in June 2022 and then I opened https://jira.dnb.de/browse/GND-211 (login necessary) in the DNB JIRA.

DNB have now added language tags to strings in gndo:variantNameForTheWork. The changes will be provided to lobid with the next dump by the end of October.

Example: https://d-nb.info/gnd/4119779-3

Before:

<https://d-nb.info/gnd/4119779-3>  gndo:variantNameForTheWork "Der letzte Grund", "Sansibar oder Der letzte Grund", "Sang gei ba er Huo zui hou yi ge li you",
    "Sang gei ba er huo Hou yi ge li you", "Drømmen om Zanzibar", "Flight to afar", "Unelma Sansibarista",
    "Zanzibar", "Zanzibar ovvero L'ultimo perché", "Zanzíbar o l'última raó", "Zanzibar",
    "De laatste reden", "Zanzibar aneb Poslední dúvod", "Zanzibar sau Ultima ratiune",
    "Drömmen om Sansibar", "Zanzibar ali poslednji razlog", "Zanzibar aneb poslední důvod",
    "A végsö ok" .

Now:

<https://d-nb.info/gnd/4119779-3> gndo:variantNameForTheWork "Der letzte Grund", "Sansibar oder Der letzte Grund", 
"Sang gei ba er Huo zui hou yi ge li you"@zh,  "Sang gei ba er huo Hou yi ge li you"@zh, 
"Drømmen om Zanzibar"@da, "Flight to afar"@en,     "Unelma Sansibarista"@fi, "Zanzibar"@fr, 
"Zanzibar ovvero L'ultimo perché"@it, "Zanzíbar o l'última raó"@ca, "Zanzibar"@nl, "De laatste reden"@nl, 
"Zanzibar aneb Poslední dúvod"@pl, "Zanzibar sau Ultima ratiune"@ro,"Drömmen om Sansibar"@sv, 
"Zanzibar ali poslednji razlog"@sl, "Zanzibar aneb poslední důvod"@cs, "A végsö ok"@hu .

I am not sure, we can incorporate this information in lobid-gnd without an API break if we adjust the variantName field where we put it. I assume this was just changed for works, so we might add in addition variantNameForTheWork to the context and use language maps with it:

{
   "variantNameForTheWork":{
      "@id":"https://d-nb.info/standards/elementset/gnd#variantNameForTheWork",
      "@container":"@language"
   }
}
@acka47
Copy link
Contributor Author

acka47 commented Oct 11, 2023

Tracy (what's her GitHub handle again?) notes : language tags for variant names of person have already been existing in the GND RDF for quite some time.

Example https://d-nb.info/gnd/1047091410:

<https://d-nb.info/gnd/1047091410> gndo:variantNameForThePerson "中院仲子"@ja;
  gndo:variantNameEntityForThePerson _:node1hceo5khkx61782 .

_:node1hceo5khkx61782 gndo:personalName "中院仲子" .

<https://d-nb.info/gnd/1047091410> gndo:variantNameForThePerson "周芳"@ja;
  gndo:variantNameEntityForThePerson _:node1hceo5khkx61783 .

_:node1hceo5khkx61783 gndo:personalName "周芳" .

We have that covered in the JSON like this (which I must say, does not look very "usable"/LOUD to me):

"variantNameEntityForThePerson": [

        {
              "personalName": [
                    "周芳"
              ]
        },
        {
              "personalName": [
                    "Shūhō"
              ]
        },
        {
              "personalName": [
                    "Nakanoin Nakako"
              ]
        },
        {
              "personalName": [
                    "中院仲子"
              ]
        }

  ],
  "languageCode": [

        {
              "id": "http://id.loc.gov/vocabulary/iso639-2/jpn",
              "label": "http://id.loc.gov/vocabulary/iso639-2/jpn"
        }

  ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant