Pointer to the ontology for generic resources. HTTP Link header.


Here is the ontology for  generic resources:


a file which uses it:


which in n3 is
@prefix : <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix s: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix doc: <http://www.w3.org/2000/10/swap/pim/doc#> .
@prefix gen: <http://www.w3.org/2006/gen/ont#>.
@prefix link: <#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix cc:     <http://creativecommons.org/ns#>.

<unit> cc:licence <http://www.w3.org/2000/10/swap/LICENSE.n3>.
<unit.n3> cc:licence <http://www.w3.org/2000/10/swap/LICENSE.n3>;
     a gen:ContentTypeSpecificResource.

<unit.rdf> cc:licence <http://www.w3.org/2000/10/swap/LICENSE.n3>;
     a gen:ContentTypeSpecificResource.

<unit> gen:contenTypeSpecific <unit.n3>, <unit.rdf>.

With this htaccess,

$ cat .htaccess
<Files ~ "unit.*">
Header set Link meta;rel=meta

the meta file i pointe d to by the HTTP request, even on a head:

__$ curl -I http://www.w3.org/2007/ont/unit.rdf
HTTP/1.1 200 OK
Date: Fri, 02 Nov 2007 16:10:55 GMT
Server: Apache/2
Last-Modified: Tue, 31 Jul 2007 23:06:23 GMT
ETag: "43697420db9c0"
Accept-Ranges: bytes
Content-Length: 14255
Cache-Control: max-age=21600
Expires: Fri, 02 Nov 2007 22:10:55 GMT
P3P: policyref="http://www.w3.org/2001/05/P3P/p3p.xml"
Link: meta;rel=meta
Content-Type: application/rdf+xml; qs=0.9

Tabulator implements this on the cleint side, and pulls in the metadata.


Received on Friday, 2 November 2007 16:15:30 UTC