Skip to content

Instantly share code, notes, and snippets.

@filbertkm
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filbertkm/a355213cab6b51ddaab0 to your computer and use it in GitHub Desktop.
Save filbertkm/a355213cab6b51ddaab0 to your computer and use it in GitHub Desktop.
setclaim
array (
'pageinfo' =>
array (
'lastrevid' => 23444,
),
'success' => 1,
'claim' =>
array (
'mainsnak' =>
array (
'snaktype' => 'value',
'property' => 'P661',
'datavalue' =>
array (
'value' =>
array (
'entity-type' => 'item',
'numeric-id' => 15213,
),
'type' => 'wikibase-entityid',
),
'datatype' => 'wikibase-item',
),
'type' => 'statement',
'id' => 'Q888$fae29d32-47c8-f0ad-da96-32aa7d2fb222',
'rank' => 'normal',
'qualifiers' =>
array (
),
'qualifiers-order' =>
array (
),
),
)
@filbertkm
Copy link
Author

original data:

{"type":"statement","mainsnak":{"snaktype":"value","property":"P661","datavalue":{"type":"wikibase-entityid","value":{"entity-type":"item","numeric-id":305}}},"id":"Q888$fae29d32-47c8-f0ad-da96-32aa7d2fb222","rank":"normal"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment