Page MenuHomePhabricator

Implement the state change service
Closed, ResolvedPublic

Description

As a REST endpoint, which should retrieve new statements given a Wikidata Item.

  • POST /curate/QID
  • required parameters:
    • QID, the subject Item ID;
    • PID, the property ID of the curated statement;
    • type, one of [ claim, qualifier, reference ];
    • state, either approved or rejected;
    • user, the user name of the curator
  • optional parameter: dataset.
  1. Depending on the type parameter, run the queries as per T169986#3500063;
  2. default dataset value = all. Must adapt the queries as follows:
    • replace the named graph URI with ?g in the GRAPH clause;
    • add FILTER STRENDS(str(?g), "new") . as the last clause in the WHERE clause.