You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two questions: what should be a way of handling document ids, and the fact that reference implementation doesn't do it properly whatever it is.
Currently, when I try to run a tool that has the id field, reference implementation it resolves inner ids relative to the file path (that is disregards id of the document), but then fails to resolve the document itself
So probably relative ids should be resolved relative to document id, and that id should be respected regardless of its location on disk, or should be ignored. Either way I don't think that loading a document that contains id should fail.
Using a json-ld interpretation, you're suggesting that the document id should be treated as both an identifier used for the base IRI?
You're right, the current behavior means you can't usefully declare document ids. However this is a little tricky because in order to properly support identifiers that are not tied to directly resolvable URIs (looking up by path or HTTP), we need to define some other way of finding the CWL documents (such as by scanning a search path or creating an index). This raises a bunch of edge cases that would have to be worked out.
Alternately, we could disallow ids on documents containing a single object, and documents that contain multiple objects would only be permitted to have fragment ids (this would maintain the current behavior and simply disallow the edge cases.)
Activity
tetron commentedon Aug 8, 2015
Using a json-ld interpretation, you're suggesting that the document id should be treated as both an identifier used for the base IRI?
You're right, the current behavior means you can't usefully declare document ids. However this is a little tricky because in order to properly support identifiers that are not tied to directly resolvable URIs (looking up by path or HTTP), we need to define some other way of finding the CWL documents (such as by scanning a search path or creating an index). This raises a bunch of edge cases that would have to be worked out.
Alternately, we could disallow ids on documents containing a single object, and documents that contain multiple objects would only be permitted to have fragment ids (this would maintain the current behavior and simply disallow the edge cases.)
mr-c commentedon Jul 18, 2016
@StarvingMarvin do you feel that this is still an issue with v1.0?
mr-c commentedon Feb 26, 2017
A related conversation about fragment identifiers: rabix/bunny#159
This needs more clarity in the spec
Merge pull request #99 from manu-chroma/master
Squashed 'v1.1.0-dev1/salad/' changes from 98a5bea..27c20e8