On 22.05.2012 17:25, Platonides wrote:
You might want in wikipedia: John Doe ended up the
{{#data-value:
item=123|param=Position/2012 Race|format=ordinal}} in the [[2012 Race]]
out of {{#data-value:456|param=total-participants}}
It's a possible use case, but as a Wikipedia, I would like to avoid such things
in the prose part of an article, to keep the wikitext readable and editable.
Anyway, this kind of information either never changes, so the overhead of
referencing a data item is pointless, or changes frequently, in which case a
table or infobox is more useful for displaying it.
Where item 123 could be {"name":"John
Doe","Position\/2012 Race":42}
for instance, and 456 {"name":"2012
Race","country":"Germany","total-participants":1024}
Arguably, we might want to store instead John Doe position in the 2012
Race item.
This is really a question about the data model, not the inclusion syntax.
Anyway, in my mind, this would be modeled like this:
* There's an item for John Doe, say Q23
* There's an item for the 2012 race, say Q42
* The race has a property "positions"
* "positions" is inherently multi-valued (i.e. multiple values don't
indicate
alternatives, but are considered to be true all at once, and multiple different
values can be ascribed to a single source).
* Each entry in positions is a reference to a contestor (e.g. Q23) with their
rank and perhaps time or whatever as qualifiers.
Alternatively, Q42 could even be about the race in general, and the entries in
the "positions" property could be qualified with a point in time. Wikidata
editors would be free to choose either solution (or your solution, or whatever).
We (me, Denny and Markus Krötsch) have discussed this kind of "qualified
multi-value properties" quite extensively and came to the conclusion that using
the pattern above, we can model most scenarios sanely. Another typical example
would be ethnic groups of a country, as percentage of the population, by year
and source.
-- daniel
--
Daniel Kinzler, Softwarearchitekt
Wikimedia Deutschland e.V. | Eisenacher Straße 2 | 10777 Berlin
http://wikimedia.de | Tel. (030) 219 158 260
Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e.V.
Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg
unter der Nummer 23855 B. Als gemeinnützig anerkannt durch das Finanzamt
für Körperschaften I Berlin, Steuernummer 27/681/51985.