Wikidata:Project chat: Difference between revisions

Content deleted Content added
Pigsonthewing (talk | contribs)
→‎Dict: protocol: @Infrastruktur
Pigsonthewing (talk | contribs)
Line 108:
:Had a quick look at it. I guess dict protocol makes more sense for Wikipedia and Wiktionary than it does for Wikidata, as Wikidata doesn't have short definitions. Seems most dict servers serve a unicode text file that consists of a key-value pair of dictionary entry and its definition. If we don't expect much traffic I think an approach where we skip compiling a dictionary and merely act as a gateway transforming the first paragraph of Wikipedia articles into pure text, stripping out any templates, should be sufficient. Might also scrap the plan to use D for this and just use good old Python. Looks like lookups will also be exact, so no search suggestions or anything like that. No user authentication required either, but people might like support for encryption.
:On a related note I use bang codes in my browser bar to look up stuff. If DuckDuckGo is configured you can just type "!wd Q12345", "!wen Marco Polo" or "!mw gourd" to look up stuff quick. Lots of dictionaries supported [https://duckduckgo.com/bangs]. [[User:Infrastruktur|Infrastruktur]] ([[User talk:Infrastruktur|<span class="signature-talk">{{int:Talkpagelinktext}}</span>]]) 17:45, 25 September 2024 (UTC)
::{{Ping|Infrastruktur}} {{Tq|1="Wikidata doesn't have short definitions"}} On {{L|L4517}} I can see "milk-based food product". <span class="vcard"><span class="fn">[[User:Pigsonthewing|Andy Mabbett]]</span> (<span class="nickname">Pigsonthewing</span>); [[User talk:Pigsonthewing|Talk to Andy]]; [[Special:Contributions/Pigsonthewing|Andy's edits]]</span> 20:04, 25 September 2024 (UTC)
 
== {{Q|743004}} and models (also many classes similar to {{Q|743004}}) ==