Skip to content
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

Adding @id for external URIs #74

Merged
merged 6 commits into from
May 28, 2020
Merged

Adding @id for external URIs #74

merged 6 commits into from
May 28, 2020

Conversation

stain
Copy link
Contributor

@stain stain commented Apr 8, 2020

Modifying 1.1-DRAFT spec to allow @id of Data Entity to be external/absolute URIs, and adds considerations before adding external URI to hasPart of an RO-Crate.

See #72 .

@stain stain changed the title WIP: Adding @id for external URIs Adding @id for external URIs Apr 9, 2020
Copy link

@proccaserra proccaserra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixing the example for the Web-based Data Entities:

{ "@context": "https://w3id.org/ro/crate/1.1-DRAFT/context",
  "@graph":
  [
    {
        "@type": "CreativeWork",
        "@id": "ro-crate-metadata.jsonld",
        "conformsTo": {"@id": "https://w3id.org/ro/crate/1.1-DRAFT"},
        "about": {"@id": "./"}
  },  
  {
    "@id": "./",
    "@type": [
      "Dataset"
    ],
    "hasPart": [
      {
        "@id": "survey-responses-2019.csv"
      },
      {
        "@id": "https://zenodo.org/record/3541888/files/ro-crate-1.0.0.pdf"
      }
      ]
   },
  {
    "@id": "survey-responses-2019.csv",
    "@type": "File",
    "contentSize": "26452",
    "description": "Survey responses",
    "encodingFormat": "text/csv"
  },
  {
    "@id": "https://zenodo.org/record/3541888/files/ro-crate-1.0.0.pdf",
    "@type": "File",
    "contentSize": "310691",
    "description": "RO-Crate specification",
    "encodingFormat": "application/pdf"
  }
]
}

@fbacall
Copy link
Contributor

fbacall commented May 13, 2020

When fetching a remote data entity, where should the local file be stored?

My assumption would be at the root of the crate, but what if it needs to go under data/input/foo/bar?

@stain
Copy link
Contributor Author

stain commented May 18, 2020

@ptsefton you argued that remote files should be indicated as RepositoryObjects and not File?

Would you be able to sketch out how a modified example from digital-library-and-repository-content section would look?

@fbacall in #74 (comment) You seem to be walking into the world of BagIt fetch.txt - in which case I would expect the RO-Crate to refer to @id: data/bigfile.txt and fetch.txt say where data/bigfile.txt could be downloaded from to make the bag complete. In that scenario the Bag is a kind of transport mechanism of the RO-Crate.
See also #78 with @ThomasThelen

@ThomasThelen
Copy link
Member

In regards to establishing a link between external and local data...

What about using schema:sameAs on the File object?

  {
    "@id": "survey-responses-2019.csv",
    "@type": "File",
    "contentSize": "26452",
    "description": "Survey responses",
    "encodingFormat": "text/csv",
    "sameAs": "https://zenodo.org/record/3541888/files/ro-crate-1.0.0.pdf"
  },
  {
    "@id": "https://zenodo.org/record/3541888/files/ro-crate-1.0.0.pdf",
    "@type": "File",
    "contentSize": "310691",
    "description": "RO-Crate specification",
    "encodingFormat": "application/pdf",
  }

This is likely something that @ieguinoa would run across with ResearchObject/ro-crate-py#2 while resolving remote data.

@stain stain merged commit b4e399f into master May 28, 2020
@stain stain deleted the allow-external-URIs branch May 29, 2020 09:00
@stain stain added this to the RO-Crate 1.1 milestone Jun 10, 2020
@stain stain linked an issue Jun 10, 2020 that may be closed by this pull request
@stain stain mentioned this pull request Sep 15, 2020
@stain stain mentioned this pull request Sep 24, 2020
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Case: reference objects from a Crate
4 participants