Ironholds / WikipediR

R's MediaWiki API client library
Other
68 stars 18 forks source link

Pull specific properties of an item? #19

Closed ncgoodbody closed 7 years ago

ncgoodbody commented 7 years ago

Is there a way to get a property for a specific item? For instance, if I know that author Gabriel García Márquez is item Q5878 and property nationality is P27, is there a way to pull Gabriel García Márquez's nationality? Or cycle through the claims of that item until I get to P27?

Ironholds commented 7 years ago

Uh. Is this for WikipediR, or the Wikidata API client?

Ironholds commented 7 years ago

@doctornerdis ?

ncgoodbody commented 7 years ago

Actually, it's for WikidataR. Sorry to post on the wrong repository. But is there a way to do it?

Ironholds commented 7 years ago

See https://github.com/Ironholds/WikidataR/issues/22 - it's on the to-do list.