query-34f8c0a9816487450747156729557424
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?itemDescription (group_concat(distinct ?itemAlias) as ?itemAlias)
WHERE {
  SERVICE wikibase:mwapi {
    bd:serviceParam wikibase:api "Search";
                    wikibase:endpoint "www.wikidata.org";
                    mwapi:srsearch "Carambolage".
    ?title wikibase:apiOutput mwapi:title.
  }
  BIND(IRI(CONCAT(STR(wd:), ?title)) AS ?item)
 optional { ?item rdfs:label ?itemLabel. 
            filter(lang(?itemLabel)="de") }
 optional { ?item schema:description ?itemDescription. 
            filter(lang(?itemDescription)="de") }
 optional { ?item skos:altLabel ?itemAlias.
            filter(lang(?itemAlias)="de") }
 #           filter CONTAINS( ?itemDescription, "Carambolage")
} group by ?item ?itemLabel ?itemDescription
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v5("?item"):::projected 
  v6("?itemAlias"):::projected 
  v2("?itemDescription"):::projected 
  v3("?itemLabel"):::projected 
  v4("?title")
  c7(["www.wikidata.org"]):::literal 
  c9(["Carambolage"]):::literal 
  c3(["bd:serviceParam"]):::iri 
  c5(["Search"]):::literal 
  c11(["mwapi:title"]):::iri 
  subgraph s1["http://wikiba.se/ontology#mwapi"]
    style s1 stroke-width:4px;
    c3 --"mwapi:api"-->  c5
    c3 --"mwapi:endpoint"-->  c7
    c3 --"mwapi:srsearch"-->  c9
    v4 --"mwapi:apiOutput"-->  c11
  end
  bind0[/"concat(str('wd:'),?title)"/]
  v4 --o bind0
  bind0 --as--o v5
  subgraph optional0["(optional)"]
  style optional0 fill:#bbf,stroke-dasharray: 5 5;
    v5 -."rdfs:label".->  v3
  end
  subgraph optional1["(optional)"]
  style optional1 fill:#bbf,stroke-dasharray: 5 5;
    v5 -."schema:description".->  v2
  end
  subgraph optional2["(optional)"]
  style optional2 fill:#bbf,stroke-dasharray: 5 5;
    v5 -."skos:altLabel".->  v6
  end
  bind2[/"?itemAlias"/]
  v6 --o bind2
  bind2 --as--o v6