Hello!
I need some help. We are running a private wikibase and we are very happy with it. Since recently we are accessing the wiki via java using the wikidata toolkit. We want to search for an entity ID given the title. The problem is the parameter sitekey.
The question is. In the API of wbgetentities
(https://www.mediawiki.org/wiki/Wikibase/API) what is the value of the
site
parameter for our private wiki.
If I remember correctly we installed the wikibase following these instructions:
https://www.mediawiki.org/wiki/Wikibase/Installation
Thank you Dennis
http://laboratoirehubertcurien.fr/ Dennis DIEFENBACH Doctorand dennis.diefenbach@univ-st-etienne.fr mailto:dennis.diefenbach@univ-st-etienne.fr Laboratoire Hubert Curien Campus Manufacture 18 RUE Pr Benoît Lauras 42000 SAINT-ETIENNE 04 77 91 57 80 http://laboratoirehubertcurien.fr http://laboratoirehubertcurien.fr/ http://www.univ-st-etienne.fr/ http://www.facebook.com/Universite.Jean.Monnet.Saint.Etienne https://twitter.com/Univ_St_Etienne https://www.youtube.com/user/UniJeanMonnetUJM https://www.linkedin.com/edu/universit%C3%A9-jean-monnet-saint-etienne-12533 http://www.viadeo.com/fr/company/universite-jean-monnet http://www.universite-lyon.fr/
On Mon, Mar 19, 2018 at 11:27 AM, Dennis Diefenbach < dennis.diefenbach@univ-st-etienne.fr> wrote:
Hello!
I need some help. We are running a private wikibase and we are very happy with it. Since recently we are accessing the wiki via java using the wikidata toolkit. We want to search for an entity ID given the title. The problem is the parameter sitekey.
The question is. In the API of wbgetentities
(https://www.mediawiki.org/wiki/Wikibase/API) what is the value of the
site
parameter for our private wiki.
If I remember correctly we installed the wikibase following these instructions:
https://www.mediawiki.org/wiki/Wikibase/Installation
Thank you Dennis
Hey Dennis,
Can you give us a concrete example of what you want to get please?
Cheers Lydia
Hi!
Here an example …. Imagine I search for the identifiers of entities called “Barack Obama”. In Wikidata I would do:
api.php?action=wbgetentities&sites=enwiki&titles=Barack_Obama&format=jsonfm
So for wikidata I would put “enwiki”. But what do I put as a parameter for my private wiki? Where is this defined?
Thank you Dennis
http://laboratoirehubertcurien.fr/ Dennis DIEFENBACH Doctorand dennis.diefenbach@univ-st-etienne.fr mailto:dennis.diefenbach@univ-st-etienne.fr Laboratoire Hubert Curien Campus Manufacture 18 RUE Pr Benoît Lauras 42000 SAINT-ETIENNE 04 77 91 57 80 http://laboratoirehubertcurien.fr http://laboratoirehubertcurien.fr/ http://www.univ-st-etienne.fr/ http://www.facebook.com/Universite.Jean.Monnet.Saint.Etienne https://twitter.com/Univ_St_Etienne https://www.youtube.com/user/UniJeanMonnetUJM https://www.linkedin.com/edu/universit%C3%A9-jean-monnet-saint-etienne-12533 http://www.viadeo.com/fr/company/universite-jean-monnet http://www.universite-lyon.fr/
On 20. Mar 2018, at 18:31, Lydia Pintscher lydia.pintscher@wikimedia.de wrote:
On Mon, Mar 19, 2018 at 11:27 AM, Dennis Diefenbach < dennis.diefenbach@univ-st-etienne.fr> wrote:
Hello!
I need some help. We are running a private wikibase and we are very happy with it. Since recently we are accessing the wiki via java using the wikidata toolkit. We want to search for an entity ID given the title. The problem is the parameter sitekey.
The question is. In the API of wbgetentities
(https://www.mediawiki.org/wiki/Wikibase/API) what is the value of the
site
parameter for our private wiki.
If I remember correctly we installed the wikibase following these instructions:
https://www.mediawiki.org/wiki/Wikibase/Installation
Thank you Dennis
Hey Dennis,
Can you give us a concrete example of what you want to get please?
Cheers Lydia
-- Lydia Pintscher - http://about.me/lydia.pintscher Product Manager for Wikidata
Wikimedia Deutschland e.V. Tempelhofer Ufer 23-24 10963 Berlin www.wikimedia.de
Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V.
Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter der Nummer 23855 Nz. Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin, Steuernummer 27/029/42207. _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On Tue, Mar 20, 2018 at 6:36 PM, Dennis Diefenbach < dennis.diefenbach@univ-st-etienne.fr> wrote:
Hi!
Here an example …. Imagine I search for the identifiers of entities called “Barack Obama”. In Wikidata I would do:
api.php?action=wbgetentities&sites=enwiki&titles=Barack_ Obama&format=jsonfm
So for wikidata I would put “enwiki”. But what do I put as a parameter for my private wiki? Where is this defined?
Ok thanks. It seems like what you want to do is get the list of items that have the label "Barack Obama". For this you need to use wbsearchentities. wbgetentities gives you the data from the item connected to a given article (in your case the English Wikipedia Article about Barack Obama). Hope that helps.
Cheers Lydia
Hi!
Thank you! So stupid, I wanted to use the wrong method in the Wikidata Toolkit.
Have a nice evening! Salut Dennis
http://laboratoirehubertcurien.fr/ Dennis DIEFENBACH Doctorand dennis.diefenbach@univ-st-etienne.fr mailto:dennis.diefenbach@univ-st-etienne.fr Laboratoire Hubert Curien Campus Manufacture 18 RUE Pr Benoît Lauras 42000 SAINT-ETIENNE 04 77 91 57 80 http://laboratoirehubertcurien.fr http://laboratoirehubertcurien.fr/ http://www.univ-st-etienne.fr/ http://www.facebook.com/Universite.Jean.Monnet.Saint.Etienne https://twitter.com/Univ_St_Etienne https://www.youtube.com/user/UniJeanMonnetUJM https://www.linkedin.com/edu/universit%C3%A9-jean-monnet-saint-etienne-12533 http://www.viadeo.com/fr/company/universite-jean-monnet http://www.universite-lyon.fr/
On 20. Mar 2018, at 19:16, Lydia Pintscher lydia.pintscher@wikimedia.de wrote:
On Tue, Mar 20, 2018 at 6:36 PM, Dennis Diefenbach < dennis.diefenbach@univ-st-etienne.fr> wrote:
Hi!
Here an example …. Imagine I search for the identifiers of entities called “Barack Obama”. In Wikidata I would do:
api.php?action=wbgetentities&sites=enwiki&titles=Barack_ Obama&format=jsonfm
So for wikidata I would put “enwiki”. But what do I put as a parameter for my private wiki? Where is this defined?
Ok thanks. It seems like what you want to do is get the list of items that have the label "Barack Obama". For this you need to use wbsearchentities. wbgetentities gives you the data from the item connected to a given article (in your case the English Wikipedia Article about Barack Obama). Hope that helps.
Cheers Lydia
-- Lydia Pintscher - http://about.me/lydia.pintscher Product Manager for Wikidata
Wikimedia Deutschland e.V. Tempelhofer Ufer 23-24 10963 Berlin www.wikimedia.de
Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V.
Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter der Nummer 23855 Nz. Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin, Steuernummer 27/029/42207. _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org