In order to allow RDF mappings for custom data types to be registered, we need an interface for mapping a Snak to RDF, and an implementation that will dispatch to the correct mapping for each data type. We then need a mechanism to inject such mapping implementations. Finally, the existing mappings in SimpleValueRdfBuilder resp ComplexValueRdfBuilder should be split into individual classes, so they can be registered via WikibaseRepo.datatypes.php.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Allow RDF mapping for snaks to be injected per datatype. | mediawiki/extensions/Wikibase | master | +716 -115 |
Status | Subtype | Assigned | Task | |
---|---|---|---|---|
· · · | ||||
Resolved | daniel | T110214 [Task] Manage RDF mapping of data values based on central DataType registry | ||
Resolved | daniel | T112083 [Task] Allow RDF bindings for different data types to be registered dynamically. | ||
Resolved | daniel | T118499 [Task] Define RDF mappings per value type | ||
Resolved | daniel | T118500 [Task] Split RDF mapping code into separate classes per type | ||
· · · |
Event Timeline
Comment Actions
Change 251978 had a related patch set uploaded (by Daniel Kinzler):
Allow RDF mapping for snaks to be injected per datatype.
Comment Actions
Change 251978 merged by jenkins-bot:
Allow RDF mapping for snaks to be injected per datatype.
Comment Actions
@Tobi_WMDE_SW The description calls for a bit more: "Finally, the existing mappings in SimpleValueRdfBuilder resp ComplexValueRdfBuilder should be split into individual classes, so they can be registered via WikibaseRepo.datatypes.php." That's still WIP: https://gerrit.wikimedia.org/r/#/c/252026/ - the test cases are still incomplete.
But we could just as well split that into a separate task.
PS: I now created T118500: [Task] Split RDF mapping code into separate classes per type as a blocker of this task.