SPARQL Endpoint

The public SPARQL endpoint of the Microsoft Academic Knowledge Graph is provided at

https://makg.org/sparql

2021-03-22: The SPARQL endpoint uses an updated MAKG version from 2020-06 with modifications described here.

Example SPARQL queries (updated):

  • Title and publication date of 100 papers that contain both “hydrogen” and “oxygen” in the title or abstract:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX magc: <https://makg.org/class/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX fabio: <http://purl.org/spar/fabio/>
PREFIX prism: <http://prismstandard.org/namespaces/basic/2.0/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

SELECT distinct ?paperTitle ?paperPubDate
WHERE {
?paper rdf:type magc:Paper .
?paper prism:keyword "hydrogen"^^xsd:string .
?paper prism:keyword "oxygen"^^xsd:string .
?paper fabio:hasDiscipline ?field .
?paper dcterms:title ?paperTitle .
?paper prism:publicationDate ?paperPubDate .
}
LIMIT 100
  • Top 10 institutions in the area of medicine, ranked by the number of citations of their papers:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX magp: <https://makg.org/property/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX fabio: <http://purl.org/spar/fabio/>
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

SELECT ?affilName ?citCountAffil
WHERE {
?field rdf:type <https://makg.org/class/FieldOfStudy> .
?field foaf:name "Medicine"^^xsd:string .
?paper fabio:hasDiscipline ?field .
?paper dcterms:creator ?author .
?author org:memberOf ?affiliation .
?affiliation foaf:name ?affilName .
?affiliation magp:citationCount ?citCountAffil .
}
GROUP BY ?affilName ?citCountAffil
ORDER BY DESC(?citCountAffil)
LIMIT 100
  • Top 100 researchers which have been most frequently to conferences in Honolulu, Hawaii:
PREFIX magp: <https://makg.org/property/>
PREFIX dcterms: <http://purl.org/dc/terms/> 
PREFIX foaf: <http://xmlns.com/foaf/0.1/> 
PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX dbr: <http://dbpedia.org/resource/>

SELECT ?authorName (COUNT(?confInstance) AS ?freq) 
WHERE {
 ?paper dcterms:creator ?author .
 ?author foaf:name ?authorName .
 ?paper magp:appearsInConferenceInstance ?confInstance .
 ?confInstance dbo:location dbr:Honolulu . }
GROUP BY ?authorName 
ORDER BY DESC(?freq)
LIMIT 100