Bene added a subscriber: Bene. Bene added a comment. I wonder if we could just use the decorator pattern (isn't that basically the "interfaces" approach?).
Another idea I found is the Extension Objects Pattern (http://st.inf.tu-dresden.de/Lehre/WS06-07/dpf/gamma96.pdf, https://msdn.microsoft.com/en-us/library/ms733816%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396). That seems to be somehow related to the roles pattern (is it actually the same?). I'm not sure if I understood Role Object Pattern correctly. To me, it seems that it is created to support objects which occur in completely different roles (like the Character/Director example on enwiki) while in our use case the statement doesn't suddenly become a sitelink. A sitelink with an url attached is still in the role of a sitelink and an unit snak with some normalized unit is still a snak. Do I understand the intention of the Role Pattern correctly? Is that really (from an abstract point of view) what we need conceptually in our data model implementation? TASK DETAIL https://phabricator.wikimedia.org/T118860 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Bene Cc: Bene, Lydia_Pintscher, mkroetzsch, adrianheine, hoo, thiemowmde, aude, Jonas, JanZerebecki, JeroenDeDauw, Aklapper, StudiesWorld, daniel, Wikidata-bugs, Mbch331 _______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs