Andrawaag created this task. Andrawaag added projects: StructuredDataOnCommons, Wikidata. Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION **Feature summary** (what you would like to be able to do and where): I noticed some slight difference between the JSON of a wikidata item and that of a structure data commons item. At first glance, they seem rather esthetic (are they?). I was trying to reuse code from de WikidataIntegrator to interact with SDC API, which was unsuccessful because of two minor differences between the two. 1. Where in the Wikidata API output the term "claims" is used, SDC uses "statements" 2. Wikidata JSON output has a field: entities->Qxx->claims->Pxx->mainsnak->datatype, which does not exist in the output of SDC. **Use case(s)** (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution): I was trying to reuse existing code to parse wikidata items. Early on I noticed the difference between "claims). (wd) and "statements" (sdc). This can be easily fixed by duplicating the code and changing claims for statements. However, I got stuck when trying to assess the statement type. **Benefits** (why should this be implemented?): Having a JSON output of both the wd API and sdc API, would allow the myriad of existing wikidata external tools to be reused in an SDC context. I used the following output as (arbitrary) json representations for comparison 1. https://www.wikidata.org/wiki/Special:EntityData/P279.json 2. https://commons.wikimedia.org/wiki/Special:EntityData/M574781.json TASK DETAIL https://phabricator.wikimedia.org/T301089 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Andrawaag Cc: Andrawaag, Aklapper, Invadibot, maantietaja, FRomeo_WMF, CBogen, Nintendofan885, Akuckartz, Nandana, JKSTNK, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org