99of9 added a comment.
Here's my similar first-step idea. You are browsing the web, and find a page on any other site about an item that should have a Wikidata item. You click a bookmarklet, which instantly tells you in a side panel which identifier property should be linked, and if it is linked, which Wikidata item the ID is linked from. The idea was spurred by User:rdmpage in this video <https://www.youtube.com/watch?v=yrlskGRFKps> (thanks!). As far as I can see it should be technically possible, but I'm sure you friendly hivemind can improve dramatically on this in-principle sketch: Bookmarklet runs javascript to open a side panel or overlay div, in which the content is an iframe containing an auto-running WDQS query which takes a single input, the current URL. The SPARQL query finds out whether that URL matches a formatter URL (P1630 <https://phabricator.wikimedia.org/P1630>) or a third-party formatter URL (P3303 <https://phabricator.wikimedia.org/P3303>), and if so, extracts the ID from the URL. Then it queries whether that ID is listed for that property, and returns the Wikidata item(s) with that ID for that property. QED. I've worked on this a bit, and while I'm good enough at SPARQL, and have written a working demonstration query <https://w.wiki/XEK>, (this shows the result from 4 different URLs - I'm aware that it doesn't work for *all* URL schemes, but I think it already covers over 90% of them). I don't have sufficient .js skills to get the bookmarklet working at the moment, and I'm sure some of you can do a much better job anyway. TASK DETAIL https://phabricator.wikimedia.org/T253201 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: 99of9 Cc: 99of9, Aklapper, Lydia_Pintscher, Akuckartz, darthmon_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs