Yurik changed the title from "SparqlQuery.select() full_data parameter has inverse meaning" to "SparqlQuery.select() with full_data=False should return ID, not entity".
Yurik edited the task description. (Show Details)

EDIT DETAILS
In `SparqlQuery.select(query, full_data, ...)` method I suspect the original intent was to always return simplified result unless `full_data=True`, but the current implementation is the reverse of that.returns either raw values (somewhat helpful but bad for IDs), I would prefer to always get simplified results by default,or full objects. but if this has been around for a while, we might need to rename it to keep existing code from breakingI suspect it would be more convenient for many users if in the `full_data=False` the entities would return as raw IDs: `Q123` instead of `http://www.wikidata.org/entity/Q123`.

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

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

To: Yurik
Cc: Smalyshev, dachary, Aklapper, pywikibot-bugs-list, Yurik, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Ricordisamoa, Wesalius, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to