You can get a page title by item and site via the Wikidata API: https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q1225937&...
Il 20/05/2015 16:39, Johan Mijs ha scritto:
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%7Cextracts%7Clinks%7Cpageimages&redirects&format=json&explaintext&continue&exchars=1000&exsectionformat=plain&format=json&titles=Dimitri_Verhulst&pithumbsize=150&callback=jQuery17208731340558733791_1432116510465 Result in our library catalog (AquaBrowser software): http://zbb.staging.aquabrowser.be/?q=author:%22Dimitri%20Verhulst%22&uilang=en 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=query. Is querying for a Wikidata identifier possible? If not, what is a possible workaround? Thank you, Johan Johan Mijs Technology Manager johan.mijs@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
Wikidata mailing list Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata