query-381e9889f7559d391648f29fce4edf2e

rq turtle/ttl

Filtering query to select articles from the focus list not on the ScienceSource wiki

PREFIX ss: http://sciencesource.wmflabs.org/entity/ PREFIX sst: http://sciencesource.wmflabs.org/prop/direct/

SELECT DISTINCT ?item ?itemLabel WHERE {

      ?item wdt:P5008 wd:Q55439927 ;
            wdt:P921 ?mainsubject .
      ?mainsubject wdt:P1995 wd:Q327657 .

   MINUS { SERVICE <http://sciencesource-query.wmflabs.org/proxy/wdqs/bigdata/namespace/wdq/sparql>
   { ?articleitem sst:P3 ss:Q4;
        sst:P2 ?stritem. }

      BIND(substr(str(?item),32,39) AS ?stritem) .}
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
    }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Filtering query to select articles from the focus list not on the ScienceSource wiki

PREFIX ss: <http://sciencesource.wmflabs.org/entity/>
PREFIX sst: <http://sciencesource.wmflabs.org/prop/direct/>

SELECT DISTINCT ?item ?itemLabel
  WHERE 
        {

          ?item wdt:P5008 wd:Q55439927 ;
                wdt:P921 ?mainsubject .
          ?mainsubject wdt:P1995 wd:Q327657 .

       MINUS { SERVICE <http://sciencesource-query.wmflabs.org/proxy/wdqs/bigdata/namespace/wdq/sparql>
       { ?articleitem sst:P3 ss:Q4;
            sst:P2 ?stritem. }

          BIND(substr(str(?item),32,39) AS ?stritem) .}
        SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
        }

Query found at