Skip to content
kwijibo edited this page Sep 10, 2011 · 8 revisions

Trouble Shooting

This document shows several problems installing and running Foafpress. I would love to hear your feedback to get aware of errors. So please try to install Foafpress, thank you!

How Foafpress finds the RDF document that describes the Linked Data URI

The request URI should match the path to the document describing the resource (without the file extension).

eg:

To serve a response for http://example.com/foaf/me

Install foafpress at {webroot}/foaf

Put me.tt at {webroot}/foaf/me.tt

(supported extensions are .tt .nt and .rdf)

the document should contain a description of itself - but there are different document URIs for each supported file extension. The easiest way to deal with this is to use relative path to the document, ie:

    
    <> a foaf:PersonalProfileDocument ;
       foaf:primaryTopic <http://example.com/foaf/me> ;
       dc:title "My Personal Profile"@en .
    

So when http://example.com/foaf/me.html is requested, <> is interpreted as <http://example.com/foaf/me.html>

(With RDF/XML, use rdf:about="" on the element that describes the document)