Querying: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 20: Line 20:
   ?vilayet wdt:P6 wd:Q5 .  
   ?vilayet wdt:P6 wd:Q5 .  
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
== Federated query with Wikidata ==
This is not working. [https://tinyurl.com/2lo9yejm run]
PREFIX wd: <https://ottgaz.org/entity/>
PREFIX wdt: <https://ottgaz.org/prop/direct/>
PREFIX wd-wd: <http://www.wikidata.org/entity/>
PREFIX wd-wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?sancak ?vilayet
WHERE
{
  ?sancak wdt:P4 ?link .
    SERVICE <https://query.wikidata.org/sparql> {
      ?link wd-wdt:P131 ?vilayet .
    }
  }
  }

Navigation menu