Page MenuHomePhabricator

<claim>property</claim> in GetClaims api xml output
Closed, ResolvedPublic

Description

this is from the mw1.24-wmf17 branch of Wikibase, before the xml format broke.

There is some weirdness here....

  • extra <claim>property</claim> at the end of the <claims> list
  • also, it's somewhat odd that the claims (by property) grouping is called 'claim' but realize to change that and make it nicer might break bots and tools that use this format.

<?xml version="1.0"?>
<api>

<claims>
  <claim id="P60">
    <claim id="Q5$92b4c2a4-4650-8c70-629c-c844d942d7d8" type="statement" rank="normal">
      <mainsnak snaktype="value" property="P60" datatype="time">
        <datavalue type="time">
          <value time="+00000002000-02-03T00:00:00Z" timezone="0" before="0" after="0" precision="11" calendarmodel="http://www.wikidata.org/entity/Q1985727" />
        </datavalue>
      </mainsnak>
      <qualifiers />
      <qualifiers-order />
    </claim>
    <claim id="Q5$5f38a6db-4108-e2ad-e328-695b67d16a91" type="statement" rank="normal">
      <mainsnak snaktype="value" property="P60" datatype="time">
        <datavalue type="wikibase-entityid">
          <value entity-type="item" numeric-id="170" />
        </datavalue>
      </mainsnak>
      <qualifiers />
      <qualifiers-order />
    </claim>
  </claim>
  <claim id="P66">
    <claim id="Q5$b4e39cb9-4e38-1a3a-456b-01db8456ff1a" type="statement" rank="normal">
      <mainsnak snaktype="novalue" property="P66" />
      <qualifiers />
      <qualifiers-order />
    </claim>
  </claim>
  <claim>property</claim>
</claims>

</api>


Version: unspecified
Severity: normal

Details

Reference
bz70531

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:56 AM
bzimport set Reference to bz70531.
bzimport added a subscriber: Unknown Object (MLST).

gerritadmin wrote:

Change 160677 had a related patch set uploaded by Daniel Kinzler:
Fix tag names generated in API XML output.

https://gerrit.wikimedia.org/r/160677

gerritadmin wrote:

Change 160677 merged by jenkins-bot:
Fix tag names generated in API XML output.

https://gerrit.wikimedia.org/r/160677

gerritadmin wrote:

Change 161214 had a related patch set uploaded by Aude:
Fix tag names generated in API XML output.

https://gerrit.wikimedia.org/r/161214

gerritadmin wrote:

Change 161214 merged by jenkins-bot:
Fix tag names generated in API XML output.

https://gerrit.wikimedia.org/r/161214