Main Page: Difference between revisions

Jump to navigation Jump to search
1,002 bytes added ,  2 years ago
Line 61: Line 61:
=== Eenvoudige zoekvragen ===
=== Eenvoudige zoekvragen ===
* [https://kbtestwikibase.wikibase.cloud/query/#PREFIX%20bd%3A%20%3Chttp%3A%2F%2Fwww.bigdata.com%2Frdf%23%3E%0APREFIX%20wikibase%3A%20%3Chttp%3A%2F%2Fwikiba.se%2Fontology%23%3E%0APREFIX%20wdt%3A%20%3Chttps%3A%2F%2Fkbtestwikibase.wikibase.cloud%2Fprop%2Fdirect%2F%3E%0APREFIX%20p%3A%20%3Chttps%3A%2F%2Fkbtestwikibase.wikibase.cloud%2Fprop%2F%3E%0APREFIX%20ps%3A%20%3Chttp%3A%2F%2Fwww.wikidata.org%2Fprop%2Fstatement%2F%3E%0APREFIX%20rdf%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0A%0ASELECT%20%3Fp%20%3FpLabel%20%3FpDescription%20%3FpAltLabel%20%3Fw%20WHERE%20%7B%0A%20%20%3Fp%20rdf%3Atype%20wikibase%3AProperty.%0A%20%20OPTIONAL%7B%3Fp%20wdt%3AP1%20%3Fw.%7D%20%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D%0AORDER%20BY%20ASC%28xsd%3Ainteger%28STRAFTER%28STR%28%3Fp%29%2C%20%27P%27%29%29%29 Wikidata-equivalenten van properties in deze Wikibase] (= property mapping van deze Wikibase naar Wikidata) - WERKT NOG NIET!! --> bug in de SPARQL-indexer? https://phabricator.wikimedia.org/T311040
* [https://kbtestwikibase.wikibase.cloud/query/#PREFIX%20bd%3A%20%3Chttp%3A%2F%2Fwww.bigdata.com%2Frdf%23%3E%0APREFIX%20wikibase%3A%20%3Chttp%3A%2F%2Fwikiba.se%2Fontology%23%3E%0APREFIX%20wdt%3A%20%3Chttps%3A%2F%2Fkbtestwikibase.wikibase.cloud%2Fprop%2Fdirect%2F%3E%0APREFIX%20p%3A%20%3Chttps%3A%2F%2Fkbtestwikibase.wikibase.cloud%2Fprop%2F%3E%0APREFIX%20ps%3A%20%3Chttp%3A%2F%2Fwww.wikidata.org%2Fprop%2Fstatement%2F%3E%0APREFIX%20rdf%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0A%0ASELECT%20%3Fp%20%3FpLabel%20%3FpDescription%20%3FpAltLabel%20%3Fw%20WHERE%20%7B%0A%20%20%3Fp%20rdf%3Atype%20wikibase%3AProperty.%0A%20%20OPTIONAL%7B%3Fp%20wdt%3AP1%20%3Fw.%7D%20%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D%0AORDER%20BY%20ASC%28xsd%3Ainteger%28STRAFTER%28STR%28%3Fp%29%2C%20%27P%27%29%29%29 Wikidata-equivalenten van properties in deze Wikibase] (= property mapping van deze Wikibase naar Wikidata) - WERKT NOG NIET!! --> bug in de SPARQL-indexer? https://phabricator.wikimedia.org/T311040
<sparql tryit="1">
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <https://kbtestwikibase.wikibase.cloud/prop/direct/>
PREFIX p: <https://kbtestwikibase.wikibase.cloud/prop/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?p ?pLabel ?pDescription ?pAltLabel ?w WHERE {
  ?p rdf:type wikibase:Property.
  OPTIONAL{?p wdt:P1 ?w.}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ASC(xsd:integer(STRAFTER(STR(?p), 'P')))
</sparql>
* [https://kbtestwikibase.wikibase.cloud/query/#%23kbwb%20%3D%20KB%20Wikibase%0APREFIX%20wd%3A%20%3Chttps%3A%2F%2Fkbtestwikibase.wikibase.cloud%2Fentity%2F%3E%0APREFIX%20wdt%3A%20%3Chttps%3A%2F%2Fkbtestwikibase.wikibase.cloud%2Fprop%2Fdirect%2F%3E%0APREFIX%20wikibase%3A%20%3Chttp%3A%2F%2Fwikiba.se%2Fontology%23%3E%0A%0ASELECT%20%3Fding%20%3FdingLabel%20%3FdingDescription%20%20%3FIsEen%20%3FIsEenLabel%20%3FIsEenDescription%20WHERE%0A%7B%0A%3Fding%20wdt%3AP3%20%3FIsEen%20%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22nl%22.%20%7D%0A%7D Dingen die een instantie (P3) zijn van andere dingen]
* [https://kbtestwikibase.wikibase.cloud/query/#%23kbwb%20%3D%20KB%20Wikibase%0APREFIX%20wd%3A%20%3Chttps%3A%2F%2Fkbtestwikibase.wikibase.cloud%2Fentity%2F%3E%0APREFIX%20wdt%3A%20%3Chttps%3A%2F%2Fkbtestwikibase.wikibase.cloud%2Fprop%2Fdirect%2F%3E%0APREFIX%20wikibase%3A%20%3Chttp%3A%2F%2Fwikiba.se%2Fontology%23%3E%0A%0ASELECT%20%3Fding%20%3FdingLabel%20%3FdingDescription%20%20%3FIsEen%20%3FIsEenLabel%20%3FIsEenDescription%20WHERE%0A%7B%0A%3Fding%20wdt%3AP3%20%3FIsEen%20%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22nl%22.%20%7D%0A%7D Dingen die een instantie (P3) zijn van andere dingen]
<sparql tryit="1">
#kbwb = KB Wikibase
PREFIX wd: <https://kbtestwikibase.wikibase.cloud/entity/>
PREFIX wdt: <https://kbtestwikibase.wikibase.cloud/prop/direct/>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?ding ?dingLabel ?dingDescription  ?IsEen ?IsEenLabel ?IsEenDescription WHERE
{
?ding wdt:P3 ?IsEen
  SERVICE wikibase:label { bd:serviceParam wikibase:language "nl". }
}
</sparql>


== Interactie via de API ==
== Interactie via de API ==
emailconfirmed
952

edits

Navigation menu