[Wikidata-bugs] [Maniphest] [Commented On] T170788: Provide a more direct way to access an item's ID

2017-07-19 Thread Mike_Peel
Mike_Peel added a comment. It seems odd that, in order to get the data (the Q-numbers), you have to strip formatting from the values. Being able to simply get a list of Q-ids should be one of the simplest Wikidata queries possible...TASK DETAILhttps://phabricator.wikimedia.org/T170788EMAIL

[Wikidata-bugs] [Maniphest] [Commented On] T170788: Provide a more direct way to access an item's ID

2017-07-19 Thread Smalyshev
Smalyshev added a comment. Being able to simply get a list of Q-ids should be one of the simplest Wikidata queries possible... I think you misunderstand the nature of the RDF data representation. In RDF, triples are composed of values, which are either URIs or strings. Wikibase items are referred

[Wikidata-bugs] [Maniphest] [Commented On] T170788: Provide a more direct way to access an item's ID

2017-07-19 Thread Smalyshev
Smalyshev added a comment. You don't really need multiple functions, just do STRAFTER( STR( ?item ), STR( wd: ) ). I've yet to see any scenario where it wouldn't be enough. I would personally prefer a triple because they really are simple. I understand but currently I don't see too much value to

[Wikidata-bugs] [Maniphest] [Commented On] T170788: Provide a more direct way to access an item's ID

2017-07-19 Thread Nikki
Nikki added a comment. It might seem simple to you, but you have a lot more experience than most of us. :) The various methods all involve multiple functions, which means remembering which functions you need for the method you want to use, which order to use them in, which arguments the functions