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

make publisher collections transferable to wikidata #704

Open
maxlath opened this issue Nov 27, 2023 · 0 comments
Open

make publisher collections transferable to wikidata #704

maxlath opened this issue Nov 27, 2023 · 0 comments

Comments

@maxlath
Copy link
Member

maxlath commented Nov 27, 2023

Currently, collections might look something like this:

{
  labels: {},
  claims: {
    'wdt:P31': [ 'wd:Q20655472' ],
    'wdt:P1476': [ 'Nautilus Flugschrift' ],
    'wdt:P123': [ 'wd:Q1285306' ]
  }
}

The title (wdt:P1476) is a simple string, without the language code expected by wikibase-edit for monolingualtext properties such as wdt:P1476:

    'wdt:P1476': [ { text: 'Nautilus Flugschrift', language: 'de' } ],

In other places, the language code is inferred from the language claim (wdt:P407). The same could be done for collections being transferred to wikidata:

  • enable wdt:P407 for entities of type collection
  • when transferring to wikidata:
    • validate that the collection has a wdt:P407 claim set
    • deduce the language code from the wdt:P407 claim, to propertly reshape the monolingualtext value
@maxlath maxlath changed the title make collections transferable to wikidata make publisher collections transferable to wikidata Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant