Skip to content

Commit

Permalink
fix: review how to get the id of a dataset (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelDemey authored Mar 11, 2024
1 parent 7397786 commit a399a3a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/resources/request/dataset/getDataset.ftlh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ SELECT ?id ?labelLg1 ?labelLg2 ?subTitleLg1 ?subTitleLg2 ?accrualPeriodicity ?ac
FROM <${DATASET_GRAPH}>
WHERE {
?uri rdf:type dcat:Dataset .
?uri dcterms:identifier ?id .
?uri dcterms:identifier '${ID}' .

<#include "getDatasetIncludes/generalInformations.ftlh">
Expand Down Expand Up @@ -86,6 +87,4 @@ WHERE {
OPTIONAL {
?uri insee:validationState ?validationState .
}

BIND(STRAFTER(STR(?uri),'/datasets/') AS ?id) .
}

0 comments on commit a399a3a

Please sign in to comment.