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

From Wikibase Personal data
Jump to navigation Jump to search
Line 4: Line 4:
 
   ?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". }
 
}
 
}

Revision as of 20:25, 6 January 2020

{{SPARQL|label={{{basis_label}}} AND {{{extra_label}}} query=SELECT ?item ?itemLabel WHERE {

  ?item {{{basis}}}.      # {{{basis_label}}}
  ?item {{{extra}}}.    # {{{extra_label}}}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }

}

{{SPARQL|label={{{basis_label}}} MINUS {{{extra_label}}} query=SELECT ?item ?itemLabel WHERE {

  ?item {{{basis}}}.      # {{{basis_label}}}
  MINUS {
      ?item {{{extra}}}.    # {{{extra_label}}}
  }.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }

}