Difference between revisions of "MediaWiki:Gadget-QuickPresets/doc"

From Wikibase Personal data
Jump to navigation Jump to search
(Created page with "This is the documentation for the QuickPresets plugin. This is heavily modified from a plugin available [https://www.wikidata.org/wiki/User:MichaelSchoenitzer/quickpresets on...")
 
 
Line 7: Line 7:
 
* [[MediaWiki:Gadget-QuickPresets/defaultconf.css]] for CSS;
 
* [[MediaWiki:Gadget-QuickPresets/defaultconf.css]] for CSS;
 
* [[MediaWiki:Gadget-QuickPresets/defaultconf.js]] for default configuration of the presets.
 
* [[MediaWiki:Gadget-QuickPresets/defaultconf.js]] for default configuration of the presets.
 +
 +
= Improving the presets =
 +
Example queries to assert what is being done:
 +
 +
{{SPARQL|query=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" .
 +
  }
 +
}
 +
}}
 +
 +
{{SPARQL|query=SELECT ?item ?itemLabel ?concern ?concernLabel WHERE {
 +
  ?item pdiot:P110 ?concern
 +
  SERVICE wikibase:label {
 +
    bd:serviceParam wikibase:language "en" .
 +
  }
 +
}
 +
}}

Latest revision as of 12:50, 3 January 2020

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)