Q2.4: Difference between revisions

From BITPlan cr Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
|title=Works cited by paper after year
|title=Works cited by paper after year
|description=Identify all works cited by paper X and published after year Y
|description=Identify all works cited by paper X and published after year Y
|sparql=PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT DISTINCT ?citingPaper ?citingPaperLabel ?paper ?paperLabel ?publicationDate
WHERE{
  #VALUES ?proceedings {
  # wd:Q27230297
  #}
  VALUES ?paper {
    wd:Q36198963
  }
  #?paper wdt:P1433 ?proceedings.
  ?paper rdfs:label ?paperLabel.
  FILTER(lang(?paperLabel)="en")
  # cites work
  ?citingPaper wdt:P2860 ?paper.
  ?citingPaper rdfs:label ?citingPaperLabel.
  FILTER(lang(?citingPaperLabel)="en")
  ?citingPaper wdt:P577 ?publicationDate
  FILTER(year(?publicationDate)>2015)
}
ORDER BY DESC(?publicationDate)
|tryiturl=Q32kCB
|since=2015-08-25
|since=2015-08-25
|task=Task2
|task=Task2
|storemode=property
|storemode=property
}}
}}
=Freitext=

Revision as of 16:41, 19 March 2023

Query

Query
edit
id  4
name  
title  Works cited by paper after year
description  Identify all works cited by paper X and published after year Y
sparql  
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT DISTINCT ?citingPaper ?citingPaperLabel ?paper ?paperLabel ?publicationDate
WHERE{
  #VALUES ?proceedings {
  # wd:Q27230297
  #}
  VALUES ?paper {
    wd:Q36198963
  }
  #?paper wdt:P1433 ?proceedings. 
  ?paper rdfs:label ?paperLabel. 
  FILTER(lang(?paperLabel)="en")
  # cites work
  ?citingPaper wdt:P2860 ?paper.
  ?citingPaper rdfs:label ?citingPaperLabel.
  FILTER(lang(?citingPaperLabel)="en")
  ?citingPaper wdt:P577 ?publicationDate
  FILTER(year(?publicationDate)>2015)
} 
ORDER BY DESC(?publicationDate)
tryiturl  Q32kCB→Q32kCB
wdqsurl  →6UBF
scholia  →
relevance  
comment  
task  Task2→Task2

Freitext