query-48775b5bf19cbd32c2fa069969e1c280

rq turtle/ttl

Compound SS ingest query, with checking of presence of paper on the SS wiki.

Reverse chronological order used for selection.

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

SELECT DISTINCT ?item ?itemLabel ?pmcid ?journalLabel ?title ?date ?licenseLabel ?mainsubjectLabel WHERE { ?item wdt:P31 wd:Q7318358; wdt:P5008 wd:Q55439927; wdt:P932 ?pmcid; wdt:P1433 ?journal; wdt:P1476 ?title; wdt:P577 ?date; wdt:P275 ?license; wdt:P921 ?mainsubject. ?mainsubject wdt:P1995 ?spec. ?spec wdt:P361* wd:Q162606. MINUS {?item wdt:P275 wd:Q36795408} #Remove these ND licences MINUS {?item wdt:P275 wd:Q6937225} MINUS {?item wdt:P275 wd:Q19125045} MINUS {?item wdt:P275 wd:Q24082749}

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". }

    }

ORDER BY DESC(?date) LIMIT 500

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#>
#Compound SS ingest query, with checking of presence of paper on the SS wiki. 
#Reverse chronological order used for selection.

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

SELECT DISTINCT ?item ?itemLabel ?pmcid ?journalLabel ?title ?date ?licenseLabel ?mainsubjectLabel
WHERE {
         ?item wdt:P31 wd:Q7318358;
               wdt:P5008 wd:Q55439927;
               wdt:P932 ?pmcid;
               wdt:P1433 ?journal;
               wdt:P1476 ?title;
               wdt:P577 ?date;
               wdt:P275 ?license;
               wdt:P921 ?mainsubject. 
  ?mainsubject wdt:P1995 ?spec.
          ?spec wdt:P361* wd:Q162606.
         MINUS {?item wdt:P275 wd:Q36795408} #Remove these ND licences
         MINUS {?item wdt:P275 wd:Q6937225}
         MINUS {?item wdt:P275 wd:Q19125045}
         MINUS {?item wdt:P275 wd:Q24082749}

  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". }

        }
ORDER BY
 DESC(?date)
LIMIT 500

Query found at