Skip to content

Commit

Permalink
add 004
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoqi Zhao committed Jan 15, 2024
1 parent fc255d2 commit d6da20a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ch01/ex001.rq
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# filename: ex001.rq same as ex008.rq

PREFIX ab: <http://learningsparql.com/ns/addressbook#>
SELECT ?person
WHERE
Expand Down
9 changes: 9 additions & 0 deletions ch01/ex006.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# filename: ex006.rq

SELECT ?craigEmail
WHERE
{
<http://learningsparql.com/ns/addressbook#craig>
<http://learningsparql.com/ns/addressbook#email>
?craigEmail .
}
10 changes: 10 additions & 0 deletions ch01/ex007.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# filename: ex007.rq

PREFIX ab: <http://learningsparql.com/ns/addressbook#>

SELECT ?craigEmail
FROM <ex002.ttl>
WHERE
{
ab:craig ab:email ?craigEmail .
}
10 changes: 10 additions & 0 deletions ch01/ex010.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# filename: ex010.rq

PREFIX ab: <http://learningsparql.com/ns/addressbook#>
SELECT ?subject ?propertyName ?propertyValue
FROM <ex002.ttl>
WHERE
{
# ab:cindy ?propertyName ?propertyValue .
?subject ?propertyName ?propertyValue .
}

0 comments on commit d6da20a

Please sign in to comment.