Skip to content

Commit

Permalink
feat: Identify datasets by their URI (#1426)
Browse files Browse the repository at this point in the history
Terminology sources are no longer identifier by their distribution URI.
Keep BC by still allowing the distribution URI to be used when searching.
The sources query now returns the new source instead of distribution URIs.
  • Loading branch information
ddeboer authored Sep 23, 2024
1 parent 175a6ee commit 5ce243e
Show file tree
Hide file tree
Showing 49 changed files with 127 additions and 82 deletions.
8 changes: 4 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ export default {
],
coverageThreshold: {
global: {
lines: 91.37,
statements: 91.37,
branches: 95.08,
functions: 92.56,
lines: 91.4,
statements: 91.4,
branches: 95.46,
functions: 92.62,
},
},
transform: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@context": "https://schema.org/docs/jsonldcontext.jsonld",
"@id": "http://vocab.getty.edu/aat/materials",
"@id": "http://vocab.getty.edu/aat#materials",
"@type": "Dataset",
"name": [
{
Expand Down Expand Up @@ -60,7 +60,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@context": "https://schema.org/docs/jsonldcontext.jsonld",
"@id": "http://vocab.getty.edu/aat/processes-and-techniques",
"@id": "http://vocab.getty.edu/aat#processes-and-techniques",
"@type": "Dataset",
"name": [
{
Expand Down Expand Up @@ -60,7 +60,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@context": "https://schema.org/docs/jsonldcontext.jsonld",
"@id": "http://vocab.getty.edu/aat/styles-and-periods",
"@id": "http://vocab.getty.edu/aat#styles-and-periods",
"@type": "Dataset",
"name": [
{
Expand All @@ -20,7 +20,7 @@
},
{
"@id": "https://data.cultureelerfgoed.nl/termennetwerk/onderwerpen/Stijlen"
}
}
],
"creator": [
{
Expand Down Expand Up @@ -63,7 +63,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@context": "https://schema.org/docs/jsonldcontext.jsonld",
"@id": "https://data.cultureelerfgoed.nl/term/id/cht/materials",
"@id": "https://data.cultureelerfgoed.nl/term/id/cht#materials",
"@type": "Dataset",
"name": [
{
Expand Down Expand Up @@ -60,7 +60,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@context": "https://schema.org/docs/jsonldcontext.jsonld",
"@id": "https://data.cultureelerfgoed.nl/term/id/cht/styles-and-periodes",
"@id": "https://data.cultureelerfgoed.nl/term/id/cht#styles-and-periodes",
"@type": "Dataset",
"name": [
{
Expand Down Expand Up @@ -63,7 +63,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@id": "https://reconciliation-api.github.io/specs/latest/",
"@type": "SoftwareApplication"
},
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}"
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{dataset}"
}
}
]
Expand Down
Loading

0 comments on commit 5ce243e

Please sign in to comment.