Hello! If you're fine with this, I'll keep communicating about this specific project on this page, so we can coordinate about details. Of course, for big announcements, I'll still reach the community via the Beer Parlour :)
Reminder: once it is activated, the "arbitrary access" will allow you to call and display any kind of Wikidata data on English Wiktionary: labels, descriptions, values of the statements... This will allow you to create new tools and templates reusing the structured data that is already in Wikidata. For example, we mentioned a nice example to start with: in a Citation page, instead of writing by hand the name of a book, its author, date of publication, etc, it will be possible to display directly this information with adding only the ID of the work.
Disclaimer: for now, Wikidata contains only data about concepts, not about words. This will exist in the future with the lexicographical data project, but for now, our goal is not to add lexicographical data in Wikidata. Therefore, you should not create data about words in Wikidata.
Date: After talking with the developers and taking in account a few this in our schedule (Wikimania, summer vacations, etc.) I suggest to set up the day of enabling arbitrary access to Thursday, September 7th.
In the meantime, we should work on the documentation, so the Wiktionary editors understand how it works. I'll come back to you very soon with existing documentation, so we can adapt it to special needs of Wiktionary.
Is that fine for you? If you have any question remaining, feel free to ask! Lea Lacroix (WMDE) (talk) 13:46, 1 August 2017 (UTC)
Hello all,
During Wikimania, Lydia presented the status of the lexicographical data on Wikidata. You can find the slides here.
We're also happy to announce that there is now a demo system ready, where you can try structured lexicographical data as it will appear on Wikidata. Please note the following:
Feel free to try it, give us feedback or ask questions. See also the Phabricator board. Thanks for your support! Lea Lacroix (WMDE) (talk) 14:13, 14 August 2017 (UTC)
Hello all,
In preparation for enabling Wikidata data access on Wiktionary (and also because it was needed for other projects), I started this documentation page: d:Wikidata:How to use data on Wikimedia projects. It's on Wikidata now, but we could also have a version on English Wiktionary, with, in the future, the documentation of the specific uses, templates, etc. that you would create using the data.
For now, I'd love to have your feedback on this page. If you don't understand something, if you feel that something is missing, if you have any question that this page should answer to... let me know, and we'll improve it!
Also, if you want to start making tests with #statements property, since you can't yet on English Wiktionary, you can for example try it on a subpage of your userpage on Wikidata. I just tried to model an example on my test page.
What do you think? Lea Lacroix (WMDE) (talk) 15:29, 17 August 2017 (UTC)
Hello,
On top of the documentation on how to include Wikidata data, I created a rough example on how you could display information from Wikidata on Wiktionary, based on a Moby-Dick citation. This is not completed, some data may be missing in the item describing the edition, and when the parser function is not doing exactly what we expect, we should consider using Lua to make more accurate templates.
Feel free to give feedback or ask any question. As a reminder, the access to Wikidata data will be enabled on English Wiktionary on September 7th. Lea Lacroix (WMDE) (talk) 13:11, 1 September 2017 (UTC)
Hello,
You can now access Wikidata data from English Wiktionary :)
As a test, I copied my previous example to my userpage on en.wkt. You can make tests on your own! Feel free to add information on this page, when you start using Wikidata data, we would appreciate to know how the data is useful to you, what questions or problems you may have.
You can find documentation about the simple parser function and other methods to reuse data. If some information is missing, feel free to mention me!
Reminder: for now, Wikidata contains only data about concepts, not about words. This will exist in the future with the lexicographical data project, but for now, our goal is not to add lexicographical data in Wikidata. Therefore, you should not create data about words in Wikidata.
Thanks, Lea Lacroix (WMDE) (talk) 15:17, 7 September 2017 (UTC)
{{#statements:
parser function. Presumably, the wikibase.getEntity()
function in Lua is equivalent to this. On the documentation for the latter, it says it's expensive to call if you use it with an id other than that of the current page. Does this also apply to the parser function version? Also, since currently none of our entry pages are connected to any Wikidata item, all uses of Wikidata will be expensive. This is obviously not desirable for large-scale use. Arbitrary access without limit is pretty essential for us to be able to use the data. How can this be remedied? —Rua (mew) 20:04, 7 September 2017 (UTC)
{{#statements:(property name)|from=(entity id)}}
. For example, with d:Q31 for Belgium: {{#statements:official language|from=Q31}}
→ Dutch, French, German. If there are multiple values, you get a comma-separated list, which is probably not very useful except for directly displaying it on a page. The Lua-based functions are much more useful, though also more complicated to use. —Rua (mew) 20:44, 7 September 2017 (UTC)
{{#label:en|from=Q283}}
= water. Parser functions should probably only be used sparingly anyway. – Jberkel (talk) 20:59, 7 September 2017 (UTC)
{{#if:
s, {{#ifeq:
s and {{#switch:
es. It just seems that the Wikidata ones aren't particularly useful for doing more than generating Wikitext output. Doing something like "is this item a chemical element" and then showing different output is much more difficult. With Lua this is pretty easy, see below. —Rua (mew) 21:03, 7 September 2017 (UTC)
In the past, I added {{senseid}}
with a Wikidata id to a bunch of pages. Now, I've modified Module:senseid so that it transcludes one of two tracking templates, depending on whether the given Wikidata item is a country or not. And it appears to work, compare Special:WhatLinksHere/Template:tracking/senseid/Wikidata/country and Special:WhatLinksHere/Template:tracking/senseid/Wikidata/not_country. A few like Czechoslovakia are considered by Wikidata to be "former country" which is a different id so those get sorted under non-countries at the moment. Some others appear to be errors, like Rwanda, but are actually accurate: they are sorted as countries, but multiple senses have ids and not all of them are of countries. In the case of Rwanda, it's also a language.
A possibility that opens up from this is allowing {{senseid}}
(or some new template) to automatically figure out what kind of thing the definition is about, and then placing it in the appropriate categories. For example, modifying {{senseid}}
so that it categorises the countries in Category:en:Countries is now trivial. Of course we'd rather categorise them by continent, but the basic idea is there.
(Technical note: What I did here technically breaks the WT:Wikidata policy, since I modified a live and in-use template. However, all it does is add tracking templates, it doesn't functionally change the template in any other way. I think a 5th exception should be added to the list, which is to allow Wikidata to be used in live templates as long as they only affect the addition of tracking templates, tracking categories, or other diagnostic data.) —Rua (mew) 21:00, 7 September 2017 (UTC)
{{pedia}}
template, because most Wikipedia articles are associated with a Wikidata item. For example honey links to Honey which is connected to d:Q10987. – Jberkel (talk) 07:51, 8 September 2017 (UTC)
I've done some more work and now have the following tracking templates, which can be considered to stand in for existing topical categories:
Any senses that can't be placed in any of these categories are in Special:WhatLinksHere/Template:tracking/senseid/Wikidata/nothing. —Rua (mew) 14:25, 8 September 2017 (UTC)
{{senseid}}
be good? Should we create a new template instead? If so, should we abandon the idea of Wikidata senseids as unique identifiers for senses and their translation tables? —Rua (mew) 19:23, 9 September 2017 (UTC)
{{senseid}}
or another template/module. I support using Wikidata senseids as senses when possible. Naturally, in case someone is wondering, Wikidata senseids can't be used in all senses, like the green (adjective) vs. green (noun) that we discussed in the past. --Daniel Carrero (talk) 21:54, 9 September 2017 (UTC)
I have created Template:Wikidata entity link. It is widely used in all projects for linking to Wikidata in discussion pages. It is generally used with the shortcut {{Q}}
but here it is used for quotations. It shows the label in user language preference site language and its id. Example requested above: {{Wikidata entity link|Q283}}
=
water (Q283). --Vriullop (talk) 11:11, 9 September 2017 (UTC)
Are there wikidata items for English Wiktionary words? MHC HumanImmuneSystem (talk) 07:47, 19 October 2017 (UTC)
Hello all,
@Daniel Carrero, Jberkel, CodeCat, Vriullop
The arbitrary access to Wikidata data on English Wiktionary has been enable 6 months ago. I'm very interested to know what you had the opportunity to do with it, which problems you encountered, and so on. I'd really appreciate if you would take the time to answer some (not necessarily all) of these questions:
Feel free to add links, screenshots, etc. so I can understand better what you've been working on.
Thanks in advance for your feedback! Lea Lacroix (WMDE) (talk) 13:34, 7 March 2018 (UTC)
Hello all,
Here are some short news about the progress on lexicographical data on Wikidata:
If you have some feedback, feel free to ping me. Lea Lacroix (WMDE) (talk) 12:15, 18 April 2018 (UTC)