Hi,
I just noted that the official description of the Wikibase data model at
https://www.mediawiki.org/wiki/Wikibase/DataModel
and the description of JSON serialization lack a description of Lexemes, Forms, and Senses. The documentation of Wikibase RDF has been updated but the underlying data model description seems outdated.
At least JSON specification is part of Wikibase source code:
https://phabricator.wikimedia.org/diffusion/EWBA/history/master/docs/json.wi...
A more formal document (e.g. JSON Schema) may help to detect when implementation and documentatation get out of sync.
Jakob
Hello Jakob,
Lexemes are not implemented as part of Wikibase itself but in a Wikibase extension [1] because not all Wikibase users are interested in storing lexical data. The data model "formal" description is here [2] and the full RDF document is here [3].
I have added a link to the Lexeme data model from the Wikibase data model page.
Cheers,
Thomas
[1] https://www.mediawiki.org/wiki/Extension:WikibaseLexeme [2] https://www.mediawiki.org/wiki/Extension:WikibaseLexeme/Data_Model [3] https://www.mediawiki.org/wiki/Extension:WikibaseLexeme/RDF_mapping
Le 11 déc. 2018 à 08:38, Jakob Voß Jakob.Voss@gbv.de a écrit :
Hi,
I just noted that the official description of the Wikibase data model at
https://www.mediawiki.org/wiki/Wikibase/DataModel
and the description of JSON serialization lack a description of Lexemes, Forms, and Senses. The documentation of Wikibase RDF has been updated but the underlying data model description seems outdated.
At least JSON specification is part of Wikibase source code:
https://phabricator.wikimedia.org/diffusion/EWBA/history/master/docs/json.wi...
A more formal document (e.g. JSON Schema) may help to detect when implementation and documentatation get out of sync.
Jakob
-- Jakob Voß jakob.voss@gbv.de Verbundzentrale des GBV (VZG) / Common Library Network Platz der Goettinger Sieben 1, 37073 Göttingen, Germany +49 (0)551 39-10242, http://www.gbv.de/
Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
Am 11.12.18 um 08:38 schrieb Jakob Voß:> Hi,
I just noted that the official description of the Wikibase data model at
https://www.mediawiki.org/wiki/Wikibase/DataModel
and the description of JSON serialization lack a description of Lexemes, Forms, and Senses.
The abstract model for Lexemes is here: https://www.mediawiki.org/wiki/Extension:WikibaseLexeme/Data_Model
The RDF binding his here: https://www.mediawiki.org/wiki/Extension:WikibaseLexeme/RDF_mapping
Looks like documentation for the JSON bindinng is indeed missing.
On 12/11/18 7:38 AM, Jakob Voß wrote:
A more formal document (e.g. JSON Schema) may help to detect when implementation and documentatation get out of sync.
One way to generate a JSON schema would be to use Wikidata-Toolkit's implementation, which can generate a JSON schema via Jackson. It could be used to validate the entire data model.
Antonin
Am 11.12.18 um 10:38 schrieb Antonin Delpeuch (lists):
One way to generate a JSON schema would be to use Wikidata-Toolkit's implementation, which can generate a JSON schema via Jackson. It could be used to validate the entire data model.
Why a schema is nice, it's more important to have documentation that defines the contract - that is, the intended semantics and guarantees.
wikidata-tech@lists.wikimedia.org