[GSoC] Usuful info from dereferenceable URIs

0

Posted by myr | Posted in GSoC_2009 | Posted on 26-06-2009

In this blog post I’ll make references to my last weekly status report blog post.

I discovered that what I called ‘fromFile’ or fromSource’ properties are already always included in every sensor data instance within the ‘Resource’ field LOL.
However there are some cases in which such properties should be included intentionally because of their utility, for example as a sensor retrieves information about a developer’s focus changing from one source to another one. Then I’ll still check if those properties are available.

Today I made my Restlet server providing more complex RDF data when someone looks up for resource of type ‘File’. This took me a little bit of time but I should be faster with all the other resource types as the mechanism is similar, and I’m going to explain some clue part of it here.
As I have a statement to be added to the model, I check if a statement with the same subject and predicate has already be added, and in case of a positive answer, I add the new one (substituting then, the previous one) only if the time at which that old one statement has been collected (that is the timestamp of its related sensor data) is equal or less recent than the collection time of the new one.

Now every URI is dereferenceable but the information provided by the server for each URI is very poor with the except of the resource types project, user, sensor data type, sensor data, file. I have to enrich info provided for all the other resource types.

Example of info provided as asking for the resource URI:
http://localhost:9875/linkedservicedata/source/file/__home__myrtill__Hackystat_linkedData__mysqlProva__workspace__hackystat-linked-service-data__src__org__hackystat__linkedservicedata__resource__sensordata__SensorDataResource.java

(every ’slash’ within the ‘fullPath’ field is substituted with a sequence of two consecutive underscores)
(consider that I manually sent very few sensor data information and a little set of all the properties that could be set have been set, so this server answer has only a little set of all the information potentially providable).

(I’ve deleted all the ‘<' and '>‘ because of Wordpress conflicts)


http://localhost:9875/linkedservicedata/projects/myrpandemon@yahoo.it/Default a http://usefulinc.com/ns/doap#Project ; http://dasha.ics.hawaii.edu:9875/linkedservicedata/vocab/ended "2010-01-01T23:59:59.999-10:00" ; http://dasha.ics.hawaii.edu:9875/linkedservicedata/vocab/modified "2009-05-24T18:02:33.401-10:00" ; http://usefulinc.com/ns/doap#created "2000-01-01T00:00:00.000-10:00" ; http://usefulinc.com/ns/doap#description "The default Project" ; http://usefulinc.com/ns/doap#maintainer "myrpandemon@yahoo.it" ; http://usefulinc.com/ns/doap#name "Default" .

http://localhost:9875/linkedservicedata/source/file/__home__myrtill__Hackystat_linkedData__mysqlProva__workspace__hackystat-linked-service-data__src__org__hackystat__linkedservicedata__resource__sensordata__SensorDataResource.java a http://dasha.ics.hawaii.edu:9875/linkedservicedata/vocab/File ; http://dasha.ics.hawaii.edu:9875/linkedservicedata/vocab/ClassFileName "SensorDataResource" ; http://dasha.ics.hawaii.edu:9875/linkedservicedata/vocab/classCount "1" ; http://dasha.ics.hawaii.edu:9875/linkedservicedata/vocab/functionCount "42" ; http://dasha.ics.hawaii.edu:9875/linkedservicedata/vocab/project http://localhost:9875/linkedservicedata/projects/myrpandemon@yahoo.it/Default ; http://dasha.ics.hawaii.edu:9875/linkedservicedata/vocab/totLines "1300" .

Write a comment

fiocco dance pirata femminista clap quoto dho smack ok :) scratch evvai pistola alt yawn metal pr angelo dance2 esatto hihi omg risucchio :p zzz gimme5 innocente forzuto coniglio evvai2 sigh sniff rimprovero bacetto ò_ò cappello mago trapano musica bwahah ^^ sonno huhu timid rosa macho bho tonto buffone love balloInCoppia ribelle tesssoro graaaazie<3 pettinarsi pazzo dance3 selvaggio ok2 mha spavento clistere love2 sos pwned adx victory timid2 diavolo rinco vanitosa impiccato sigaro cannibbale sciolto ;) inchino pazzo2 relax tsk ;)2 8) timid3 love3 caccaPolacca aaargh fantozzi bwaaaa sforzo love4 dipingo reTriste pistola2 ciao :P ghgh birra dance4 vomito fiammifero hihihi :( :(2 vendetta sgrunt2 occhioni forza eheh2 shhh