GWicke added a comment.

In https://phabricator.wikimedia.org/T85181#940893, @Smalyshev wrote:

> Are we considering supporting WDQ API mini-language as the option for the 
> queries or it's not a viable option?


The problem I see with the WDQ language is the need to perform error-prone 
custom quoting and serialization in clients. For numeric identifiers this might 
not be so bad, but strings, dates etc will need escaping. JSON basically avoids 
these issues by letting the JSON serializer / parser deal with it.

We could still compile a more human-friendly DSL like the WDQ language to JSON, 
but forcing every client to deal with custom escaping and serialization issues 
does not sound like a great idea for a public API.


TASK DETAIL
  https://phabricator.wikimedia.org/T85181

REPLY HANDLER ACTIONS
  Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign 
<username>.

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: GWicke
Cc: GWicke, Smalyshev, JanZerebecki, mobrovac, jkroll, Wikidata-bugs, Jdouglas, 
aude, Manybubbles, daniel



_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to