Skip to content
Snippets Groups Projects
Commit a03b975d authored by Sarra Ouelhadj's avatar Sarra Ouelhadj
Browse files

add example file

parent c2e6651f
No related branches found
No related tags found
No related merge requests found
Exemple/ddd0d060-f90e-45ef-98fa-4fc3f0386466.png

14.8 KiB

This diff is collapsed.
@prefix ns1: <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
<https://data.grandlyon.com/onto/estmairede> a owl:ObjectProperty ;
rdfs:label "estMaireDe" ;
rdfs:comment "la personne est le maire de la commune" ;
rdfs:isDefinedBy <https://data.grandlyon.com/onto/> ;
ns1:term_status "testing" .
PREFIX iter: <http://w3id.org/sparql-generate/iter/>
PREFIX fun: <http://w3id.org/sparql-generate/fn/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
GENERATE {
?Commune a <http://data.ign.fr/def/geofla#Commune>;
<http://www.w3.org/2000/01/rdf-schema#label> ?Nomcommune;
<http://data.ign.fr/def/geofla#numInsee> ?Insee.
?Personne a <https://schema.org/Person>;
<https://schema.org/familyName> ?Nompersonne;
<https://schema.org/givenName> ?Prenompersonne;
<https://schema.org/birthDate> ?Datedenaissance.
?Personne <https://data.grandlyon.com/onto/estmairede> ?Commune.
?Personne <https://schema.org/hasOccupation> ?Profession.
}
SOURCE <https://download.data.grandlyon.com/wfs/grandlyon?SERVICE=WFS&VERSION=2.0.0&request=GetFeature&typename=cty_citoyennete.maires_2020_2026&outputFormat=application/json;%20subtype=geojson&SRSNAME=EPSG:4171> AS ?source
ITERATOR iter:GeoJSON(?source) AS ?geometricCoordinates ?properties
WHERE {
BIND (fun:JSONPath(?properties,"$.commune") AS ?Nomcommune)
BIND (fun:JSONPath(?properties,"$.insee") AS ?Insee)
BIND(IRI(CONCAT("https://data.grandlyon.com/id/Commune/",fun:JSONPath(?properties,"$.insee"))) AS ?Commune)
BIND (fun:JSONPath(?properties,"$.nom") AS ?Nompersonne)
BIND(IRI(CONCAT("https://data.grandlyon.com/id/Personne/",fun:JSONPath(?properties,"$.nom"))) AS ?Personne)
BIND (fun:JSONPath(?properties,"$.prenom") AS ?Prenompersonne)
BIND (fun:JSONPath(?properties,"$.date_naissance") AS ?Datedenaissance)
BIND(IRI(CONCAT("https://data.grandlyon.com/vocab/",REPLACE(LCASE(fun:JSONPath(?properties,"$.libelle_profession"))," ","_"))) AS ?Profession)
}
File added
@prefix ns1: <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://schema.org/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
<https://data.grandlyon.com/vocab/anciens_cadres> a skos:Concept ;
rdfs:isDefinedBy <https://data.grandlyon.com/vocab/> ;
ns1:term_status "testing" ;
skos:definition "Anciens cadres" ;
skos:inScheme schema:Occupation ;
skos:prefLabel "Anciens cadres" .
<https://data.grandlyon.com/vocab/cadres_administratifs_et_commerciaux_d'entreprise> a skos:Concept ;
rdfs:isDefinedBy <https://data.grandlyon.com/vocab/> ;
ns1:term_status "testing" ;
skos:definition "Cadres administratifs et commerciaux d'entreprise" ;
skos:inScheme schema:Occupation ;
skos:prefLabel "Cadres administratifs et commerciaux d'entreprise" .
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment