Foafpress icon indicating copy to clipboard operation
Foafpress copied to clipboard

Handle DBPedia redirects

Open pafcu opened this issue 14 years ago • 2 comments

Foafpress does not "linkify" DBPedia terms that result in a redirect. Thus e.g. providing the interest "Programming" does not result in a link in generated HTML while "Computer Programming" does. On DBPedia "Programming" transparently redirects to "Computer Programming".

pafcu avatar Jul 07 '11 14:07 pafcu

Technically there is no HTTP redirect from http://dbpedia.org/resource/Programming to http://dbpedia.org/resource/Computer_Programming. Using the rdf CLI tool by @seebi to test it:

$ rdf rdfhead http://dbpedia.org/resource/Programming
HTTP/1.1 303 See Other
Date: Thu, 07 Jul 2011 17:56:50 GMT
Content-Type: application/rdf+xml; qs=0.95
Connection: keep-alive
Server: Virtuoso/06.02.3129 (Linux) x86_64-generic-linux-glibc25-64  VDB
Accept-Ranges: bytes
TCN: choice
Vary: negotiate,accept
Content-Location: /data/Programming.xml
Link: <http://mementoarchive.lanl.gov/dbpedia/timegate/http://dbpedia.org/resource/Programming>;
rel="timegate"
Location: http://dbpedia.org/data/Programming.xml
Content-Length: 0

Foafpress/Arc2 is following HTTP redirects, but you are right that Foafpress currently does not follow "DBpedia vocabulary redirects" (http://dbpedia.org/ontology/wikiPageRedirects), what are resolved on dbpedia.org straight. So this issue is more about an implementation of a process to define properties which should be handled in a similar way like Foafpress is doing it now with owl:sameAs, to follow that kinds of links.

haschek avatar Jul 07 '11 18:07 haschek

you can use qnames with the head commands as well rdf head dbpedia:Programming

best regards :)

seebi avatar Jul 08 '11 08:07 seebi