Nikki created this task.
Nikki added a project: Wikidata-Query-Service.
Herald added a subscriber: Aklapper.
Herald added projects: Wikidata, Discovery.

TASK DESCRIPTION

There seems to be some demand for accessing the item's ID. Right now the only way seems to be to turn the item into a string and then perform some sort of string replacement. A more direct way would be useful.

On https://www.wikidata.org/wiki/Wikidata:Project_chat#Fetching_QIDs_through_SPARQL.3F one person is asking how to do it and another person's response suggests they do it quite often.

On https://www.wikidata.org/wiki/Wikidata:Met_Open_Access_Artworks_Challenge/EN the ID is extracted in order to include it in a URL.

I do it quite often when I want to generate QuickStatements-compatible output, https://www.wikidata.org/wiki/User:Mat%C4%9Bj_Such%C3%A1nek/Safe_consistency_check is doing a similar thing.

We even do it in the module for generating SPARQL queries for constraints: https://www.wikidata.org/wiki/Module:Constraints/SPARQL

In http://vocab.getty.edu/ they use triples using dc:identifier for the identifier (example). Something like that would work well, since we could then write ?item dc:identifier ?itemid without needing any functions at all.


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

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

To: Nikki
Cc: Nikki, Aklapper, GoranSMilovanovic, QZanden, EBjune, merbst, Avner, debt, Gehel, Jonas, FloNight, Xmlizer, Izno, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to