Skip to content

Instantly share code, notes, and snippets.

@abroniewski
Last active May 18, 2022 22:31
Show Gist options
  • Select an option

  • Save abroniewski/79226b50ba74d973bb637bf2ae3c2d89 to your computer and use it in GitHub Desktop.

Select an option

Save abroniewski/79226b50ba74d973bb637bf2ae3c2d89 to your computer and use it in GitHub Desktop.
Query 4 - SDM Lab 3
# 4. Find all the papers written by a given author that where published in database conferences.
given_author = "Firstname Lastname"
@prefix : <http://example.org/> .
SELECT ?papers
WHERE
{
?paper rdf:type :Paper ;
:submitted ?submission .
?author rdf:type :author ;
rdf:label given_author
:participatedIn ?paper .
?submission rdf:type :Submission ;
:publishedIn ?venue .
?venue rdf:type :Conference .
:relatedTo ?subject .
?subject rdf:type :SubjectArea ;
rdfs:label "database" .
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment