Thanks Magnus. I see items returned, but I don't see any properties returned in the
result. So, after doing the query that you mention, would the next step be to do queries
for each individual item that came back to find the properties through which they are
related?
Regards,
James Weaver
On Jan 21, 2015, at 10:01 AM, Magnus Manske
<magnusmanske(a)googlemail.com> wrote:
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&title…
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
<james(a)j1w.xyz> 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&pro…
- 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
Wikidata-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-l
_______________________________________________
Wikidata-l mailing list
Wikidata-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-l