[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Handle-info] OpenHandle: An RDF Serializer for Handle



Thanks for the heads up Tony. I went and grabbed a handle from
memory.loc.gov and it worked (see turtle below).

It would be interesting to see your RDF vocabulary but
http://nascent.nature.com/schemas/rdf/handle currently 404s. I would
need a better understanding of RFC 3650 to critique it though. I've
been meaning to read that RFC more closely, so this is a good excuse
:-)

If you look below at the turtle serialization I believe that the is
essentially describing the URI:

  http://nascent.nature.com/openhandle/handle?id=loc.pnp/cph.3c19765

But shouldn't the subject being described be the handle itself?

  info:hdl/loc.pnp/cph.3c19765

Lastly, if the goal is to make handle data more readily available in
XUL (Firefox) and other web applications you might want to consider
using content negotiation so someone could fetch the metadata not only
as RDF, but also JSON (JavaScript Object Notation). JSON is
particularly useful to provide in browser functionality with
JavaScript, AJAX, etc.

It's nice to see work being done in this area.

//Ed

--

ed@curry:~$ rapper -o turtle
http://nascent.nature.com/openhandle/handle?id=loc.pnp/cph.3c19765
rapper: Parsing URI
http://nascent.nature.com/openhandle/handle?id=loc.pnp/cph.3c19765
with parser rdfxml
rapper: Serializing with serializer turtle
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix h: <http://nascent.nature.com/schemas/rdf/handle#> .

[]
    a h:Handle;
    h:handleValues (
        [
            a h:HandleValue;
            h:index "100";
            h:type "HS_ADMIN";
            h:data [
                a h:Admin;
                h:adminReference "info:hdl/0.NA/loc.pnp#index=200";
                h:adminPermissions [
                    a h:AdminPermissions;
                    h:readValue "true";
                    h:addNa "true";
                    h:deleteHandle "true";
                    h:addAdmin "true";
                    h:removeValue "true";
                    h:deleteNa "true";
                    h:addValue "true";
                    h:addHandle "true";
                    h:listHandles "true";
                    h:removeAdmin "true";
                    h:modifyValue "true";
                    h:modifyAdmin "true"
                ]
            ];
            h:ttlType "0";
            h:ttl "86400";
            h:timestamp "Wed Mar 15 20:10:35 GMT 2006";
            h:adminRead "true";
            h:adminWrite "true";
            h:publicRead "true";
            h:publicWrite "false"
        ]
        [
            a h:HandleValue;
            h:index "1";
            h:type "URL";
            h:data
"http://lcweb2.loc.gov/cgi-bin/query/h?pp/PPALL:@field(NUMBER+@1(cph+3c19765))";
            h:ttlType "0";
            h:ttl "86400";
            h:timestamp "Wed Mar 15 20:10:35 GMT 2006";
            h:adminRead "true";
            h:adminWrite "true";
            h:publicRead "true";
            h:publicWrite "false"
        ]
    ) .

rapper: Parsing returned 44 triples


_______________________________________________
Handle-Info mailing list
Handle-Info@cnri.reston.va.us
http://www.handle.net/mailman/listinfo/handle-info