query-830265c907c4de514da719867ee3ca70

rq turtle/ttl

Multiple heritage destinations. (Q2898951)Codru Reserve property of (P1435)heritage designation , and these two items are assigned to the (Q39517589)Important Bird Area of Moldova and an (Q28861097)scientific reserve is both a (Q2898951)Codru Reserve ): (Q28861097)scientific reserve with (Q12720953)protected area of Moldova , I use the following query (for simplicity sake, I replaced (Q12720953)protected area of Moldova as subclasses of (P1435)heritage designation When I query the map of all items with

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#>
#defaultView:Map
SELECT DISTINCT ?monument ?monumentLabel ?coor ?image ?layer
WHERE {
  #?monument wdt:P1435/wdt:P279* wd:Q12720953;
  ?monument wdt:P1435/wdt:P279* wd:Q28861097;
            wdt:P1435 ?tip;
            wdt:P625 ?coor.
  OPTIONAL { ?monument wdt:P18 ?image }.
  ?tip rdfs:label ?layer FILTER(Lang(?layer)='ro')
  SERVICE wikibase:label { bd:serviceParam wikibase:language "ro". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?coor"):::projected v5("?image"):::projected v1("?layer"):::projected v2("?monument"):::projected v3("?tip") a1((" ")) c9(["bd:serviceParam"]):::iri c4(["wd:Q28861097"]):::iri c1(["ro"]):::literal f0[["?layer = 'ro'"]] f0 --> v1 v2 --"wdt:P1435"--> a1 a1 --"wdt:P279"--> c4 v2 --"wdt:P1435"--> v3 v2 --"wdt:P625"--> v4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P18".-> v5 end v3 --"rdfs:label"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c1 end