-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Xiaoqi Zhao
committed
Sep 21, 2024
1 parent
323e98e
commit 7e35102
Showing
8 changed files
with
96 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# filename: ex054.ttl | ||
|
||
@prefix ab: <http://learningsparql.com/ns/addressbook#> | ||
@prefix d: <http://learningsparql.com/ns/data#> | ||
|
||
d:i0432 ab:firstName "Richard" . | ||
d:i0432 ab:lastName "Mutt" . | ||
d:i0432 ab:homeTel "(229) 276-5135" . | ||
d:i0432 ab:nick "Dick" . | ||
d:i0432 ab:email "[email protected]" . | ||
|
||
d:i9771 ab:firstName "Cindy" . | ||
d:i9771 ab:lastName "Marchall" . | ||
d:i9771 ab:homeTel "(245) 646-5488" . | ||
d:i9771 ab:email "[email protected]" . | ||
|
||
d:i8301 ab:firstName "Craig" . | ||
d:i8301 ab:lastName "Ellis" . | ||
d:i8301 ab:workTel "(245) 315-5486" . | ||
d:i8301 ab:email "[email protected]" . | ||
d:i8301 ab:email "[email protected]" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# filename: ex055.rq | ||
|
||
PREFIX ab: <http://learningsparql.com/ns/addressbook#> | ||
|
||
SELECT ?first ?last ?workTel | ||
WHERE { | ||
?s ab:firstName ?first ; | ||
ab:lastName ?last ; | ||
ab:workTel ?workTel . | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# filename: ex057.rq | ||
|
||
PREFIX ab: <http://learningsparql.com/ns/addressbook#> | ||
|
||
SELECT ?first ?last ?workTel | ||
WHERE { | ||
?s ab:firstName ?first ; | ||
ab:lastName ?last . | ||
# above line can be ended either in ";" or ".", no error | ||
OPTIONAL { | ||
?s ab:workTel ?workTel . | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# filename: ex059.rq | ||
|
||
PREFIX ab: <http://learningsparql.com/ns/addressbook#> | ||
|
||
SELECT ?first ?last ?workTel ?nick | ||
WHERE { | ||
?s ab:firstName ?first ; | ||
ab:lastName ?last . | ||
# above line can be ended either in ";" or ".", no error | ||
OPTIONAL { | ||
?s ab:workTel ?workTel ; | ||
ab:nick ?nick . | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# filename: ex061.rq | ||
|
||
PREFIX ab: <http://learningsparql.com/ns/addressbook#> | ||
|
||
SELECT ?first ?last ?workTel ?nick | ||
WHERE { | ||
?s ab:firstName ?first ; | ||
ab:lastName ?last . | ||
# above line can be ended either in ";" or ".", no error | ||
OPTIONAL { | ||
?s ab:workTel ?workTel . | ||
} | ||
OPTIONAL { | ||
?s ab:nick ?nick . | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# filename: ex063.rq | ||
|
||
PREFIX ab: <http://learningsparql.com/ns/addressbook#> | ||
|
||
SELECT ?first ?last | ||
WHERE { | ||
?s ab:lastName ?last . | ||
OPTIONAL { | ||
?s ab:nick ?first . | ||
} | ||
OPTIONAL { | ||
?s ab:firstName ?first . | ||
} | ||
} |