Item talk:Q3646: Difference between revisions

No edit summary
 
Line 22: Line 22:
= Other queries =
= Other queries =


== Handling competing location claims =
== Handling competing location claims ==


One core issue we deal with is rectifying cases where we have multiple sources of mine information asserting different geographic locations (generally point coordinates). We've teed up a few examples to work through, both in terms of how we model the information and in how we reason on what we encode.
One core issue we deal with is rectifying cases where we have multiple sources of mine information asserting different geographic locations (generally point coordinates). We've teed up a few examples to work through, both in terms of how we model the information and in how we reason on what we encode.
Line 34: Line 34:
   ?mine wdt:P1 wd:Q3646 ;  # Instance of mine
   ?mine wdt:P1 wd:Q3646 ;  # Instance of mine
           wdt:P6 ?location .  # coordinate location property
           wdt:P6 ?location .  # coordinate location property
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
}
GROUP BY ?mine ?mineLabel
GROUP BY ?mine ?mineLabel
HAVING (COUNT(?location) > 1)
HAVING (COUNT(?location) > 1)
</sparql>
</sparql>