Hi all,allow me to share a federated query that can be run in my wikibase setup:PREFIX kp:<https://kg.kunsten.be/entity/>
PREFIX kpp:<https://kg.kunsten.be/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?agent ?agentLabel ?wikidata ?gps
BIND(URI(CONCAT(STR(wd:), ?wikidata)) AS ?wd)
SERVICE <https://query.wikidata.org/sparql> {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nl,en" . }
As you can see:- the federation to wikidata happens via the SERVICE command- James, instead of referring to a URL, I am using the external identifier typeHope that helps?Bye,Tom_______________________________________________Op za 17 aug 2024 om 21:51 schreef James Hare <jamesmhare@gmail.com>:_______________________________________________I operate a Wikibase of domain names: <https://domains.wikibase.cloud/wiki/Project:Home>.
If Wikidata is organized around concepts, this Wikibase is organized around domain names which are then linked back to their Wikidata ID. For example, you can see that the item for "cnn.com" <https://domains.wikibase.cloud/wiki/Item:Q146> links back to the Wikidata item on the underlying publication <https://www.wikidata.org/wiki/Q12217473>.
Rather than create items locally for different countries, I use the Wikidata ID for the country: <https://domains.wikibase.cloud/wiki/Property:P27>. This is used to indicate on the "cdc.gov" item that it is a resource that comes from the United States <https://domains.wikibase.cloud/wiki/Item:Q136#P27>.
You can then use that Wikidata URI in a SPARQL query to identify other items annotated with that country value: <https://domains.wikibase.cloud/query/#PREFIX%20wdt%3A%20%3Chttps%3A%2F%2Fdomains.wikibase.cloud%2Fprop%2Fdirect%2F%3E%0ASELECT%20DISTINCT%20%3Furl%0AWHERE%20%7B%0A%20%20%20%20%3Fitem%20wdt%3AP1%20%3Furl%20.%0A%20%20%20%20%3Fitem%20wdt%3AP27%20%3Chttp%3A%2F%2Fwww.wikidata.org%2Fentity%2FQ30%3E%20.%0A%7D>.
This does not represent full interoperability between the two, but rather, how to get that baseline functionality. If I were to integrate it more deeply into Wikidata, I would do these two things:
(1) Create a combined query service with Wikidata and this dataset as well. Right now, if I want to incorporate Wikidata into my Domains Wikibase query, I need to know which exact Wikidata URI I am working with, or I would need to bring in the Wikidata Query Service as an external service within my SPARQL query (which is doable, but slower, plus you're liable to Wikidata Query Service timeouts if you don't have your own endpoint like I do). I would like to at some point operate a combined query service with these additional data sources but I haven't gotten around to creating it yet.
(2) Develop an interface extension to remotely load Wikidata statements on a local Wikibase. Internet Domains Wikibase, for example, has a sub item representing the English language <https://domains.wikibase.cloud/wiki/Item:Q22240>, a designated "exact match" of <https://www.wikidata.org/wiki/Q1860>. Such an interface extension would look up statements from Wikidata Q1860 and present them on the Internet Domains Wikibase item so that you don't have to leave that page.
I believe pulling Wikidata dynamically from the frontend, coupled with a combined query service, would be the most effective way to build a Wikibase that is a logical extension of Wikidata. If anyone is interested in making this happen, I am eager to discuss more.
Thank you,James HareOn Aug 11, 2024 at 8:50 AM -0700, Jessica Gengler <jessica@mhzfoundation.org>, wrote:
Hello,_______________________________________________Our organization currently uses Wikidata subject terms for our taxonomy, but we apply them manually. We are researching setting up a Wikibase, but I am curious about the interoperability with Wikidata.Does anyone have any examples of a Wikibase instance that is interoperable with Wikidata?
Thank you,
--
JESSICA GENGLER
Digital Archivist | MHz Foundation
Email: jessica@mhzfoundation.org
Website: www.curationist.org
Social: Instagram | Twitter | Medium
MHz Curationist is a project of the MHz Foundation.
Wikibase Community User Group mailing list -- wikibaseug@lists.wikimedia.org
To unsubscribe send an email to wikibaseug-leave@lists.wikimedia.org
Wikibase Community User Group mailing list -- wikibaseug@lists.wikimedia.org
To unsubscribe send an email to wikibaseug-leave@lists.wikimedia.org
Wikibase Community User Group mailing list -- wikibaseug@lists.wikimedia.org
To unsubscribe send an email to wikibaseug-leave@lists.wikimedia.org
Unsere Vision ist eine Welt, in der alle Menschen am Wissen der Menschheit teilhaben, es nutzen und mehren können. Helfen Sie uns dabei!
Imagine a world in which every single human being can freely share in the sum of all knowledge. Help us to achieve our vision!
Wikimedia Deutschland — Gesellschaft zur Förderung Freien Wissens e. V. Eingetragen im Vereinsregister des Amtsgerichts Charlottenburg, VR 23855 B. Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin, Steuernummer 27/029/42207. Geschäftsführende Vorstände: Franziska Heine, Dr. Christian Humborg