Project:SPARQL/examples: Difference between revisions

m
Line 967: Line 967:
                     filter exists { ?wikidata wdt:P131 wd:Q84 . } # (only applies to the London postal areas at the moment)
                     filter exists { ?wikidata wdt:P131 wd:Q84 . } # (only applies to the London postal areas at the moment)
                 }
                 }
       BIND(IF(BOUND(?geo1),?geo1,?terr_geo) AS ?geo) .  # if geo1 available, use that, if not use terr_geo
       BIND(COALESCE(?geo1, ?terr_geo) AS ?geo).  # if geo1 available, use that, if not use terr_geo
     } # /wikidata service   
     } # /wikidata service   
     } #/wikidata optional
     } #/wikidata optional
579

edits