ontology-driven-api
ontology-driven-api copied to clipboard
define a way to follow redirects for request
When querying http://vmdbpedia.informatik.uni-leipzig.de:8080/api/1.0.0/values?entities=Caribou_(musician)&property=dbo%3Aabstract&format=JSON&pretty=NONE&limit=100&offset=0&oldVersion=false no information is displayed (see attachment).
If you go to the resource displayed http://dbpedia.org/resource/Caribou_(musician) you are redirected to http://dbpedia.org/page/Dan_Snaith
at the moment it is not clear on a semantic level how to handle request for redirects in the API. From the semantic point of view the current behavior is fully correct, since the redirected URI is not the same entity. therefore the api returns all the data available for this data. this also includes the dbo:wikiPageRedirects property which points the user to the "real" entity and can be used for another request in the api.
if it would be considered to implement an automatic follow of redirects for the value call this would be inconsisten with other calls where e.g. redirects in the object position usually should not be redirected automatically. so far we leave this feature request open for discussion
A possible way would be using dbo:wikiPageRedirects, but the redirects of the most resources are not specific enough (redirects of Barack Obama), so it would be quite useless. maybe there is a way to specify the redirected resources.