Difference between revisions of "Project:Adtech/Cleanup/Template"

From Wikibase Personal data
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{SPARQL|label={{{basis_label}}} AND {{{extra_label}}}
 
{{SPARQL|label={{{basis_label}}} AND {{{extra_label}}}
query=SELECT ?item ?itemLabel WHERE
+
|query=SELECT ?item ?itemLabel WHERE
 
{
 
{
 
   ?item {{{basis}}}.      # {{{basis_label}}}
 
   ?item {{{basis}}}.      # {{{basis_label}}}
 
   ?item {{{extra}}}.    # {{{extra_label}}}
 
   ?item {{{extra}}}.    # {{{extra_label}}}
 
 
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
 
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
 
}
 
}
 +
}}
  
 
{{SPARQL|label={{{basis_label}}} MINUS {{{extra_label}}}
 
{{SPARQL|label={{{basis_label}}} MINUS {{{extra_label}}}
query=SELECT ?item ?itemLabel WHERE
+
|query=SELECT ?item ?itemLabel WHERE
 
{
 
{
 
   ?item {{{basis}}}.      # {{{basis_label}}}
 
   ?item {{{basis}}}.      # {{{basis_label}}}
Line 17: Line 17:
 
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
 
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
 
}
 
}
 +
}}

Latest revision as of 20:29, 6 January 2020

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 WHERE
{
   ?item {{{basis}}}.      # {{{basis_label}}}
   ?item {{{extra}}}.    # {{{extra_label}}}
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

{{{basis_label}}} AND {{{extra_label}}} (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 WHERE
{
   ?item {{{basis}}}.      # {{{basis_label}}}
   MINUS {
       ?item {{{extra}}}.    # {{{extra_label}}}
   }.
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

{{{basis_label}}} MINUS {{{extra_label}}} (embedded)