User:Binnette/Sophox

From OpenStreetMap Wiki
Jump to navigation Jump to search

Sophox: QuickFix

Add Default tags to Burger King

#defaultView:Editor{ "comment":"Add default tags to Burger King", "taskId":"depr_fast_food_burger_king", "labels":{ "a":"add following tags" }, "vote":false }
SELECT
  ?id  ?loc
  (osmt:cuisine         as ?tag_a1)  ('burger'         as ?val_a1)
  (osmt:brand           as ?tag_a2)  ('Burger King'    as ?val_a2)
  (osmt:brand:wikidata  as ?tag_a3)  ('Q177054'        as ?val_a3)
  (osmt:brand:wikipedia as ?tag_a4)  ('en:Burger King' as ?val_a4)
  (osmt:takeaway        as ?tag_a5)  ('yes'            as ?val_a5)
WHERE {
  ?id osmt:amenity 'fast_food' .
  ?id osmt:name 'Burger King' .
  ?id osmm:loc ?loc .
  FILTER NOT EXISTS { ?id osmt:brand ?brand. }
  FILTER NOT EXISTS { ?id osmt:brand:wikidata ?wikidata. }
  FILTER NOT EXISTS { ?id osmt:brand:wikipedia ?wikipedia. }
}

Run it (edit query)