Page MenuHomePhabricator

serialization is missing the datatype field
Closed, InvalidPublic

Description

From the contact the dev team page:

http://www.wikidata.org/w/api.php?action=query&prop=revisions&titles=Q64&rvprop=content&format=json
For any snak (mainsnaks, qualifiers, reference) datatype field is missing.


Version: master
Severity: normal
Whiteboard: u=dev c=backend p=2

Details

Reference
bz70995

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:53 AM
bzimport set Reference to bz70995.
bzimport added a subscriber: Unknown Object (MLST).

Not an issue in the serialization component. It has a TypedSnakSerializer that takes a TypedSnak object.

So the user of the serializer should construct a TypedSnak (for which it might need to fetch the data type, since this is not part of the snak).

Not sure this is something we actually should do. The internal format never had this information. Did we actually check there is a valid use case here?

Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).Dec 1 2014, 2:33 PM