-
Notifications
You must be signed in to change notification settings - Fork 89
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
Showing
32 changed files
with
526 additions
and
0 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,5 @@ | ||
PREFIX : <http://www.example.org/> | ||
SELECT (MIN(?o) AS ?min) | ||
WHERE { | ||
?s :dec ?o | ||
} |
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,13 @@ | ||
<?xml version="1.0"?> | ||
<sparql xmlns="http://www.w3.org/2005/sparql-results#"> | ||
<head> | ||
<variable name="min"/> | ||
</head> | ||
<results> | ||
<result> | ||
<binding name="min"> | ||
<literal datatype="http://www.w3.org/2001/XMLSchema#decimal">1.0</literal> | ||
</binding> | ||
</result> | ||
</results> | ||
</sparql> |
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,6 @@ | ||
PREFIX : <http://www.example.org/> | ||
SELECT ?s (MIN(?o) AS ?min) | ||
WHERE { | ||
?s ?p ?o | ||
} | ||
GROUP BY ?s |
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,49 @@ | ||
<?xml version="1.0"?> | ||
<sparql xmlns="http://www.w3.org/2005/sparql-results#"> | ||
<head> | ||
<variable name="s"/> | ||
<variable name="min"/> | ||
</head> | ||
<results> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://www.example.org/ints</uri> | ||
</binding> | ||
<binding name="min"> | ||
<literal datatype="http://www.w3.org/2001/XMLSchema#integer">1</literal> | ||
</binding> | ||
</result> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://www.example.org/decimals</uri> | ||
</binding> | ||
<binding name="min"> | ||
<literal datatype="http://www.w3.org/2001/XMLSchema#decimal">1.0</literal> | ||
</binding> | ||
</result> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://www.example.org/doubles</uri> | ||
</binding> | ||
<binding name="min"> | ||
<literal datatype="http://www.w3.org/2001/XMLSchema#double">1.0E2</literal> | ||
</binding> | ||
</result> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://www.example.org/mixed1</uri> | ||
</binding> | ||
<binding name="min"> | ||
<literal datatype="http://www.w3.org/2001/XMLSchema#integer">1</literal> | ||
</binding> | ||
</result> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://www.example.org/mixed2</uri> | ||
</binding> | ||
<binding name="min"> | ||
<literal datatype="http://www.w3.org/2001/XMLSchema#double">2.0E-1</literal> | ||
</binding> | ||
</result> | ||
</results> | ||
</sparql> |
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,8 @@ | ||
@prefix : <http://www.example.org/> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
:ints :int 1, 2, 3 . | ||
:decimals :dec 1.0, 2.2, 3.5 . | ||
:doubles :double 1.0E2, 2.0E3, 3.0E4 . | ||
:mixed1 :int 1 ; :dec 2.2 . | ||
:mixed2 :double 2E-1 ; :dec 2.2 . |
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,8 @@ | ||
@prefix : <http://www.example.org/> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
:ints :int 1, 2, 3 . | ||
:decimals :dec 1.0, 2.2, 3.5 . | ||
:doubles :double 1.0E2, 2.0E3, 3.0E4 . | ||
:mixed1 :int 1 ; :dec 2.2 . | ||
:mixed2 :double 2E-1 ; :dec 0.2 . |
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 @@ | ||
PREFIX : <http://www.example.org/> | ||
ASK { | ||
{ | ||
SELECT (SAMPLE(?o) AS ?sample) | ||
WHERE { | ||
?s :dec ?o | ||
} | ||
} | ||
FILTER(?sample = 1.0 || ?sample = 2.2 || ?sample = 3.5) | ||
} |
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,5 @@ | ||
<?xml version="1.0"?> | ||
<sparql xmlns="http://www.w3.org/2005/sparql-results#"> | ||
<head/> | ||
<boolean>true</boolean> | ||
</sparql> |
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,5 @@ | ||
PREFIX : <http://www.example.org/> | ||
SELECT (SUM(?o) AS ?sum) | ||
WHERE { | ||
?s :dec ?o | ||
} |
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,13 @@ | ||
<?xml version="1.0"?> | ||
<sparql xmlns="http://www.w3.org/2005/sparql-results#"> | ||
<head> | ||
<variable name="sum"/> | ||
</head> | ||
<results> | ||
<result> | ||
<binding name="sum"> | ||
<literal datatype="http://www.w3.org/2001/XMLSchema#decimal">11.1</literal> | ||
</binding> | ||
</result> | ||
</results> | ||
</sparql> |
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,6 @@ | ||
PREFIX : <http://www.example.org/> | ||
SELECT ?s (SUM(?o) AS ?sum) | ||
WHERE { | ||
?s ?p ?o | ||
} | ||
GROUP BY ?s |
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,49 @@ | ||
<?xml version="1.0"?> | ||
<sparql xmlns="http://www.w3.org/2005/sparql-results#"> | ||
<head> | ||
<variable name="s"/> | ||
<variable name="sum"/> | ||
</head> | ||
<results> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://www.example.org/ints</uri> | ||
</binding> | ||
<binding name="sum"> | ||
<literal datatype="http://www.w3.org/2001/XMLSchema#integer">6</literal> | ||
</binding> | ||
</result> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://www.example.org/decimals</uri> | ||
</binding> | ||
<binding name="sum"> | ||
<literal datatype="http://www.w3.org/2001/XMLSchema#decimal">6.7</literal> | ||
</binding> | ||
</result> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://www.example.org/doubles</uri> | ||
</binding> | ||
<binding name="sum"> | ||
<literal datatype="http://www.w3.org/2001/XMLSchema#double">3.21E4</literal> | ||
</binding> | ||
</result> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://www.example.org/mixed1</uri> | ||
</binding> | ||
<binding name="sum"> | ||
<literal datatype="http://www.w3.org/2001/XMLSchema#decimal">3.2</literal> | ||
</binding> | ||
</result> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://www.example.org/mixed2</uri> | ||
</binding> | ||
<binding name="sum"> | ||
<literal datatype="http://www.w3.org/2001/XMLSchema#double">4.0E-1</literal> | ||
</binding> | ||
</result> | ||
</results> | ||
</sparql> |
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,4 @@ | ||
PREFIX : <http://www.example.org> | ||
|
||
SELECT (COUNT(?O) AS ?C) | ||
WHERE { ?S ?P ?O } |
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,13 @@ | ||
<?xml version="1.0"?> | ||
<sparql xmlns="http://www.w3.org/2005/sparql-results#"> | ||
<head> | ||
<variable name="C"/> | ||
</head> | ||
<results> | ||
<result> | ||
<binding name="C"> | ||
<literal datatype="http://www.w3.org/2001/XMLSchema#integer">5</literal> | ||
</binding> | ||
</result> | ||
</results> | ||
</sparql> |
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,4 @@ | ||
@prefix : <http://www.example.org/> . | ||
|
||
:s :p1 :o1, :o2, :o3. | ||
:s :p2 :o1, :o2. |
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,5 @@ | ||
PREFIX : <http://www.example.org> | ||
|
||
SELECT ?P (COUNT(?O) AS ?C) | ||
WHERE { ?S ?P ?O } | ||
GROUP BY ?P |
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,25 @@ | ||
<?xml version="1.0"?> | ||
<sparql xmlns="http://www.w3.org/2005/sparql-results#"> | ||
<head> | ||
<variable name="P"/> | ||
<variable name="C"/> | ||
</head> | ||
<results> | ||
<result> | ||
<binding name="P"> | ||
<uri>http://www.example.org/p1</uri> | ||
</binding> | ||
<binding name="C"> | ||
<literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal> | ||
</binding> | ||
</result> | ||
<result> | ||
<binding name="P"> | ||
<uri>http://www.example.org/p2</uri> | ||
</binding> | ||
<binding name="C"> | ||
<literal datatype="http://www.w3.org/2001/XMLSchema#integer">2</literal> | ||
</binding> | ||
</result> | ||
</results> | ||
</sparql> |
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,6 @@ | ||
PREFIX : <http://www.example.org> | ||
|
||
SELECT ?P (COUNT(?O) AS ?C) | ||
WHERE { ?S ?P ?O } | ||
GROUP BY ?P | ||
HAVING (COUNT(?O) > 2 ) |
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,17 @@ | ||
<?xml version="1.0"?> | ||
<sparql xmlns="http://www.w3.org/2005/sparql-results#"> | ||
<head> | ||
<variable name="P"/> | ||
<variable name="C"/> | ||
</head> | ||
<results> | ||
<result> | ||
<binding name="P"> | ||
<uri>http://www.example.org/p1</uri> | ||
</binding> | ||
<binding name="C"> | ||
<literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal> | ||
</binding> | ||
</result> | ||
</results> | ||
</sparql> |
Oops, something went wrong.