Skip to content

Commit

Permalink
add 05-01 part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoqi Zhao committed Oct 5, 2024
1 parent 991bb52 commit 565d8b2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ch05/05-01/part2/ex224.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# filename: ex224.ttl

@prefix d: <http://learningsparql.com/ns/data#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

d:item1 rdfs:label "sample string 1" .
d:item2 rdfs:label 'sample string 2' .
d:item3 rdfs:label 'These quotes are "ironic" quotes' .
d:item4 rdfs:label "These too are \"ironic\" quotes" .
d:item5 rdfs:label "McDonald's is not my kind of place." .
d:item6 rdfs:label """this
has tow carriage returns
in
the middle
""" .
10 changes: 10 additions & 0 deletions ch05/05-01/part2/ex225.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# filename: ex225.rq

PREFIX d: <http://learningsparql.com/ns/data#>

SELECT ?s ?o
FROM <ex224.ttl>
WHERE {
?s ?p ?o .
}
ORDER BY ?s

0 comments on commit 565d8b2

Please sign in to comment.