W3C home > Mailing lists > Public > public-rww@w3.org > April 2012

directory listing ontology

From: Henry Story <henry.story@bblfish.net>
Date: Tue, 10 Apr 2012 23:32:05 +0200
Message-Id: <2A206F5E-D75C-4A94-A93D-EB27BF2F19C4@bblfish.net>
Cc: Alexandre Bertalis <bertails@w3.org>
To: Read-Write-Web <public-rww@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:10:25 UTC