Last modified: 2014-09-25 09:24:53 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T72531, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70531 - <claim>property</claim> in GetClaims api xml output
<claim>property</claim> in GetClaims api xml output
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-07 19:52 UTC by Aude
Modified: 2014-09-25 09:24 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Aude 2014-09-07 19:52:58 UTC
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>
Comment 1 Gerrit Notification Bot 2014-09-16 16:08:48 UTC
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
Comment 2 Gerrit Notification Bot 2014-09-17 17:28:30 UTC
Change 160677 merged by jenkins-bot:
Fix tag names generated in API XML output.

https://gerrit.wikimedia.org/r/160677
Comment 3 Gerrit Notification Bot 2014-09-18 10:45:15 UTC
Change 161214 had a related patch set uploaded by Aude:
Fix tag names generated in API XML output.

https://gerrit.wikimedia.org/r/161214
Comment 4 Gerrit Notification Bot 2014-09-18 12:50:10 UTC
Change 161214 merged by jenkins-bot:
Fix tag names generated in API XML output.

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links