I've been playing around with the Wikidata API for a while. I know how to get item (entities) by name and by their Q number. but I can't seem to figure out how to get their properties right. What I'm looking for is P214 (viaf identifiers for authors)
For example, i'm already using this query to get an author by his full name
https://www.wikidata.org/w/api.php?action=wbsearchentities&search=Douglas%20Adams&language=en
returns an array of pages names and linked to pages that have the name "Douglas Adams" on them. but no properties.
then I can use the list of Q id to query for properties, like so
https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q42&language=en
the viaf property and it's value for Q42 are there. but this is such an unwieldy approach, because I'm getting a list of results from the first query, then I have to iterate over them and query each for properties for that one I'm looking for.
tl;dr : is there a simpler way to get an item properties list by item name ?