query-f36150a1e2b42c0690044d207c588215

rq turtle/ttl

FILTER

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
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#>
SELECT DISTINCT ?item ?label ?sitelink WHERE {
  ?article schema:about ?item.
  ?article schema:isPartOf <https://ko.wikipedia.org/>.
  ?article schema:name ?sitelink.
  ?item rdfs:label ?itemlabel.
  # ?item schema:description ?itemdesc.
  # ?item skos:altLabel ?aliasLabel.
  # ?item wikibase:statements 0 .
  # ?item wikibase:statements ?statements .
  # ?item wikibase:sitelinks 1 .
  # ?item wikibase:sitelinks ?sitelinks .
  FILTER((LANG(?itemlabel)) = "ko")
  FILTER(CONTAINS(?sitelink, "산"))
  # FILTER(STRSTARTS(?sitelink, "산"))
  # FILTER(STRENDS(?sitelink, "산"))
  FILTER(NOT EXISTS { ?item wdt:P31 _:b6. })
  FILTER(NOT EXISTS { ?item wdt:P279 _:b7. })
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?article") v1("?item"):::projected v3("?itemlabel") v2("?sitelink"):::projected a2((" ")) a1((" ")) c7([https://ko.wikipedia.org/]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"wdt:P279"--> e0a1 e0v1("?item"):::projected e0a1((" ")):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> a1 v1 --"wdt:P279"--> a1 f1[["not "]] subgraph f1e1["Exists Clause"] e1v1 --"wdt:P31"--> e1a1 e1v1("?item"):::projected e1a1((" ")):::projected end f1--EXISTS--> f1e1 f1 --> v1 f1 --> c2 f1 --> a2 v1 --"wdt:P31"--> a2 f2[["contains(?sitelink,'산')"]] f2 --> v2 f3[["?itemlabel = 'ko'"]] f3 --> v3 v4 --"schema:about"--> v1 v4 --"schema:isPartOf"--> c7 v4 --"schema:name"--> v2 v1 --"rdfs:label"--> v3