Skip to content

Commit

Permalink
prepare
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoqi Zhao committed Oct 4, 2024
1 parent e58fc34 commit 1e7389a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
Binary file modified LearningSPARQL.pptx
Binary file not shown.
7 changes: 7 additions & 0 deletions test/ask-amazon.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
PREFIX prop: <http://dbpedia.org/property/>
ASK
{
<http://dbpedia.org/resource/Amazon_River> prop:length ?amazon .
<http://dbpedia.org/resource/Nile> prop:length ?nile .
FILTER(?amazon = ?nile) .
}
8 changes: 8 additions & 0 deletions test/river.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
PREFIX prop: <http://dbpedia.org/property/>
SELECT *
WHERE
{
<http://dbpedia.org/resource/Amazon_River> prop:length ?amazon .
<http://dbpedia.org/resource/Nile> prop:length ?nile .
# FILTER(?amazon < ?nile) .
}
4 changes: 4 additions & 0 deletions test/test-construct.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

CONSTRUCT { ?s ?p ?o . }
WHERE { VALUES ?p { rdfs:subClassOf rdfs:subPropertyOf rdfs:domain rdfs:range} ?s ?p ?o }

0 comments on commit 1e7389a

Please sign in to comment.