Re: CoIN: Composition of Identifier Names

2010/4/13 Richard Cyganiak <richard@cyganiak.de>:
> I think that URI Templates [3] might be a handy companion syntax for CoIN
> and I wonder if they could be integrated into CoIN. I'm thinking more about
> the general curly-brace-syntax rather than the fancy details. So perhaps you
> could start with something like
>
> http://example.org/publ/{publisher}/{document}
> http://example.org/publ/{publisher}/{document}/rev/{date}
> http://example.org/profiles/{name}

I second the idea of exploring the use of URI Templates for
documenting how to construct a URL from other data. I'm not sure if
it's part of the latest URI Templates draft [1], but OpenSearch allows
parameter names to be defined with namespaces [2]. For example:

 <?xml version="1.0" encoding="UTF-8"?>
 <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"

xmlns:geo="http://a9.com/-/opensearch/extensions/geo/1.0/">
   <Url type="application/vnd.google-earth.kml+xml"
       template="http://example.com/?q={searchTerms}&pw={startPage?}&bbox={geo:box?}&format=kml"/
</OpenSearchDescription>

Note, the use of the geo namespace and the geo:box parameter name? So
you could imagine a URL template that referenced names from an RDF
vocabulary:

<Url type="application/rdf+xml"
template="http://example.com/user/{foaf:mbox_sha1sum}" />

OpenSearch was an incubator for the ideas that led to the URI
Templates draft, and is built into many modern web browsers (IE,
Firefox, Chrome).

//Ed

[1] http://tools.ietf.org/html/draft-gregorio-uritemplate-04
[2] http://www.opensearch.org/Specifications/OpenSearch/1.1#Parameter_names

Received on Tuesday, 13 April 2010 21:16:39 UTC