query-eebdd806780e727ed7e44d935463fbc2

rq turtle/ttl

title: List of firms in France without any value for P1616 SELECT DISTINCT ?item ?itemLabel ?itemDescription ?search WHERE { ?item (wdt:P31/(wdt:P279*)) wd:Q6881511; wdt:P17 wd:Q142; rdfs:label ?itemLabel; wikibase:sitelinks ?sitelinks. FILTER((LANG(?itemLabel)) = "fr") MINUS { ?item wdt:P576 :b10. } MINUS { ?item wdt:P1616 :b11. } BIND(URI(CONCAT(" https://annuaire-entreprises.data.gouv.fr/rechercher?terme=", ENCODE_FOR_URI(?itemLabel))) AS ?search) SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". } } ORDER BY DESC (?sitelinks)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: List of firms in France without any value for P1616
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?search WHERE {
  ?item (wdt:P31/(wdt:P279*)) wd:Q6881511;
    wdt:P17 wd:Q142;
    rdfs:label ?itemLabel;
    wikibase:sitelinks ?sitelinks.
  FILTER((LANG(?itemLabel)) = "fr")
  MINUS { ?item wdt:P576 _:b10. }
  MINUS { ?item wdt:P1616 _:b11. }
  BIND(URI(CONCAT(" https://annuaire-entreprises.data.gouv.fr/rechercher?terme=", ENCODE_FOR_URI(?itemLabel))) AS ?search)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }
}
ORDER BY DESC (?sitelinks)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?item"):::projected v2("?itemLabel"):::projected v4("?search"):::projected v1("?sitelinks") a2((" ")) a3((" ")) a1((" ")) c1(["fr"]):::literal c4(["wd:Q6881511"]):::iri c12(["bd:serviceParam"]):::iri c6(["wd:Q142"]):::iri f0[["?itemLabel = 'fr'"]] f0 --> v2 v3 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c4 v3 --"wdt:P17"--> c6 v3 --"rdfs:label"--> v2 v3 --"wikibase:sitelinks"--> v1 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P576"--> a2 end subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P1616"--> a3 end bind3[/"concat(' https://annuaire-entreprises.data.gouv.fr/rechercher?terme=',encode-for-uri(?itemLabel))"/] v2 --o bind3 bind3 --as--o v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c1 end