Lucas_Werkmeister_WMDE added a comment.

  > In the JSON serialization of the entity 
(https://www.wikidata.org/w/api.php?action=wbgetentities&ids=L1259271), I see 
the serialization of the qualifier as:
  
  Apparently that’s how it was saved internally too? o_O
  
    $ curl -s 
'https://www.wikidata.org/w/api.php?action=query&revids=2081476901&prop=revisions&rvprop=content&rvslots=main&format=json&formatversion=2'
 | jq '.query.pages[0].revisions[0].slots.main.content | fromjson | 
.forms[0].claims.P7243[0].qualifiers.P898[0]'
    {
      "snaktype": "value",
      "property": "P898",
      "hash": "e49ad5fcdc05da78bac23b8373d04a80fecf16aa",
      "datavalue": {
        "value": null,
        "type": "string",
        "error": "Can only construct StringValue from strings"
      }
    }
  
  
  
    lucaswerkmeister-wmde@mwdebug2002:~$ mwscript getText wikidatawiki 
Lexeme:L1259271 | jq '.forms[0].claims.P7243[0].qualifiers.P898[0]'
    {
      "snaktype": "value",
      "property": "P898",
      "hash": "e49ad5fcdc05da78bac23b8373d04a80fecf16aa",
      "datavalue": {
        "value": null,
        "type": "string",
        "error": "Can only construct StringValue from strings"
      }
    }

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

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

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Pintoch, Danny_Benjafield_WMDE, Astuthiodit_1, 
karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, Akuckartz, Nandana, Lahi, 
Gq86, GoranSMilovanovic, Mahir256, QZanden, KimKelting, LawExplorer, _jensen, 
rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to