Skip to content

Commit

Permalink
Fix(intituleComplet): update ftlh
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeMBourgeois committed Oct 16, 2023
1 parent d0adef9 commit d64feaa
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ protected CantonOuVilleApi(SparqlUtils sparqlUtils, CSVUtils csvUtils, ResponseU
super(sparqlUtils, csvUtils, responseUtils);
}

public CantonOuVilleApi() {
// Constructeur par défaut
}

@Path(ConstGeoApi.PATH_CANTON_OU_VILLE + CODE_PATTERN)
@GET
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
PREFIX : <http://rdf.insee.fr/def/geo#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?uri ?type ?code ?typeArticle ?intitule ?intituleSansArticle ?inclusion ?dateCreation ?dateSuppression
WHERE {
?canton a :Canton ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,18 @@ WHERE {
igeo:codeArticle ?typeArticle;
igeo:nom ?intitule;
igeo:nomSansArticle ?intituleSansArticle .
OPTIONAL {
<#if typeOrigine == "Intercommunalite">
OPTIONAL {
?uri a igeo:${typeOrigine} ;
igeo:nomIntercommunalite ?intituleComplet .
}
</#if>
Optional {
?uri a igeo:${typeOrigine} ;
igeo:nomIntercommunalite ?intituleComplet ;
insee:categorieJuridique ?cj.
?cj skos:prefLabel ?categorieJuridique.
}

OPTIONAL {
?evenementCreation igeo:creation ?uri ;
igeo:date ?dateCreation .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,17 @@ WHERE {
igeo:codeArticle ?typeArticle;
igeo:nom ?intitule;
igeo:nomSansArticle ?intituleSansArticle .
OPTIONAL {
?uri a igeo:${typeOrigine} ;
igeo:nomIntercommunalite ?intituleComplet ;
insee:categorieJuridique ?cj.
?cj skos:prefLabel ?categorieJuridique.
}
<#if typeOrigine == "Intercommunalite">
OPTIONAL {
?uri a igeo:${typeOrigine} ;
igeo:nomIntercommunalite ?intituleComplet .
}
</#if>
Optional {
?uri a igeo:${typeOrigine} ;
insee:categorieJuridique ?cj.
?cj skos:prefLabel ?categorieJuridique.
}
OPTIONAL {
?evenementCreation igeo:creation ?uri ;
igeo:date ?dateCreation .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ WHERE {
</#if>
igeo:nom ?intitule ;
igeo:nomSansArticle ?intituleSansArticle .
<#if territoire == "Intercommunalite" >
<#if territoire == "Intercommunalite">


OPTIONAL {
Expand Down

0 comments on commit d64feaa

Please sign in to comment.