Main Page: Difference between revisions
Jump to navigation
Jump to search
OlafJanssen (talk | contribs) No edit summary |
OlafJanssen (talk | contribs) No edit summary |
||
Line 9: | Line 9: | ||
*[[Special:NewItem|Nieuw item aanmaken]] | *[[Special:NewItem|Nieuw item aanmaken]] | ||
==API== | |||
Een voorbeeld om item Q1 op te vragen als JSON: https://kbtestwikibase.wikibase.cloud/api.php?action=wbgetentities&ids=Q1&format=json | |||
== SPARQL== | |||
* SPARQL-queries zijn mogelijk via https://kbtestwikibase.wikibase.cloud/query/ | |||
* [https://kbtestwikibase.wikibase.cloud/query/#%23kbwb%20%3D%20KB%20Wikibase%0APREFIX%20kbwb%3A%20%3Chttps%3A%2F%2Fkbtestwikibase.wikibase.cloud%2Fentity%2F%3E%0APREFIX%20kbwbt%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%20WHERE%0A%7B%0A%3Fding%20kbwbt%3AP3%20kbwb%3AQ2%20%23Geef%20me%20alle%20dingen%20die%20een%20nationale%20bibliotheek%20%28Q2%29%20zijn%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D Hele basale SPARQL-zoekvraag] | * [https://kbtestwikibase.wikibase.cloud/query/#%23kbwb%20%3D%20KB%20Wikibase%0APREFIX%20kbwb%3A%20%3Chttps%3A%2F%2Fkbtestwikibase.wikibase.cloud%2Fentity%2F%3E%0APREFIX%20kbwbt%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%20WHERE%0A%7B%0A%3Fding%20kbwbt%3AP3%20kbwb%3AQ2%20%23Geef%20me%20alle%20dingen%20die%20een%20nationale%20bibliotheek%20%28Q2%29%20zijn%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D Hele basale SPARQL-zoekvraag] | ||
* Er moeten voorlopig verplicht prefixen meegegeven worden: (kbwb = KB Wikibase) | |||
<code> | |||
<nowiki>PREFIX kbwb: <https://kbtestwikibase.wikibase.cloud/entity/></nowiki><br> | |||
<nowiki>PREFIX kbwbs: <https://kbtestwikibase.wikibase.cloud/entity/statement/></nowiki><br> | |||
<nowiki>PREFIX kbwbv: <https://kbtestwikibase.wikibase.cloud/value/></nowiki><br> | |||
<nowiki>PREFIX kbwbt: <https://kbtestwikibase.wikibase.cloud/prop/direct/></nowiki><br> | |||
<nowiki>PREFIX wikibase: <http://wikiba.se/ontology#></nowiki><br> | |||
<nowiki>PREFIX p: <https://kbtestwikibase.wikibase.cloud/prop/></nowiki><br> | |||
<nowiki>PREFIX xsd: <http://www.w3.org/2001/XMLSchema#></nowiki><br> | |||
</code> |
Revision as of 12:15, 10 June 2022
Test Wikibase instance for the national library of The Netherlands.
Eigenschappen (properties)
Items
API
Een voorbeeld om item Q1 op te vragen als JSON: https://kbtestwikibase.wikibase.cloud/api.php?action=wbgetentities&ids=Q1&format=json
SPARQL
- SPARQL-queries zijn mogelijk via https://kbtestwikibase.wikibase.cloud/query/
- Hele basale SPARQL-zoekvraag
- Er moeten voorlopig verplicht prefixen meegegeven worden: (kbwb = KB Wikibase)
PREFIX kbwb: <https://kbtestwikibase.wikibase.cloud/entity/>
PREFIX kbwbs: <https://kbtestwikibase.wikibase.cloud/entity/statement/>
PREFIX kbwbv: <https://kbtestwikibase.wikibase.cloud/value/>
PREFIX kbwbt: <https://kbtestwikibase.wikibase.cloud/prop/direct/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX p: <https://kbtestwikibase.wikibase.cloud/prop/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>