Illustrate articles using the AFP multimedia API
Given a news article, how can we find relevant images to illustrate the article?
Using the SOLR API, we can build a query with parameters such as what (subject code), when (event date) and where (content location). For example, we can build this query: http://medialab.afp.com/afp-4w?what_iptc=03010003&when=2017-01-16&where=KGZ&lang=fr
This returns a list of NewsComponent, each one providing a link to a XML document describing a press release listing a set of images. There can be multiple NewsComponent for each query. How do we know which one should be parsed (to get the deep links of the images) given a particular text press release?