Skip to content

Commit

Permalink
Fix dataset context (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmarino authored Dec 11, 2024
1 parent b95f3c5 commit dfe4ee2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
18 changes: 17 additions & 1 deletion artifacts/src/main/resources/catalog/dataset-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "object",
"allOf": [
{
"$ref": "#/definitions/Dataset"
"$ref": "#/definitions/RootDataset"
}
],
"$id": "https://w3id.org/dspace/2024/1/catalog/dataset-schema.json",
Expand Down Expand Up @@ -47,6 +47,22 @@
"distribution"
]
},
"RootDataset": {
"type": "object",
"allOf": [
{
"$ref": "#/definitions/Dataset"
}
],
"properties": {
"@context": {
"$ref": "https://w3id.org/dspace/2024/1/common/context-schema.json"
}
},
"required": [
"@context"
]
},
"Resource": {
"type": "object",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ void setUp() {

private static final String DATASET = """
{
"@context": [
"https://w3id.org/dspace/2024/1/context.json"
],
"@id": "urn:uuid:3dd1add8-4d2d-569e-d634-8394a8836a88",
"hasPolicy": [
{
Expand Down

0 comments on commit dfe4ee2

Please sign in to comment.