-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
684 complter la suppression dun jeu de donnes (#705)
* feat: delete dataset completion delete the catalogRecord associated with the dataset delete any alternative identifier associated with the dataset block deletion if a derived dataset exists * feat: clean database after dataset deletion * test: let see with Fabrice * resolve conflicts * refactor: delete unuseful code
- Loading branch information
Showing
9 changed files
with
149 additions
and
123 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
9 changes: 9 additions & 0 deletions
9
src/main/resources/request/dataset/deleteDatasetQualifiedDerivationWhiteNode.ftlh
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
DELETE WHERE { | ||
GRAPH <http://rdf.insee.fr/graphes/catalogue> | ||
{ | ||
?uri rdf:type dcat:Dataset . | ||
?uri prov:qualifiedDerivation ?node . | ||
?uri dcterms:identifier '${ID}' . | ||
?node rdf:type prov:Derivation . | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/resources/request/dataset/deleteDatasetTemporalCoverageWhiteNode.ftlh
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
DELETE WHERE { | ||
GRAPH <${DATASET_GRAPH}> | ||
{ | ||
?uri rdf:type dcat:Dataset . | ||
?uri dcterms:temporal ?node . | ||
?uri dcterms:identifier '${ID}' . | ||
?node rdf:type dcterms:PeriodOfTime . | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/resources/request/dataset/getDatasetDerivedFrom.ftlh
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
SELECT DISTINCT | ||
?id | ||
?uri | ||
(GROUP_CONCAT(DISTINCT ?wasDerivedFromS; separator=" , ") AS ?wasDerivedFromS) | ||
|
||
FROM <http://rdf.insee.fr/graphes/catalogue> | ||
|
||
WHERE { | ||
?uri a dcat:Dataset ; | ||
dcterms:identifier '${ID}' ; | ||
dcterms:identifier ?id ; | ||
|
||
OPTIONAL {?uri prov:wasDerivedFrom ?wasDerivedFrom . | ||
?wasDerivedFrom dcterms:identifier ?wasDerivedFromS | ||
} . | ||
|
||
|
||
} | ||
GROUP BY ?id ?uri | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
SELECT DISTINCT ?id | ||
FROM <${DATASET_GRAPH}> | ||
WHERE { | ||
?uri a dcat:Dataset ; | ||
dcterms:identifier ?id . | ||
?uri prov:wasDerivedFrom ?wasDerivedFrom . | ||
?wasDerivedFrom dcterms:identifier '${ID}' . | ||
} | ||
GROUP BY ?id |
This file contains 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
Oops, something went wrong.