Hi Dimitry,
I am not quering FOR the wikibase_item, I want to query WITH the wikibase_item as a
parameter. Sorry if I was unclear.
Johan
On 20 May 2015, at 16:28, Dmitry Brant
<dbrant@wikimedia.org<mailto:dbrant@wikimedia.org>> wrote:
Hi Johan,
The wikibase_item is returned as part of the "pageprops" response, so your
example query is already requesting it correctly. If you look at the json response for
that query, you can see wikibase_item present in the pageprops object.
-Dmitry
On Wed, May 20, 2015 at 9:01 AM, Johan Mijs
<johan.mijs@bibnet.be<mailto:johan.mijs@bibnet.be>> wrote:
Hello,
we here at Bibnet (a government agency working for public libraries) in Brussels greatly
admire your work on the Wikidata project! Thanks to the addition of Wikidata indentifiers
to the
viaf.org<http://viaf.org/> project, we finally will be able to relate the
personal names in our library catalog to Wikipedia.
What we do now (without identifiers):
We use the Wikipedia API to query the ’titles’ parameter, based on the name of an author
in our database. Lots of things can go wrong of course.
Example query:
http://nl.wikipedia.org/w/api.php?action=query&prop=pageprops%7Cinfo%7C…
Result in our library catalog (AquaBrowser software):
http://zbb.staging.aquabrowser.be/?q=author:%22Dimitri%20Verhulst%22&ui…
What we want to do (with identifiers):
Keep on using the Wikipedia api (because then there are no costs for extra development),
but query for a Wikidata identifier (I believe it is called wikibase_item). I only find
pageids as a parameter on
http://nl.wikipedia.org/w/api.php?action=help&modules=queryuery.
Is querying for a Wikidata identifier possible? If not, what is a possible workaround?
Thank you,
Johan
Johan Mijs
Technology Manager
johan.mijs(a)bibnet.be
+32 (0)2 213 10 27<tel:%2B32%20%280%292%20213%2010%2027>
+32 (0)473 81 78 70<tel:%2B32%20%280%29473%2081%2078%2070>
skype:johanmijs
Bibnet vzw
www.bibnet.be<http://www.bibnet.be/>
Priemstraat 51
B-1000 Brussel
_______________________________________________
Wikidata mailing list
Wikidata@lists.wikimedia.org<mailto:Wikidata@lists.wikimedia.org>
https://lists.wikimedia.org/mailman/listinfo/wikidata
_______________________________________________
Wikidata mailing list
Wikidata@lists.wikimedia.org<mailto:Wikidata@lists.wikimedia.org>
https://lists.wikimedia.org/mailman/listinfo/wikidata