shilad/wikibrain

Feature Request for Wikidata

Closed this issue · 3 comments

Besides getting all outbound statements of an item, can I also get all inbound statements of an item?

For example, item "Macalester College" has a statement "instance of" to the item "university". Is it possible to have functions which allow me to get all instances of university, as well as all statements that point to "university"?

-Toby

Also, can I get a Wikidata item by title?

Re: by title, it's not directly possible right now, but there's a work around. You can first get the conceptId from the universal page dao. This is then the same as the item id.

Your first idea is great (get by property). We don't support it, but it wouldn't be difficult. You would need to add the properties you care about to the WikidataFilter and add the corresponding clauses to WIkidataSqlDao. You would also need to add the appropriate indexes to the sql scripts. Go for it!