MediaWiki:Gadget-QuickPresets/doc

From Wikibase Personal data
< MediaWiki:Gadget-QuickPresets
Revision as of 12:50, 3 January 2020 by Podehaye (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is the documentation for the QuickPresets plugin. This is heavily modified from a plugin available on Wikidata, whose doc you should read as well.

The local version uses the following files:

Improving the presets

Example queries to assert what is being done:

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/>
SELECT ?item ?itemLabel ?concern ?concernLabel WHERE {
  ?item pdiot:P3/pdiot:P4* pdio:Q2408.
  ?item pdiot:P110 ?concern
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "en" . 
  }
}

Try it (embedded)


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/>
SELECT ?item ?itemLabel ?concern ?concernLabel WHERE {
  ?item pdiot:P110 ?concern
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "en" . 
  }
}

Try it (embedded)