Serialization of claim lists and snak lists for API and JSON need to support grouped and ungrouped forms.
Closed, ResolvedPublic

Description

Currently, an entity's list of claims is in some cases represented as a flat list, and in other cases grouped by property ID. Similar confusion exists for the snak lists that make up qualifiers and references.

To resolve this:

  • There needs to be a serializer option for toggeling grouping (on different levels)
  • Unserializers need to support both forms everywhere
  • The overall JSON documentation needs to document both forms
  • API modules as well as Special:EntityData need to clearly document which form is used when, where and for what.
  • API modules may provide options to specify the desired output mode for claim lists and snak lists.

Version: unspecified
Severity: normal

bzimport added a subscriber: Unknown Object (MLST).
bzimport set Reference to bz55795.
daniel created this task.Via LegacyOct 16 2013, 4:09 PM
gerritbot added a comment.Via ConduitJan 10 2014, 1:28 PM

Change 96268 had a related patch set uploaded by Addshore:
Add ungrouped list api parameter

https://gerrit.wikimedia.org/r/96268

gerritbot added a comment.Via ConduitJan 17 2014, 10:42 AM

Change 96268 merged by jenkins-bot:
Add ungrouped list api parameter

https://gerrit.wikimedia.org/r/96268

Addshore added a comment.Via WebSun, Aug 23, 9:30 AM

This parameter has now been removed in favour of always grouping by property

Restricted Application added a project: Wikidata. · View Herald TranscriptVia HeraldSun, Aug 23, 9:30 AM

Add Comment