Zum Hauptinhalt springen

Simplified Entry of Complex Data into Wikibase

diesen Beitrag auf Deutsch lesen

Data models can be complex, containing many classes and properties that are interconnected – it’s easy to lose track of everything. Especially if you haven’t entered new data in a data management system like Wikibase for a while, you may find yourself having to review the data model documentation before you can even get started.

Wikibase is the free and open source software behind Wikidata, the public knowledge base of the Wikimedia movement. Wikibase is a well-known and widely-used tool among GLAM and research data communities. It is popular for the wide range of functionalities it offers out-of-the-box, the large open source community developing extensions for it, and the flexibility to configure it to custom data requirements. But this flexibility can also come with usability issues.

After all, when you want to create a new entity for a specific class, the default Wikibase pages don’t tell you:

  • What information that would typically be expected for this type of entity is missing?
  • Which property should be used for the respective piece of information (e.g., “Country” vs. “Country of Origin”)?

It was precisely for this purpose that we wanted to develop a form within a Wikibase4Research instance with a data model focused on theater productions and performances. Wikibase4Research is a custom configurable Docker container, extending the default Wikibase distribution. It is developed by the Open Science Lab at TIB in the context of the NFDI4Culture consortium and is used for projects such as the Performing Arts Database (PAD) initiated by Leipzig University.

While researching suitable solutions for the PAD use case, we came across forage. The user script adds a new tab to every Wikibase item, which opens a form displaying all properties relevant to the current item. Data entry is made easier by simplified input fields.

The script worked very well in initial testing, but we still needed a few more features. We therefore decided to fork the public repository and write an extension. The resulting script, “forage extended”, remains open source and is available to everyone on the Wikibase4Research GitLab repository. 

The following features have been newly integrated:

  • Schema-based form layout:
    Properties are grouped and sorted by entity type via a configuration object.
  • Create a new item for a specific class:
    When opening “Forms” in Forage for an empty element, a class selection screen appears; clicking a class automatically sets the required properties and reloads the form—this can be configured in the configuration object.
  • Support for qualifiers:
    Configurable qualifier input fields appear directly below the parent property. (For example, a “role name” can be added directly for the “Actor” property.)
  • Validation of required fields:
    Fields marked as required are indicated with a red asterisk and listed in a warning banner until a value is saved.

The resulting script greatly simplifies the manual entry of new entities: You no longer have to search for the correct properties yourself; instead, they are always right in front of you.

We plan to contribute Forage Extended back to the broader open source eco-system via a merge request to the repository hosting the original version, thereby helping others in the Wikibase community enter their complex data more easily.

Noch keine Kommentare!

Ihre Email Adresse wird nicht veröffentlicht.


Abonnieren Sie
unsere Newsletter

Newsletter