directory listing ontology

On data.fm listing a directory returns a file using the stat ontology. 
An example is here:

$ cwm http://lifeshare.data.fm/RomainBlin/

     @prefix : <http://www.w3.org/ns/posix/stat#> .
    
    </>     a :Directory;
         :mtime 1332497888;
         :size 4096 .
    
    <circles/>     a :Directory;
         :mtime 1332514810;
         :size 4096 .
    
    <profile.ttl>     a <http://www.w3.org/2000/01/rdf-schema#Resource>;
         :mtime 1332515203;
         :size 701 .
    
In the last version of rww scala [1] I thought using the sioc ontology may be a good
idea so it currnently returns the following

$ curl -k https://localhost:8443/ | cwm --rdf --n3
 
     @prefix : <http://rdfs.org/sioc/ns#> .
    
    <>     a :Container;
         :container_of <foaf.n3>,
                <hello.n3> .
    
    <foaf.n3>     a :Item .   
    <hello.n3>    a :Item .


This could be improved for sure.


I was thinking what we could do is have a directory/container returns subclasses of sioc:Container
such that one would know automatically that one can POST rdf representations to it, or PUT conenent,
etc....

So there are a few interesting things we could think of standardising here.

Henry

[1] https://dvcs.w3.org/hg/read-write-web/rev/bd7296be9855



Social Web Architect
http://bblfish.net/

Received on Tuesday, 10 April 2012 21:32:38 UTC