Main Page: Difference between revisions
Jump to navigation
Jump to search
OlafJanssen (talk | contribs) |
OlafJanssen (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
Test Wikibase instance for the national library of The Netherlands. | =Test Wikibase instance for the national library of The Netherlands.= | ||
== Quick links== | |||
'''Eigenschappen (properties)''' (namespace = xx) | '''Eigenschappen (properties)''' (namespace = xx) | ||
*[[Special:ListProperties|Alle eigenschappen]] | *[[Special:ListProperties|Alle eigenschappen]] | ||
Line 8: | Line 9: | ||
*[https://kbtestwikibase.wikibase.cloud/wiki/Special:AllPages?from=&to=&namespace=120 Alle items] | *[https://kbtestwikibase.wikibase.cloud/wiki/Special:AllPages?from=&to=&namespace=120 Alle items] | ||
*[[Special:NewItem|Nieuw item aanmaken]] | *[[Special:NewItem|Nieuw item aanmaken]] | ||
== Terminologie == | |||
* https://www.wikidata.org/wiki/Help:Statements | |||
* '''Entity''': een Item (Qnummer) of een Property (Pnummer, Eigenschap) | |||
* A '''statement''' consists of a property(P)-value(Q) pair, for example, "location: Germany." | |||
:* Statements can also be expanded upon, annotated, or contextualized with the addition of optional qualifiers, references, and ranks. | |||
:* The core part of a statement without references and ranks is also called '''claim'''. A claim without qualifiers is also referred to as '''snak.''' (= simplest P-Q pair) | |||
== SPARQL== | == SPARQL== |
Revision as of 14:31, 16 June 2022
Test Wikibase instance for the national library of The Netherlands.
Quick links
Eigenschappen (properties) (namespace = xx)
Items (namespace = 120)
Terminologie
- https://www.wikidata.org/wiki/Help:Statements
- Entity: een Item (Qnummer) of een Property (Pnummer, Eigenschap)
- A statement consists of a property(P)-value(Q) pair, for example, "location: Germany."
- Statements can also be expanded upon, annotated, or contextualized with the addition of optional qualifiers, references, and ranks.
- The core part of a statement without references and ranks is also called claim. A claim without qualifiers is also referred to as snak. (= simplest P-Q pair)
SPARQL
Setup
- SPARQL-queries zijn mogelijk via https://kbtestwikibase.wikibase.cloud/query/
- Er moeten voorlopig verplicht prefixen meegegeven worden (volgens de prefixen die in Wikidata gebruikt worden):
PREFIX wd: <https://kbtestwikibase.wikibase.cloud/entity/>
PREFIX wds: <https://kbtestwikibase.wikibase.cloud/entity/statement/>
PREFIX wdv: <https://kbtestwikibase.wikibase.cloud/value/>
PREFIX wdt: <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#>
Wat zit er in de Wikibase?
- Alle Ps in deze Wikibase
- Alle Qs in deze Wikibase
- Alle Ps en Qs samen
- Claim ids (GUID) for Qnumbers in this Wikibase
Eenvoudige zoekvragen
Interactie via de API
Endpoint
Via URLs
- Een voorbeeld om item Q1 op te vragen als JSON: https://kbtestwikibase.wikibase.cloud/w/api.php?action=wbgetentities&ids=Q1&format=json
- Q1 en Q2 samen als JSON: https://kbtestwikibase.wikibase.cloud/w/api.php?action=wbgetentities&ids=Q1%7CQ2&format=jsonfm (of als XML)
Via Python
- https://github.com/KBNLresearch/wikibase-api/tree/master/examples-kb - Examples on how to read, write, delete, update Ps, Qs, claims, qualifiers and references in https://kbtestwikibase.wikibase.cloud using Python
- Docs/manual are on https://wikibase-api.readthedocs.io/en/latest/.