Objects of :hasTributary must be instances of :River
PREFIX : <http://worldmind.ai/rivers-v4#> SELECT $this ?tributary WHERE { $this :hasTributary ?tributary . FILTER NOT EXISTS { ?tributary rdf:type :River . } }
PREFIX : <http://worldmind.ai/rivers-v4#> SELECT $this WHERE { $this :sourceElevation ?elev . FILTER (?elev <= 0) }
PREFIX : <http://worldmind.ai/rivers-v4#> SELECT $this WHERE { $this :length ?len . FILTER (?len <= 0) }
PREFIX : <http://worldmind.ai/rivers-v4#> SELECT $this WHERE { $this :discharge ?dis . FILTER (?dis <= 0) }
Mouth elevation should typically be >= 0
PREFIX : <http://worldmind.ai/rivers-v4#> SELECT $this WHERE { $this :mouthElevation ?mouth . FILTER (?mouth < -100) }
Source elevation must be greater than mouth elevation
PREFIX : <http://worldmind.ai/rivers-v4#> SELECT $this WHERE { $this :sourceElevation ?src . $this :mouthElevation ?mouth . FILTER (?src <= ?mouth) }
If traversing US state, river should be in US country
PREFIX : <http://worldmind.ai/rivers-v4#> PREFIX dbr: <http://dbpedia.org/resource/> SELECT $this WHERE { $this :traverses ?state . ?state rdf:type :State . FILTER NOT EXISTS { $this :inCountry dbr:United_States . } }