Skip to content

Commit

Permalink
add 03-16 (code only)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoqi Zhao committed Oct 3, 2024
1 parent 7af28ec commit fb69997
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ch03/03-15/ex170.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# filename: ex170.rq

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX gp: <http://wifo5-04.informatik.uni-mannheim.de/gutendata/resource/people/>

SELECT ?p ?o
WHERE {
SERVICE <http://wifo5-04.infomatik.uni-mannheim.de/gutendata/sparql>
{
gp:Hocking_joseph ?p ?o .
}
}
19 changes: 19 additions & 0 deletions ch03/03-16/ex172.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# ex172.rq

PREFIX cat: <http://dbpedia.org/resource/Category:>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX gp: <http://wifo5-04.informatik.uni-mannheim.de/gutendata/resource/people/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2024/02/skos/core#>

SELECT ?dbpProperty ?dbpValue ?gutenProperty ?gutenValue
WHERE {
SERVICE <http://DBpedia.org/sparql> {
<http://dbpedia.org/resource/Joseph_Hocking> ?dbpProperty ?dbpValue .
}
SERVICE <http://wifo5-04.informatik.uni-mannheim.de/gutendata/sparql> {
gp:Hocking_Joseph ?gutenProperty ?gutenValue .
}
}

0 comments on commit fb69997

Please sign in to comment.