Difference between revisions of "Help:SPARQL"
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
== Specifics here == | == Specifics here == | ||
+ | On this site, it is customary to use some prefixes: | ||
+ | |||
+ | {{#tag:syntaxhighlight|PREFIX pdio: <https://wiki.personaldata.io/entity/> | ||
+ | PREFIX pdiot: <https://wiki.personaldata.io/prop/direct/> | ||
+ | PREFIX pdiop: <https://wiki.personaldata.io/prop/> | ||
+ | PREFIX pdiops: <https://wiki.personaldata.io/prop/statement/> | ||
+ | PREFIX pdiopq: <https://wiki.personaldata.io/prop/qualifier/>}} | ||
== Example queries here == | == Example queries here == | ||
[[Category:Help]] | [[Category:Help]] |
Revision as of 20:28, 20 January 2020
SPARQL is the query language used by the query service.
You can read more about SPARQL here, on Wikidata. This has different parts:
- tutorial
- Building a Query examples
- very very very many examples on Wikidata -- this is the best way to learn, at least for me
- Wikidata Query Service user manual, which includes an explication of the 'label' service
- a description of the different views on results that are possible; note that each view expects the data to arrive for each row in a specific order as a tuple, even bound to a variable of fixed name
- a gentle introduction to the Wikidata Query Service
Specifics here
On this site, it is customary to use some prefixes:
PREFIX pdio: <https://wiki.personaldata.io/entity/>
PREFIX pdiot: <https://wiki.personaldata.io/prop/direct/>
PREFIX pdiop: <https://wiki.personaldata.io/prop/>
PREFIX pdiops: <https://wiki.personaldata.io/prop/statement/>
PREFIX pdiopq: <https://wiki.personaldata.io/prop/qualifier/>