Wikidata talk:Arbitrary access

Latest comment: 7 years ago by Valerio Bozzolan in topic Parser function syntax

Arbitrary access is coming to the first wikis edit

Copied from Wikidata:Project chat. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 21:18, 6 May 2015 (UTC)Reply

Hey folks :)

When using data from Wikidata on Wikipedia and other sister projects there is currently a limitation in place which hinders some use cases. Data can only be accessed from the corresponding item. So for example the article about Berlin can only get data from the item about Berlin but not from the item about Germany. This had technical reasons. On Monday we will remove this limitation on the first wikis. This will be Dutch Wikipedia and French Wikisource. (More will follow over the next weeks. We hope to have it rolled out nearly everywhere by the end of June.) We invite you to play around with this new feature if you are one of the people who have been waiting for this for a long time. If you have technical issues/questions with this you can come to Wikidata:Contact the development team.

A note of caution: Please be careful with how many items you use for a single page. If it is too many page loading might get slow. We will have to see how the feature behaves in production to see where we need to tweak and how.

How to use it once it is enabled:

Cheers --Lydia Pintscher (WMDE) (talk) 19:33, 6 May 2015 (UTC) (who is very happy this is finally getting out)Reply

Where / how can i see "usage tracking"? edit

For example in nlwiki, how can i "track wikidata usage"? Is there a special:-page, a specific query, tracking categories, a wmflabs-tool or ...? Or in any other WP with wikidata arbitrary access activated? --Atlasowa (talk) 15:37, 11 June 2015 (UTC)Reply

hmm. Rolling out arbitrary access on all wikis, but no usage tracking yet? --Atlasowa (talk) 16:02, 11 June 2015 (UTC)Reply

