daniel created this task.
daniel claimed this task.
daniel added subscribers: daniel, Lydia_Pintscher, Aklapper, JanZerebecki.
daniel added projects: Wikibase-DataModel-Serialization, 
MediaWiki-extensions-WikibaseRepository, Wikidata.

TASK DESCRIPTION
  In {T112547} it was decided that we should represent derived values in the 
data model in order to include them in the JSON output. Several options were 
identified for doing so:
  
  a. Use subclassing to created "extended" versions of the relevant classes in 
the model. This is already doen for some things (Terms with language fallback, 
for instance), but was identified as the least desirable option in the 
previsous RFC discussion.
  b. Create a completely separate model hierarchy, wrapping the base model, and 
attaching additional information. This was seen as clean but tedious in the 
previous RFC discussion.
  c. Create specialized models for each use case, independent of the base 
model, with the appropriate transformation services. This was seen as rather 
hard to maintain and tricky to document and communicate to third parties.
  d. Define interfaces for the core model, but support additional (derived) 
data in the implementation classes (or have separate interfaces and/or 
implementations that support additional information). This would break all code 
that currently instantiates model objects directly.

TASK DETAIL
  https://phabricator.wikimedia.org/T112550

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: JanZerebecki, Aklapper, Lydia_Pintscher, daniel, Wikidata-bugs, aude



_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to