query-e80ce8e9c954fb1b68f6abf575660e6c

rq turtle/ttl

"ラジオ"で検索ヒットするが分類・上位クラス・親項目のいずれも指定されていない項目

Use at

PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?sitelinks
WHERE {

  SERVICE wikibase:mwapi {
    bd:serviceParam wikibase:api "Search";
                    wikibase:endpoint "www.wikidata.org";
                    mwapi:srsearch "ラジオ -haswbstatement:P31 -haswbstatement:P279 -haswbstatement:P1269" .
    ?title wikibase:apiOutput mwapi:title.
  }
  BIND(IRI(CONCAT(STR(wd:), ?title)) AS ?item)
  ?item wikibase:sitelinks ?sitelinks.
  FILTER(?sitelinks >= 1)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
ORDER BY (?item)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?item"):::projected v2("?sitelinks"):::projected v3("?title") c7(["www.wikidata.org"]):::literal c3(["bd:serviceParam"]):::iri c9(["ラジオ -haswbstatement:P31 -haswbstatement:P279 -haswbstatement:P1269"]):::literal c15(["#91;AUTO_LANGUAGE#93;"]):::literal c5(["Search"]):::literal c11(["mwapi:title"]):::iri f0[["?sitelinks >= '1^^xsd:integer'"]] f0 --> v2 subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c3 --"mwapi:api"--> c5 c3 --"mwapi:endpoint"--> c7 c3 --"mwapi:srsearch"--> c9 v3 --"mwapi:apiOutput"--> c11 end bind1[/"concat(str('wd:'),?title)"/] v3 --o bind1 bind1 --as--o v4 v4 --"mwapi:sitelinks"--> v2 subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c3 --"mwapi:language"--> c15 end