query-41d4f504dd180b3d2ac5c17b68d7eba6

rq turtle/ttl

TODO

Use at

PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
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 ?sitelink
WHERE {

  SERVICE wikibase:mwapi {
    bd:serviceParam wikibase:api "Search";
                    wikibase:endpoint "www.wikidata.org";
                    mwapi:srsearch "Πρώην Γιουγκοσλαβική".
    ?title wikibase:apiOutput mwapi:title.
  }
  BIND(IRI(CONCAT(STR(wd:), ?title)) AS ?item)
  optional { ?item rdfs:label ?itemLabel . 
             filter(lang(?itemLabel)="el") }
  ?article schema:about ?item ;
  #         schema:isPartOf <https://el.wikipedia.org/> ;
           schema:name ?sitelink .
  FILTER(CONTAINS(LCASE(?sitelink), "πρώην γιουγκοσλαβική"))
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?article") v4("?item"):::projected v2("?itemLabel"):::projected v1("?sitelink"):::projected v3("?title") c8(["www.wikidata.org"]):::literal c10(["Πρώην Γιουγκοσλαβική"]):::literal c4(["bd:serviceParam"]):::iri c6(["Search"]):::literal c12(["mwapi:title"]):::iri f0[["contains(lower-case(?sitelink),'πρώην γιουγκοσλαβική')"]] f0 --> v1 subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c4 --"mwapi:api"--> c6 c4 --"mwapi:endpoint"--> c8 c4 --"mwapi:srsearch"--> c10 v3 --"mwapi:apiOutput"--> c12 end bind1[/"concat(str('wd:'),?title)"/] v3 --o bind1 bind1 --as--o v4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."rdfs:label".-> v2 end v5 --"schema:about"--> v4 v5 --"schema:name"--> v1