https://bugzilla.wikimedia.org/show_bug.cgi?id=45509
Web browser: ---
Bug ID: 45509
Summary: wbgetentities API returns useless (at least useless in
XML) "missing" attribute for missing entities
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: WikidataRepo
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
When requesting entities via wbgetentities API module, requested entities which
are not in the system will still be taken into the result set with a "missing"
attribute. In xml this will look like:
<entities><entity missing="" /></entities>
in JSON:
"entities": { "p1311": { "missing": "" } }
So in the JSON version you can actually still see which entity is missing, in
XML you can't.
I would simply suggest taking those references to missing entities entirely out
of the result set since the requester can simply check whether all requested
entities are actually in the result.
Those "special" entries just make it necessary to differentiate between "real"
entity data and other information which requires more additional code.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l