Skip to content

Commit

Permalink
add 03-15 (partial)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoqi Zhao committed Oct 3, 2024
1 parent 5528e95 commit 7af28ec
Show file tree
Hide file tree
Showing 4 changed files with 914 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ch03/03-15/ex166.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# filename: ex166.rq

PREFIX dc: <http://purl.org/dc/elements/1.1/>

SELECT ?title
FROM <http://dig.csail.mit.edu/2008/webdav/timbl/foaf.rdf>
# FROM <foaf.ttl>
# FROM <foaf.rdf>
WHERE {
?s dc:title ?title .
}
17 changes: 17 additions & 0 deletions ch03/03-15/ex167.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# filename: ex167.rq

PREFIX cat: <http://dbpedia.org/resource/Category:>
PREFIX skos: <http://www.w3.org/2024/02/skos/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>

SELECT ?p ?o
WHERE {
SERVICE <http://DBpedia.org/sparql>
{
SELECT ?p ?o
WHERE {
<http://dbpedia.org/resource/Joseph_Hocking> ?p ?o .}
}
}
Loading

0 comments on commit 7af28ec

Please sign in to comment.