Page MenuHomePhabricator

Tool to "import" a Wikidata EntitySchema into a Wikibase
Open, Needs TriagePublicFeature

Description

Feature summary:

It would be an awesome feature if I could "import" a Wikidata EntitySchema into a new/fresh (or existing) Wikibase where the importer would use the shape to create appropriate properties and classes with for each a link (think: exact match) to the Wikidata item (as in the shape), after which it would copy the EntitySchema too, but then with the local properties and classes.

Use case(s):

The use case is as follows. Assume I want to create a new Wikibase with chemical structures in there. Wikidata already has a nice EntitySchema for chemical compound and the ShEx describes the properties needed to capture information about a chemical compound. Now, my Wikibase is empty or does not have anything around chemistry yet. I would like to COPY the shape into the new Wikibase. I would have to create the properties and possible a few classes (P31 in the shape) in doing so.

Because the importer would map (e.g. with "exact match") the Wikibase properties to Wikidata properties, I would even get a ShapeExpression in the Wikibase to match what was copied.

For an already existing Wikibases, using the "exact match" I could copy shapes or even update shapes from Wikidata: it would reuse properties already defined in the Wikibase.

Benefits:

  • unlike mass importing all Wikidata properties, this would only create a small set of properties that I intend to use
  • unlike T234943, I can do that at any moment in time and am not restricted to doing this when "bootstrapping"
  • if the importer recognizes a "exact match" property, then I can keep a local shape synchronized with a Wikidata shape
  • it would formalize the use of some property to define mappings to Wikidata which would be a huge benefit for Wikibase interoperability
  • EntitySchemas would become a ton more powerful and it would be a huge incentive to use knowledge modeled in Wikidata

Event Timeline

EgonWillighagen renamed this task from im to an tool to "import" a Wikidata EntitySchemas into a Wikibase.Jan 17 2023, 7:22 PM

As far as I know, such a tool is still difficult to develop. There is an API to read EntitySchema but it is still not possible to add and EntitySchema to a wikibase, besides adding them manually and pushing the save button. See related ticket: https://phabricator.wikimedia.org/T301336

In wikishape we could such a feature but in order to do that, we have the problem that we cannot automatically add entity schemas to wikibase. We would need that this issue could be solved: https://phabricator.wikimedia.org/T301336

Addshore renamed this task from an tool to "import" a Wikidata EntitySchemas into a Wikibase to Tool to "import" a Wikidata EntitySchema into a Wikibase.Mar 15 2023, 6:03 PM
  NODES
HOME 1
Note 1
os 3