Jump to content

Wikipedia talk:Wikidata: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
m Archiving 1 discussion(s) to Wikipedia talk:Wikidata/Archive 5) (bot
m Archiving 1 discussion(s) to Wikipedia talk:Wikidata/Archive 6) (bot
 
(48 intermediate revisions by 18 users not shown)
Line 1: Line 1:
{{sh|WT:WD|WT:DATA}}
{{WikiProject banner shell|
{{WikiProject Wikidata}}
{{WikiProject Wikidata}}
}}
{{User:MiszaBot/config
{{User:MiszaBot/config
|archiveheader = {{talkarchivenav}}
|archiveheader = {{talkarchivenav}}
|maxarchivesize = 75K
|maxarchivesize = 75K
|counter = 5
|counter = 6
|minthreadsleft = 3
|minthreadsleft = 4
|minthreadstoarchive = 1
|minthreadstoarchive = 1
|algo = old(60d)
|algo = old(180d)
|archive = Wikipedia talk:Wikidata/Archive %(counter)d
|archive = Wikipedia talk:Wikidata/Archive %(counter)d
}}
}}
{{archives|search=yes|[[Wikipedia talk:Wikidata/Workflow|/Workflow]]|auto=long}}
{{archives|search=yes|[[Wikipedia talk:Wikidata/Workflow|/Workflow]]|auto=long}}


== Question ==
== Parsing links ==


In the "using wikidata in Wikipedia articles" section, under parsing data, it says that using the statements function doesn't returns a link if the link is a redirect. The example itself is untrue, as calling for that Egyptologist data will indeed return a redirect link to Egyptology (as clearly shown around 2 lines later...). Is the whole statement untrue, or is there some qualification missing? Either way, it needs to be edited. <span style="background:#636363;border:solid#636363 1x;border-radius:15px;">'''[[User:JoeJShmo|<span style="color:#ffadbe">Jo</span><span style="color:#dbafff">e</span><span style="color:#afd0ff">J</span><span style="color:#aafff8">Sh</span><span style="color:#b6fcd5">mo</span>]]'''[[User talk:JoeJShmo|<sup><span style="transform:rotate(25deg);display:inline-block;">💌</span></sup>]]</span> 21:20, 26 July 2024 (UTC)
Is there a way to see if a page has a Wikidata item without going to the page itself? —<span style="font-size:12pt;font-family:Tw Cen MT;color:black">[[User:HueMan1|hueman1]] ([[User talk:HueMan1|<small>talk</small>]] <small>•</small> [[Special:Contributions/HueMan1|<small>contributions</small>]])</span> 08:17, 28 February 2021 (UTC)

:You could use [https://query.wikidata.org/ the Wikidata SPARQL query endpoint], and write this query:
== Using getAllStatements ==
{{SPARQL|query=SELECT ?item WHERE {

?sitelink schema:about ?item;
On [[Module:Authority control]] we are currently reading the Wikidata item of an article about 150 times for each separate identifier using <code>getBestStatements</code>. I am wondering if it would be more efficient to extract all the statements in one go using <code>getAllStatements</code> and then process them with Lua. Does anyone have any insight into this? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 09:16, 11 September 2024 (UTC)
schema:isPartOf <https://en.wikipedia.org/>;

schema:name 'Severe acute respiratory syndrome coronavirus 2'@en.
:Cross-posted to [[mw:Extension talk:Wikibase Client/Lua]] &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 15:56, 13 September 2024 (UTC)
}
}}
--[[User:SCIdude|SCIdude]] ([[User talk:SCIdude|talk]]) 16:37, 28 February 2021 (UTC)
:You could also use the Wikidata search endpoint. e.g. to see if there's a wikidata item for the English wikipedia article with title [[Fox tossing]], you can use the URL https://www.wikidata.org/wiki/Special:ItemByTitle?site=enwiki&page=Fox+tossing [[User:Colin M|Colin M]] ([[User talk:Colin M|talk]]) 19:28, 7 May 2021 (UTC)


== Interlanguage links for redirects ==
==External links to library resources: RfC==
A Request for Comment on external links to library resources, which relates to this topic, has started: [[Wikipedia talk:External links#RfC: External links to library resources]]. Opinions, knowledge, and suggestions are sought. Please join in. [[User:SilkTork|SilkTork]] ([[User talk:SilkTork|talk]]) 10:35, 3 July 2021 (UTC)


{{ping|MSGJ}} could you describe the up-to-date practice for using redirects in interlanguage links, please? thanks! [[User:Fgnievinski|fgnievinski]] ([[User talk:Fgnievinski|talk]]) 01:06, 28 September 2024 (UTC)
== WikidataCon 2021 ==


:I've reread [[:wikidata:Wikidata:Sitelinks_to_redirects#To_enter_a_sitelink_to_a_redirect_select_the_badge_first]] and I get it now; I've now updated the explanation at [[:en:Wikipedia:Wikidata]]. [[User:Fgnievinski|fgnievinski]] ([[User talk:Fgnievinski|talk]]) 04:59, 28 September 2024 (UTC)
Hi all. I'm posting here as a co-curator of the 'Sister projects' track for WikidataCon 2021, which will take place online on 29-31 October 2021. The conference website is at [https://www.wikidata.org/wiki/Wikidata:WikidataCon_2021].
:For some reason I did not receive any notification of this post. But I'm glad you sorted it &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 10:02, 30 September 2024 (UTC)
::Pings don't work unless you [https://en.wikipedia.org/enwiki/w/index.php?title=Wikipedia_talk:Wikidata&diff=next&oldid=1248163862 sign at the same time] &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 10:03, 30 September 2024 (UTC)


== "Wikidata item" link is missing from side panel "Tools" ==
Integration with Wikidata is a controversial topic here, and we would like to talk about both the pros and cons of Wikidata integration with the other Wikimedia projects during this conference. Whether you like Wikidata or not, please consider submitting a session proposal to explore the issues that you are most interested in.


The article says "From a Wikipedia page, you can go to the link "Wikidata item", using "Tools" in the side panel" but my interface does not show the "Wikidata item" link. I am using an ipad in desktop mode, default skin. I worked around this problem by making the desired change on the Wikidata website but surely I am not the only person having this problem? [[User:T g7|T g7]] ([[User talk:T g7|talk]]) 09:35, 27 October 2024 (UTC)
You can find information about how to submit a session proposal at [https://www.wikidata.org/wiki/Wikidata:WikidataCon_2021/Program/Day_2_and_3_-_Community_tracks#Propose_a_session], and you can access the submission form at [https://pretalx.com/wdcon21/submit/]. Please submit a session proposal through the Pretalx process so that we can review and schedule it appropriately - and make sure to mark it as a 'Sister projects' track proposal. Please note that we cannot accept a session outside of the Pretalx process. We also encourage you to submit talks to other tracks if you are interested!


Note that the deadline for submitting proposals is the 20th October - sorry for the short notice! Thanks. [[User:Mike Peel|Mike Peel]] ([[User talk:Mike Peel|talk]]) 19:45, 15 October 2021 (UTC)
:In the last few days, the link has been moved to the "in other projects" section of the side panel &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 21:30, 27 October 2024 (UTC)

Latest revision as of 06:31, 28 October 2024

[edit]

In the "using wikidata in Wikipedia articles" section, under parsing data, it says that using the statements function doesn't returns a link if the link is a redirect. The example itself is untrue, as calling for that Egyptologist data will indeed return a redirect link to Egyptology (as clearly shown around 2 lines later...). Is the whole statement untrue, or is there some qualification missing? Either way, it needs to be edited. JoeJShmo💌 21:20, 26 July 2024 (UTC)[reply]

Using getAllStatements

[edit]

On Module:Authority control we are currently reading the Wikidata item of an article about 150 times for each separate identifier using getBestStatements. I am wondering if it would be more efficient to extract all the statements in one go using getAllStatements and then process them with Lua. Does anyone have any insight into this? — Martin (MSGJ · talk) 09:16, 11 September 2024 (UTC)[reply]

Cross-posted to mw:Extension talk:Wikibase Client/Lua — Martin (MSGJ · talk) 15:56, 13 September 2024 (UTC)[reply]
[edit]

@MSGJ: could you describe the up-to-date practice for using redirects in interlanguage links, please? thanks! fgnievinski (talk) 01:06, 28 September 2024 (UTC)[reply]

I've reread wikidata:Wikidata:Sitelinks_to_redirects#To_enter_a_sitelink_to_a_redirect_select_the_badge_first and I get it now; I've now updated the explanation at en:Wikipedia:Wikidata. fgnievinski (talk) 04:59, 28 September 2024 (UTC)[reply]
For some reason I did not receive any notification of this post. But I'm glad you sorted it — Martin (MSGJ · talk) 10:02, 30 September 2024 (UTC)[reply]
Pings don't work unless you sign at the same time — Martin (MSGJ · talk) 10:03, 30 September 2024 (UTC)[reply]
[edit]

The article says "From a Wikipedia page, you can go to the link "Wikidata item", using "Tools" in the side panel" but my interface does not show the "Wikidata item" link. I am using an ipad in desktop mode, default skin. I worked around this problem by making the desired change on the Wikidata website but surely I am not the only person having this problem? T g7 (talk) 09:35, 27 October 2024 (UTC)[reply]

In the last few days, the link has been moved to the "in other projects" section of the side panel — Martin (MSGJ · talk) 21:30, 27 October 2024 (UTC)[reply]