-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support prefixed study ids #44
Comments
Some questions: Do you foresee more namespaces than pg/ot ? Would it be valid to have a pg10 (or just 10) as well as an ot10 ? There is code that looks at the current list of studies to decide what to call a new study at creation time, so I am wondering how this change will interact with that. Just to clarify, this means you want current API URL's like this:
converted to:
Is that correct? web2py considers URL's with colons (other than to designate a port) as invalid by default, but @jimallman mentioned that he had dealt with that issue before. |
Other options:
From what I've seen, option (3) above is in the spirit of CURIEs as URI-shorteners, as show here: Instead of embedding the CURIE directly in a URL, we're "expanding" it to its full URL. The CURIE Here's a modified version of the example linked above, using more legible URL paths:
|
On Mon, Jan 13, 2014 at 2:42 AM, Duke Leto notifications@github.com wrote:
In any case it would not be correct, because the current study set comes
|
done but see OpenTreeOfLife/peyotl#11 |
We need to have multiple study id namespaces, so use a CURIE i.e. short prefix, colon, suffix. Study id would be for example 'o:123' or 'ot:123' in contexts that expect a study id, but converted to 'o_123' or 'ot_123' in contexts such as file system calls that expect a file name.
Continue to accept unprefixed ids for now for phylografter-originated studies. Feature to consider: allow prefixed 'pg:456' as a synonym for '456' ? Not sure, we need to think about this.
The text was updated successfully, but these errors were encountered: