query-add8fefd7695036488f1ca23d61a588c

rq turtle/ttl

Liste des adminisrations françaises avec l'identifiant sur l'annuaire du service public, le code SIREN, le portail open data (lorsqu'il a un élément dédié sur wikidata) et son URL SELECT ?item ?itemLabel ?annuaire_url ?siren ?portal ?portalLabel ?url WHERE { ?item wdt:P6671 ?annuaire_id; wdt:P8402 ?portal; wdt:P1616 ?siren; rdfs:label ?itemLabel. FILTER((LANG(?itemLabel)) = "[AUTO_LANGUAGE]") ?portal rdfs:label ?portalLabel. FILTER((LANG(?portalLabel)) = "[AUTO_LANGUAGE]") ?portal wdt:P856 ?url. BIND(IRI(CONCAT('https://lannuaire.service-public.fr/',?annuaire_id)) as ?annuaire_url) }

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
# Liste des adminisrations françaises avec l'identifiant sur l'annuaire du service public, le code SIREN, le portail open data (lorsqu'il a un élément dédié sur wikidata) et son URL
SELECT ?item ?itemLabel ?annuaire_url ?siren 
?portal ?portalLabel ?url WHERE {
  ?item wdt:P6671 ?annuaire_id;
    wdt:P8402 ?portal;
        wdt:P1616 ?siren;
    rdfs:label ?itemLabel.
  FILTER((LANG(?itemLabel)) = "[AUTO_LANGUAGE]")
  ?portal rdfs:label ?portalLabel.
  FILTER((LANG(?portalLabel)) = "[AUTO_LANGUAGE]")
  ?portal wdt:P856 ?url.
  BIND(IRI(CONCAT('https://lannuaire.service-public.fr/',?annuaire_id)) as ?annuaire_url)
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?annuaire_id") v8("?annuaire_url"):::projected v3("?item"):::projected v2("?itemLabel"):::projected v5("?portal"):::projected v1("?portalLabel"):::projected v6("?siren"):::projected v7("?url"):::projected f0[["?portalLabel = '#91;AUTO_LANGUAGE#93;'"]] f0 --> v1 f1[["?itemLabel = '#91;AUTO_LANGUAGE#93;'"]] f1 --> v2 v3 --"wdt:P6671"--> v4 v3 --"wdt:P8402"--> v5 v3 --"wdt:P1616"--> v6 v3 --"rdfs:label"--> v2 v5 --"rdfs:label"--> v1 v5 --"wdt:P856"--> v7 bind2[/"concat('https://lannuaire.service-public.fr/',?annuaire_id)"/] v4 --o bind2 bind2 --as--o v8