Hi James,

Reasonator uses the "official" wikidata API (your first example) to get the
"related" information. All statements with a value type "item" create a
"normal" Wikipedia-like link in the database, so you can get "incoming"
links to see which items refer to your start item. Example for Cambridge:

http://www.wikidata.org/w/api.php?action=query&prop=linkshere&titles=Q350&lhnamespace=0

You could do the same for "outgoing" links, but you already have that
information in the form of claims/statements from wbgetentities.

Cheers,
Magnus

On Wed Jan 21 2015 at 14:55:25 <[email protected]> wrote:

> Magnus, et al.,
>
> I've been using parts of the Wikidata APIs to do the following:
>
> - Get detail about an item.  For example:
> https://www.wikidata.org/w/api.php?action=wbgetentities&;
> ids=Q42&props=labels|sitelinks|descriptions|claims
>
> - Get items that are subclass of, instance of, or part of.  For example:
> http://wdq.wmflabs.org/api?q=claim[279:153]
>
> Now I'd like to find out what items are related to an item through
> various properties, as is demonstrated in Resonator.  What techniques
> and APIs are used?
>
> Thanks,
> James Weaver
>
> _______________________________________________
> Wikidata-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/wikidata-l
>
_______________________________________________
Wikidata-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-l

Reply via email to