Project:SPARQL/examples: Difference between revisions

Line 88: Line 88:
       ?wikidata wdt:P31 ?type .
       ?wikidata wdt:P31 ?type .
       FILTER NOT EXISTS {?article schema:about ?wikidata .}
       FILTER NOT EXISTS {?article schema:about ?wikidata .}
    }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  }
</sparql>
== species observed through iNaturalist not being described by an English Wikipedia article ==
<sparql tryit="1" list="1">
PREFIX wbt: <http://biodiversity.wiki.opencura.com/prop/direct/>
PREFIX wb: <http://biodiversity.wiki.opencura.com/entity/>
SELECT DISTINCT ?taxon ?taxonLabel ?wikidata WHERE {
    ?taxon wbt:P13 wb:Q131918 ;
          wbt:P11 ?wikidata .
  SERVICE <https://query.wikidata.org/sparql> {
      ?wikidata wdt:P31 [] .
      MINUS {?article schema:about ?wikidata ;schema:isPartOf <https://en.wikipedia.org/> ;schema:inLanguage "en" .}
     }
     }
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
   }
   }
</sparql>
</sparql>
Bots, Bureaucrats, emailconfirmed, Administrators
603,740

edits