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

Use Case: Values in JSON-LD are predictable (eg always arrays, never scalars) #22

Closed
ptsefton opened this issue May 31, 2019 · 1 comment
Labels
use-case A (potential) use-case for ROLite creation, consumption or integration

Comments

@ptsefton
Copy link
Contributor

ptsefton commented May 31, 2019

As a Research Software Engineer, I want the DataCrate manifest to be easy to navigate and parse so that I don't have to write helper functions such as working out whether a value is a scalar or an array.

This means that values should always be arrays apart from the @id.
So rather than:

"@graph": [
    {
      "@id": "/",
      "path": "/",
      "@type": "Dataset",
      "Description": "This data set doesn't really exist"
    }

This should be:

"@graph": [
    {
      "@id": "/",
      "path": ["/"],
      "@type": ["Dataset"],
      "Description": ["This data set doesn't really exist"]
    }

This is in a family with #9 and #10 - designed to make implementation simple.

@ptsefton
Copy link
Contributor Author

We've decided in discussions that this is not practical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
use-case A (potential) use-case for ROLite creation, consumption or integration
Projects
None yet
Development

No branches or pull requests

1 participant