The rollout of usage tracking at this point is just the database table. We'll still need to make this viewable in a nice way on-wiki. The database table should also be available on Labs in the database replication. --Lydia Pintscher (WMDE) (talk) 16:10, 11 June 2015 (UTC)Reply
So is it possible to query wikidata usage in WPs via quarry? (https://quarry.wmflabs.org/query/runs/all , Wikidata - wb_items_per_site - sample item?) Currently Wikipedias are almost blind, only with improved insource-search we recently built an overview at de:Benutzer:Mabschaaf/WD-Nutzung in deWP. BUT it is not possible to tell if dewiki displays 100 Wikidata-embeds or 70.000! --Atlasowa (talk) 18:12, 11 June 2015 (UTC)Reply
or 112.000!! --Atlasowa (talk) 18:16, 11 June 2015 (UTC)Reply

See also de:Wikipedia:WikiProjekt_Vorlagen/Werkstatt#Name_der_HTML-Klasse, a proposed kind of usage tracking mechanism via html-class /lua template in german WP. @Lydia Pintscher (WMDE) et al. --Atlasowa (talk) 20:17, 20 June 2015 (UTC)Reply

Thank you! In the meantime I have also opened phabricator:T103091. --Lydia Pintscher (WMDE) (talk) 06:43, 21 June 2015 (UTC)Reply
I do not understand every thread in this so called Phabricator, it is far to technical. Will it be possible to see in for example s:sv:Bibeln (Karl XII) which items is used in that page today? It's currently ~50 items involved (today, it will be more), who together creates the intra- and interwiki to that page. -- Innocent bystander (talk) 09:23, 21 June 2015 (UTC)Reply
Yeah that's the plan. --Lydia Pintscher (WMDE) (talk) 09:32, 21 June 2015 (UTC)Reply

Commons edit

Is there a preliminary date for rollout on Commons? /André Costa (WMSE) (talk) 12:45, 22 June 2015 (UTC)Reply

Not yet. We have to fix a few remaining issues with multilingual wikis. It'll be after Wikimania. --Lydia Pintscher (WMDE) (talk) 16:23, 22 June 2015 (UTC)Reply
@André, gissar att du läste mitt svar på WF. Har du sett någon åsikt på Commons i ämnet? -- Innocent bystander (talk) 16:27, 22 June 2015 (UTC)Reply
Thanks for the update and quick answer.
@Innocent bystander Faktiskt inte. Det var en twitterfråga om commons:Template:Authority control som fick mig att fundera. /André Costa (WMSE) (talk) 12:41, 24 June 2015 (UTC)Reply

Lit norsk edit

This edit, makes a strange statement. The source in the diff tells it's about nowiki, but it looks to me the item used in this page is about "Norwegian Wikipedia", and there is no such project here today. There is a Norwegian Wikisource, but no Norwegian Wikipedia. -- Innocent bystander (talk) 18:05, 5 July 2015 (UTC)Reply

Someone should create nowiki item then if it doesn't exist yet? --Stryn (talk) 18:33, 5 July 2015 (UTC)Reply
Those who know more languages than me, should look into the sitelinks in this item, to see which are about Bokmål only, and which are about Nynorsk only (if any) and which are about both. The Swedish article is definitily about both of them.
In contrast nowikisource is both nb and nn and other Scaninavian texts published in Norway (but not Sami or Finnish). The principle is the same in other Scandinavian Wikisources. It does not matter if the text is in Icelandic. As long as the text was published in Sweden, it is within the scope of svwikisource. This, since nobody can see any significant difference between middle age versions of these languages. -- Innocent bystander (talk) 18:44, 5 July 2015 (UTC)Reply

Use cases: testing modules and templates edit

I made two use cases for arbitrary access on nl.wikipedia.

PS: Wikidata is not used on nl.wikipedia (yet?). This is just playing around with the new possibilities. HenkvD (talk) 12:26, 18 July 2015 (UTC)Reply

One success case; one question edit

Success case. I'm now using arbitrary access quite successfully on the Judeo-Spanish (Ladino) Wikipedia. See Wikidata:WikiProject Cross Items Interwikis, and look at solutions, item #5, to see what I'm doing. It's working extremely well. I'm now able to offer a full set of interwiki links on articles that cannot be directly linked to a (main) Wikidata item. And you can use it to solve a portion of the Bonnie-and-Clyde problems, as well. Question. I'd like to be able to make indirect Wikidata calls. Here's what I mean. On the Ladino page on the State of Israel (lad:Medinat Yisrael), I now have most of the data in the infobox coming from Wikidata calls. I use a Wikidata call to get head of government (P6) = "Benjamin Netanyahu". I use a separate wikidata call, using member of political party (P102), and using the parameter |from=Q43723 to get Netanyahu's party (Likud). What I'd like to be able to do is the equivalent of the following: "political party of prime minister" =
{{#property:P102|from={{#property:P6}} }}, so that if Isaac Herzog takes over, the party will flip over to "Labor" without my intervention. I gather one needs a Lua module to do so. What Lua module, and how? Thanks. StevenJ81 (talk) 13:54, 19 August 2015 (UTC)Reply

This is exactly what I want to do as well. But it does not look like it is possible, is it? Only hardcoded Q-numbers seems to work. /ℇsquilo 10:46, 17 September 2015 (UTC)Reply

English Wikipedia rollout edit

We are chomping at the bit here. Any revised estimates for rollout time ?

I hope to have a new date tomorrow. --Lydia Pintscher (WMDE) (talk) 16:58, 31 August 2015 (UTC)Reply
Would be very handy to know today ;). --I9606 (talk) 19:02, 1 September 2015 (UTC)Reply
We'll do it on 16th of September now. I'll send out announcements in a bit. --Lydia Pintscher (WMDE) (talk) 11:41, 2 September 2015 (UTC)Reply

Accessing qualifiers edit

Is there a way to access publication date under software version on Notepad++ with #property: or something else? --Mavrikant (talk) 00:53, 9 September 2015 (UTC)Reply

The property parser function does not give you access to the qualifiers. That needs Lua. --Lydia Pintscher (WMDE) (talk) 06:59, 9 September 2015 (UTC)Reply

Watchlist entries when arbitrary access is used edit

I've noticed that watchlist entries are a little confusing when arbitrary access is used. For example Germany (Q183) is used on en:Wikipedia:Wikidata as an example. I am watching the latter page. When Germany (Q183) is modified I get an entry on my watchlist, which is appropriate. But the entry was as follows:

  • Wikipedia:Wikidata (Q183); 18:42 . . Olaf Kosinsky (talk | contribs) (2 changes)

which made me think the page was linked incorrectly. Perhaps the following would be more intuitive?

  • Germany (Q183); 18:42 . . Olaf Kosinsky (talk | contribs) (2 changes)

Thoughts? MSGJ (talk) 19:25, 27 September 2015 (UTC)Reply

It is confusing but showing the latter is confusing as well because you cannot see what page the change affected (if you have many on your watchlist). A task for this already exists. Matěj Suchánek (talk) 19:48, 27 September 2015 (UTC)Reply

Rollout edit

Arbitrary access has not been rolled out on Commons, has it? If not, when will it be (if ever)? /ℇsquilo 13:40, 1 November 2015 (UTC)Reply

@Lydia Pintscher (WMDE), Esquilo: Last thing I heard, was that they wanted to solve some issues with multilanguages-wikis. -- Innocent bystander (talk) 07:03, 2 November 2015 (UTC)Reply
It would be really great if we could replace those huge {{langSwitch}} tables like {{Bronze}} and {{Stockholm}} with data from Wikidata instead. /ℇsquilo 08:08, 2 November 2015 (UTC)Reply
Yeah still some blockers to remove :( --Lydia Pintscher (WMDE) (talk) 10:00, 2 November 2015 (UTC)Reply

Parser function syntax edit

Where can I find more information about how to use the {{#property:}} parser function? Specifically, how can I select a path of multiple items? For example, to get the census date of a population count. I tried a few possible options:

  • {{#property:P585|from=P1082|from=Q47034}} - produces a warning about multiple 'from' arguments
  • {{#property:P585|from=Q47034:P1082}} - no output
  • {{#property:P585|from=Q47034.P1082}} - no output
  • {{#property:P585|from=Q47034/P1082}} - no output

Alternative question: how can I get the itemId of a property? This would allow nested calls, like: {{#property:P585|from={{#itemId:P1082|from=Q47034}}}}. --Bdijkstra (talk) 10:33, 9 August 2016 (UTC)Reply

There is no output (at least this is one reason), because Q47034 don´t have a property P858. A {{#property:P1082|from=Q47034}} returns "262,140". About nested calls: {{#property:P17|from=Q47034}} returns "Finland", not the item number. I´m not sure if there are other words like "from", because there are better ways to use Wikidata. Maybe what you are looking for is Module:Wikidata. There are lots of Wikidata Modules and I´m sure there is one in your Wikipedia too. --Molarus 13:33, 9 August 2016 (UTC)Reply
I wasn't looking for property P858 of Q47034, I was looking for P858 of P1082 of Q47034, hence the first option I tried. Apparently a property of a property is called a "qualifier". Anyway, my Wikipedia does indeed have a Module:Wikidata that supports fetching qualifier data. So thanks! --Bdijkstra (talk) 14:35, 9 August 2016 (UTC)Reply
I'm also interested in the full documentation about {{#property}} --Valerio Bozzolan (talk) 00:26, 2 March 2017 (UTC)Reply
Return to the project page "Arbitrary access".