ontology-driven-api icon indicating copy to clipboard operation
ontology-driven-api copied to clipboard

define a way to follow redirects for request

Open JJ-Author opened this issue 6 years ago • 3 comments

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

JJ-Author avatar Jan 15 '19 12:01 JJ-Author

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.

JJ-Author avatar Jan 16 '19 14:01 JJ-Author

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

JJ-Author avatar Jan 16 '19 14:01 JJ-Author

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.

yum-yab avatar Nov 27 '19 14:11 yum-yab