| daniel added a comment. |
With the new behavior of the Quantity type, the difference to Number would still be:
- positive integers only
- no unit (no "dog" as unit for a dog team size)
- default (or force?) to +/- 0 (don't use +/-0 with population numbers!)
As Esc3300 correctly noted, this would allow optimization for the RDF representation:
- we can use xsd:integer instead of xsd:decimal for the literal type
- if we do not allow any precision other than +/-0, we need no "complex value" nodes to represent the value in RDF. A single literal would be sufficient.
Note however that these optimizations are only possible if we introduced a new value type for numbers (different structure), not just a new data type (different interpretation). Changing the structure in JSON and RDF would be a breaking change, and transitioning existing values present in the database would be challenging.
TASK DETAIL
EMAIL PREFERENCES
To: daniel
Cc: Lokal_Profil, Esc3300, Thryduulf, abian, Nikki, TerraCodes, JohnLewis, JanZerebecki, Micru, mkroetzsch, thiemowmde, Ricordisamoa, daniel, Lydia_Pintscher, Liuxinyu970226, Snaterlicious, jayvdb, SPQRobin, Wikidata-bugs, DSGalaktos, Bugreporter, geraki, Ayack, Gareth, kaldari, Smalyshev, Izno, AmaryllisGardener, Sjoerddebruin, Mbch331, Stryn, Denny, Jc3s5h, Aklapper, D3r1ck01, Luke081515, aude, fbstj
Cc: Lokal_Profil, Esc3300, Thryduulf, abian, Nikki, TerraCodes, JohnLewis, JanZerebecki, Micru, mkroetzsch, thiemowmde, Ricordisamoa, daniel, Lydia_Pintscher, Liuxinyu970226, Snaterlicious, jayvdb, SPQRobin, Wikidata-bugs, DSGalaktos, Bugreporter, geraki, Ayack, Gareth, kaldari, Smalyshev, Izno, AmaryllisGardener, Sjoerddebruin, Mbch331, Stryn, Denny, Jc3s5h, Aklapper, D3r1ck01, Luke081515, aude, fbstj
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
