Skip to content

Handling of the document ids #99

Open

Description

@StarvingMarvin

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

Reference file:///a/path/to/tool is not in the index. Index contains:
file:///a/path/to/tool#some_input_id
...
http://example.com/document-id

(that is it respects top-level document id)

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.

Activity

  1. tetron commented on Aug 8, 2015

    @tetron
    Member

    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.)

  2. mr-c commented on Jul 18, 2016

    @mr-c
    Member

    @StarvingMarvin do you feel that this is still an issue with v1.0?

  3. mr-c commented on Feb 26, 2017

    @mr-c
    Member

    A related conversation about fragment identifiers: rabix/bunny#159

    This needs more clarity in the spec

  4. added a commit that references this issue on Jul 20, 2017
  5. added this to the unscheduled milestone on Jan 24, 2018
  6. added a commit that references this issue on Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions