Re: URI Comparisons: RFC 2616 vs. RDF

* [2011-01-19 11:11:20 -0500] Kingsley Idehen <kidehen@openlinksw.com> écrit:

] On 1/19/11 10:59 AM, Nathan wrote:
] >htTp://lists.W3.org/Archives/Public/public-lod/2011Jan/ - Personally 
] >I'd hope that any statements made using these URIs (asserted by man or 
] >machine) would remain valid regardless of the (incorrect?-)casing. 
]
] Okay for Data Source Address Ref. (URL), no good for Entity (Data Item 
] or Data Object) Name Ref., bar system specific handling via IFP property 
] or owl:sameAs :-)

FWIW I've just added a FuXi builtin for the curate tool [1]
that does URI comparisons using ll.uri [2] (deliberately
pushing the choice of place on the ladder into a library).
It is used like this:

    @prefix curate: <http://eris.okfn.org/ww/2010/12/curate#>.

    { ?s1 ?p1 ?o1 .
      ?s2 ?p2 ?o2 .
      ?s1 curate:cmpURI ?s2 } =>
    { ?s1 = ?s2 }.

And results in statements like this:

    <HTTP://example.org:80/> = <HTTP://example.org:80/>,
        <http://EXAMPLE.ORG/>,
        <http://example.org/> .

    <http://EXAMPLE.ORG/> = <HTTP://example.org:80/>,
        <http://EXAMPLE.ORG/>,
        <http://example.org/> .

    <http://example.org/> = <HTTP://example.org:80/>,
        <http://EXAMPLE.ORG/>,
        <http://example.org/> .

Cheers,
-w

[1] https://bitbucket.org/okfn/curate/src/1f6ba3c360c3/curate/builtins.py#cl-9
[2] http://www.livinglogic.de/Python/url/Howto.html
-- 
William Waites                <mailto:ww@styx.org>
http://eris.okfn.org/ww/         <sip:ww@styx.org>
F4B3 39BF E775 CF42 0BAB  3DF0 BE40 A6DF B06F FD45

Received on Wednesday, 19 January 2011 17:34:47 UTC