[esip-semanticweb] posted initial version of ToolMatch data model
Mattmann, Chris A (388J)
chris.a.mattmann at jpl.nasa.gov
Sat Mar 3 00:46:19 EST 2012
Hi Hook,
On Mar 2, 2012, at 12:53 PM, Hua, Hook (388C) wrote:
>>
>
>
> Many REST service frameworks support RESTful dispatching of the request
> query parameters. CherryPy and JAX-RS are good examples. That is, the set
> of parameters
>
> http://toolmatch.esipfed.org/findtools?doi=doi:10.1594/PANGAEA.695832&maps=
> true&os=linux
>
>
> would be (with encoding the "/" in the DOI)
>
> http://toolmatch.esipfed.org/findtools/doi/10.1594%2FPANGAEA.695832/maps/tr
> ue/os/linux
>
>
>
> But when you look at some practices in RESTful URLs with dispatching verbs
> [1], the verb is moved to the end to follow the spirit of RESTful
> resources. So:
>
> verb.cgi?restype=type&resid=id
>
> would become:
>
>
> /type/id/verb
>
>
>
> Does that mean our URL example would be the following?
>
>
> http://toolmatch.esipfed.org/doi/10.1594%2FPANGAEA.695832/findtools
Nah, it doesn't mean that. There are plenty of practices with REST. I've
heard Roy talk about this a few times too and if you read his blog,
even he'll tell you folks take a lot of different paths to make REST-ful URLs,
including ones that he didn't even think of.
>
> And as Chris L. was saying with the need for query parameters, would it be:
>
> /type/id/verb/{parameter pair verb modifiers}
>
> http://toolmatch.esipfed.org/doi/10.1594%2FPANGAEA.695832/findtools/maps/tr
> ue/os/linux
>
>
> Sometimes doing things the really formal way may not the most
> user-friendly way.
Depends on who your users are, really. Who are the users here?
But yeah, open to things here, just wanted to throw out my opinion
on the REST-ful URLs.
Cheers,
Chris
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.a.mattmann at nasa.gov
WWW: http://sunset.usc.edu/~mattmann/
Phone: +1 (818) 354-8810
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
More information about the esip-semanticweb
mailing list