Created
November 7, 2024 16:32
-
-
Save stain/492eeb04e5c795f50a263e55694de025 to your computer and use it in GitHub Desktop.
Example of nested @graph and its conversions to quads
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": "https://w3id.org/ro/crate/1.1/context", | |
"@graph": [ | |
{ | |
"@id": "ro-crate-metadata.json", | |
"@type": "CreativeWork", | |
"conformsTo": { | |
"@id": "https://w3id.org/ro/crate/1.1" | |
}, | |
"about": { | |
"@id": "./" | |
} | |
}, | |
{ | |
"@id": "./", | |
"@type": [ | |
"Dataset", | |
"LearningResource" | |
], | |
"author": { | |
"@id": "https://orcid.org/0000-0002-1825-0097" | |
}, | |
"datePublished": "2023-05-22T12:03:00+0100", | |
"description": "Official rainfall readings for Katoomba, NSW 2022, Australia", | |
"hasPart": [ | |
{ | |
"@id": "data.csv" | |
}, | |
{ | |
"@id": "nested1/" | |
} | |
], | |
"license": { | |
"@id": "http://spdx.org/licenses/CC0-1.0" | |
}, | |
"name": "Example dataset for RO-Crate specification", | |
"publisher": { | |
"@id": "https://ror.org/05gq02987" | |
} | |
}, | |
{ | |
"@id": "data.csv", | |
"@type": "File", | |
"description": "Rainfall data for Katoomba, NSW Australia February 2022", | |
"encodingFormat": "text/csv", | |
"license": { | |
"@id": "https://creativecommons.org/licenses/by-nc-sa/4.0/" | |
}, | |
"name": "Rainfall Katoomba 2022-02" | |
}, | |
{ | |
"@id": "http://spdx.org/licenses/CC0-1.0", | |
"@type": "CreativeWork", | |
"description": "Creative Commons Zero v1.0 Universal", | |
"name": "CC0-1.0", | |
"url": "https://creativecommons.org/publicdomain/zero/1.0/" | |
}, | |
{ | |
"@id": "https://creativecommons.org/licenses/by-nc-sa/4.0/", | |
"@type": "CreativeWork", | |
"description": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", | |
"name": "CC BY-NC-SA 4.0 International" | |
}, | |
{ | |
"@id": "https://orcid.org/0000-0002-1825-0097", | |
"@type": "Person", | |
"affiliation": { | |
"@id": "https://ror.org/05gq02987" | |
}, | |
"name": "Josiah Carberry" | |
}, | |
{ | |
"@id": "https://ror.org/05gq02987", | |
"@type": "Organization", | |
"name": "Brown University", | |
"url": "http://www.brown.edu/" | |
}, | |
{ | |
"@id": "nested1/", | |
"@type": "Dataset", | |
"name": "A nested RO-Crate which metadata is in its own @graph", | |
"@graph": [ | |
{ | |
"@id": "ro-crate-metadata.json", | |
"@type": "CreativeWork", | |
"conformsTo": { | |
"@id": "https://w3id.org/ro/crate/1.1" | |
}, | |
"description": "It's the same one!! But in this @graph the 'about' is different.", | |
"about": { | |
"@id": "nested1/" | |
} | |
}, | |
{ | |
"@id": "http://spdx.org/licenses/CC0-1.0", | |
"@type": "CreativeWork", | |
"description": "Creative Commons Zero v1.0 Universal", | |
"name": "CC0-1.0", | |
"url": "https://creativecommons.org/publicdomain/zero/1.0/" | |
}, | |
{ | |
"@id": "https://creativecommons.org/licenses/by-nc-sa/4.0/", | |
"@type": "CreativeWork", | |
"description": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", | |
"name": "CC BY-NC-SA 4.0 International" | |
}, | |
{ | |
"@id": "https://orcid.org/0000-0002-1825-0097", | |
"@type": "Person", | |
"affiliation": { | |
"@id": "https://ror.org/05gq02987" | |
}, | |
"name": "Josiah Carberry" | |
}, | |
{ | |
"@id": "https://ror.org/05gq02987", | |
"@type": "Organization", | |
"name": "Brown University", | |
"url": "http://www.brown.edu/" | |
}, | |
{ | |
"@id": "nested1/", | |
"@type": [ | |
"Dataset", | |
"LearningResource" | |
], | |
"name": "Example nested dataset for RO-Crate specification", | |
"author": { | |
"@id": "https://orcid.org/0000-0002-1825-0097" | |
}, | |
"datePublished": "2023-05-22T12:03:00+0100", | |
"description": "Official rainfall readings for Katoomba, NSW 2022, Australia", | |
"hasPart": { | |
"@id": "nested1/data2.csv" | |
}, | |
"license": { | |
"@id": "http://spdx.org/licenses/CC0-1.0" | |
}, | |
"publisher": { | |
"@id": "https://ror.org/05gq02987" | |
} | |
}, | |
{ | |
"@id": "nested1/data2.csv", | |
"@type": "File", | |
"description": "Rainfall data for Katoomba, NSW Australia February 2022", | |
"encodingFormat": "text/csv", | |
"license": { | |
"@id": "https://creativecommons.org/licenses/by-nc-sa/4.0/" | |
}, | |
"name": "Rainfall Katoomba 2022-02" | |
} | |
] | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<http://example.com/crate1/> <http://schema.org/author> <https://orcid.org/0000-0002-1825-0097> . | |
<http://example.com/crate1/> <http://schema.org/datePublished> "2023-05-22T12:03:00+0100" . | |
<http://example.com/crate1/> <http://schema.org/description> "Official rainfall readings for Katoomba, NSW 2022, Australia" . | |
<http://example.com/crate1/> <http://schema.org/hasPart> <http://example.com/crate1/data.csv> . | |
<http://example.com/crate1/> <http://schema.org/hasPart> <http://example.com/crate1/nested1/> . | |
<http://example.com/crate1/> <http://schema.org/license> <http://spdx.org/licenses/CC0-1.0> . | |
<http://example.com/crate1/> <http://schema.org/name> "Example dataset for RO-Crate specification" . | |
<http://example.com/crate1/> <http://schema.org/publisher> <https://ror.org/05gq02987> . | |
<http://example.com/crate1/> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Dataset> . | |
<http://example.com/crate1/> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/LearningResource> . | |
<http://example.com/crate1/data.csv> <http://schema.org/description> "Rainfall data for Katoomba, NSW Australia February 2022" . | |
<http://example.com/crate1/data.csv> <http://schema.org/encodingFormat> "text/csv" . | |
<http://example.com/crate1/data.csv> <http://schema.org/license> <https://creativecommons.org/licenses/by-nc-sa/4.0/> . | |
<http://example.com/crate1/data.csv> <http://schema.org/name> "Rainfall Katoomba 2022-02" . | |
<http://example.com/crate1/data.csv> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/MediaObject> . | |
<http://example.com/crate1/nested1/> <http://schema.org/author> <https://orcid.org/0000-0002-1825-0097> <http://example.com/crate1/nested1/> . | |
<http://example.com/crate1/nested1/> <http://schema.org/datePublished> "2023-05-22T12:03:00+0100" <http://example.com/crate1/nested1/> . | |
<http://example.com/crate1/nested1/> <http://schema.org/description> "Official rainfall readings for Katoomba, NSW 2022, Australia" <http://example.com/crate1/nested1/> . | |
<http://example.com/crate1/nested1/> <http://schema.org/hasPart> <http://example.com/crate1/nested1/data2.csv> <http://example.com/crate1/nested1/> . | |
<http://example.com/crate1/nested1/> <http://schema.org/license> <http://spdx.org/licenses/CC0-1.0> <http://example.com/crate1/nested1/> . | |
<http://example.com/crate1/nested1/> <http://schema.org/name> "A nested RO-Crate which metadata is in its own @graph" . | |
<http://example.com/crate1/nested1/> <http://schema.org/name> "Example nested dataset for RO-Crate specification" <http://example.com/crate1/nested1/> . | |
<http://example.com/crate1/nested1/> <http://schema.org/publisher> <https://ror.org/05gq02987> <http://example.com/crate1/nested1/> . | |
<http://example.com/crate1/nested1/> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Dataset> . | |
<http://example.com/crate1/nested1/> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Dataset> <http://example.com/crate1/nested1/> . | |
<http://example.com/crate1/nested1/> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/LearningResource> <http://example.com/crate1/nested1/> . | |
<http://example.com/crate1/nested1/data2.csv> <http://schema.org/description> "Rainfall data for Katoomba, NSW Australia February 2022" <http://example.com/crate1/nested1/> . | |
<http://example.com/crate1/nested1/data2.csv> <http://schema.org/encodingFormat> "text/csv" <http://example.com/crate1/nested1/> . | |
<http://example.com/crate1/nested1/data2.csv> <http://schema.org/license> <https://creativecommons.org/licenses/by-nc-sa/4.0/> <http://example.com/crate1/nested1/> . | |
<http://example.com/crate1/nested1/data2.csv> <http://schema.org/name> "Rainfall Katoomba 2022-02" <http://example.com/crate1/nested1/> . | |
<http://example.com/crate1/nested1/data2.csv> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/MediaObject> <http://example.com/crate1/nested1/> . | |
<http://example.com/crate1/ro-crate-metadata.json> <http://purl.org/dc/terms/conformsTo> <https://w3id.org/ro/crate/1.1> . | |
<http://example.com/crate1/ro-crate-metadata.json> <http://purl.org/dc/terms/conformsTo> <https://w3id.org/ro/crate/1.1> <http://example.com/crate1/nested1/> . | |
<http://example.com/crate1/ro-crate-metadata.json> <http://schema.org/about> <http://example.com/crate1/> . | |
<http://example.com/crate1/ro-crate-metadata.json> <http://schema.org/about> <http://example.com/crate1/nested1/> <http://example.com/crate1/nested1/> . | |
<http://example.com/crate1/ro-crate-metadata.json> <http://schema.org/description> "It's the same one!! But in this @graph the 'about' is different." <http://example.com/crate1/nested1/> . | |
<http://example.com/crate1/ro-crate-metadata.json> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/CreativeWork> . | |
<http://example.com/crate1/ro-crate-metadata.json> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/CreativeWork> <http://example.com/crate1/nested1/> . | |
<http://spdx.org/licenses/CC0-1.0> <http://schema.org/description> "Creative Commons Zero v1.0 Universal" . | |
<http://spdx.org/licenses/CC0-1.0> <http://schema.org/description> "Creative Commons Zero v1.0 Universal" <http://example.com/crate1/nested1/> . | |
<http://spdx.org/licenses/CC0-1.0> <http://schema.org/name> "CC0-1.0" . | |
<http://spdx.org/licenses/CC0-1.0> <http://schema.org/name> "CC0-1.0" <http://example.com/crate1/nested1/> . | |
<http://spdx.org/licenses/CC0-1.0> <http://schema.org/url> "https://creativecommons.org/publicdomain/zero/1.0/" . | |
<http://spdx.org/licenses/CC0-1.0> <http://schema.org/url> "https://creativecommons.org/publicdomain/zero/1.0/" <http://example.com/crate1/nested1/> . | |
<http://spdx.org/licenses/CC0-1.0> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/CreativeWork> . | |
<http://spdx.org/licenses/CC0-1.0> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/CreativeWork> <http://example.com/crate1/nested1/> . | |
<https://creativecommons.org/licenses/by-nc-sa/4.0/> <http://schema.org/description> "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International" . | |
<https://creativecommons.org/licenses/by-nc-sa/4.0/> <http://schema.org/description> "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International" <http://example.com/crate1/nested1/> . | |
<https://creativecommons.org/licenses/by-nc-sa/4.0/> <http://schema.org/name> "CC BY-NC-SA 4.0 International" . | |
<https://creativecommons.org/licenses/by-nc-sa/4.0/> <http://schema.org/name> "CC BY-NC-SA 4.0 International" <http://example.com/crate1/nested1/> . | |
<https://creativecommons.org/licenses/by-nc-sa/4.0/> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/CreativeWork> . | |
<https://creativecommons.org/licenses/by-nc-sa/4.0/> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/CreativeWork> <http://example.com/crate1/nested1/> . | |
<https://orcid.org/0000-0002-1825-0097> <http://schema.org/affiliation> <https://ror.org/05gq02987> . | |
<https://orcid.org/0000-0002-1825-0097> <http://schema.org/affiliation> <https://ror.org/05gq02987> <http://example.com/crate1/nested1/> . | |
<https://orcid.org/0000-0002-1825-0097> <http://schema.org/name> "Josiah Carberry" . | |
<https://orcid.org/0000-0002-1825-0097> <http://schema.org/name> "Josiah Carberry" <http://example.com/crate1/nested1/> . | |
<https://orcid.org/0000-0002-1825-0097> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Person> . | |
<https://orcid.org/0000-0002-1825-0097> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Person> <http://example.com/crate1/nested1/> . | |
<https://ror.org/05gq02987> <http://schema.org/name> "Brown University" . | |
<https://ror.org/05gq02987> <http://schema.org/name> "Brown University" <http://example.com/crate1/nested1/> . | |
<https://ror.org/05gq02987> <http://schema.org/url> "http://www.brown.edu/" . | |
<https://ror.org/05gq02987> <http://schema.org/url> "http://www.brown.edu/" <http://example.com/crate1/nested1/> . | |
<https://ror.org/05gq02987> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Organization> . | |
<https://ror.org/05gq02987> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Organization> <http://example.com/crate1/nested1/> . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment