-
-
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
Oct 3, 2024
1 parent
9c627b7
commit 59966c0
Showing
5 changed files
with
84 additions
and
5 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
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,40 @@ | ||
# filename: ex145.ttl (extended from ex138.ttl) | ||
|
||
@prefix e: <http://learningsparql.com/ns/expenses#> . | ||
@prefix d: <http://learningsparql.com/ns/data#> . | ||
|
||
d:m40392 e:description "breakfast" ; | ||
e:date "2011-10-14" ; | ||
e:amount 6.53 . | ||
|
||
d:m40393 e:description "lunch" ; | ||
e:date "2011-10-14" ; | ||
e:amount 11.13 . | ||
|
||
d:m40394 e:description "dinner" ; | ||
e:date "2011-10-14" ; | ||
e:amount 28.30 . | ||
|
||
d:m40395 e:description "breakfast" ; | ||
e:date "2011-10-15" ; | ||
e:amount 4.32 . | ||
|
||
d:m40396 e:description "lunch" ; | ||
e:date "2011-10-15" ; | ||
e:amount 9.45 . | ||
|
||
d:m40397 e:description "dinner" ; | ||
e:date "2011-10-15" ; | ||
e:amount 31.45 . | ||
|
||
d:m40398 e:description "breakfast" ; | ||
e:date "2011-10-16" ; | ||
e:amount 6.65 . | ||
|
||
d:m40399 e:description "lunch" ; | ||
e:date "2011-10-16" ; | ||
e:amount 10.00 . | ||
|
||
d:m40400 e:description "dinner" ; | ||
e:date "2011-10-16" ; | ||
e:amount 25.05 . |
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,12 @@ | ||
# filename: ex146.rq | ||
|
||
PREFIX e: <http://learningsparql.com/ns/expenses#> | ||
|
||
SELECT ?description ?date ?amount | ||
FROM <ex145.ttl> | ||
WHERE { | ||
?meal e:description ?description ; | ||
e:date ?date ; | ||
e:amount ?amount . | ||
} | ||
ORDER BY ?amount |
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,12 @@ | ||
# filename: ex148.rq | ||
|
||
PREFIX e: <http://learningsparql.com/ns/expenses#> | ||
|
||
SELECT ?description ?date ?amount | ||
FROM <ex145.ttl> | ||
WHERE { | ||
?meal e:description ?description ; | ||
e:date ?date ; | ||
e:amount ?amount . | ||
} | ||
ORDER BY DESC(?amount) |
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,12 @@ | ||
# filename: ex148.rq | ||
|
||
PREFIX e: <http://learningsparql.com/ns/expenses#> | ||
|
||
SELECT ?description ?date ?amount | ||
FROM <ex145.ttl> | ||
WHERE { | ||
?meal e:description ?description ; | ||
e:date ?date ; | ||
e:amount ?amount . | ||
} | ||
ORDER BY ?description ?amount |