-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cover xsd:dateTime equality and ordering
- Loading branch information
Showing
14 changed files
with
223 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@prefix : <http://example.org/things#> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
:xi1 :pl "1"^^xsd:integer ; :pr "2008-04-01T00:00:00Z"^^xsd:dateTime . | ||
:xb1 :pl "true"^^xsd:boolean ; :pr "2008-04-01T00:00:00Z"^^xsd:dateTime . | ||
:xs1 :pl "2008-04-01T00:00:00Z" ; :pr "2008-04-01T00:00:00Z"^^xsd:dateTime . | ||
|
||
:d1 :pl "2008-04-01T00:00:00Z"^^xsd:dateTime ; :pr "2008-04-01T00:00:00Z"^^xsd:dateTime . # true | ||
:d2 :pl "2002-04-02T12:00:00"^^xsd:dateTime ; :pr "2002-04-02T12:00:00"^^xsd:dateTime . # true | ||
:d3 :pl "2002-04-02T23:00:00-04:00"^^xsd:dateTime ; :pr "2002-04-03T02:00:00-01:00"^^xsd:dateTime . # true | ||
:d4 :pl "2002-04-02T23:00:00"^^xsd:dateTime ; :pr "2002-04-02T23:00:00+06:00"^^xsd:dateTime . # false | ||
:d5 :pl "1999-12-31T24:00:00"^^xsd:dateTime ; :pr "2000-01-01T00:00:00"^^xsd:dateTime . # true | ||
:d6 :pl "2005-04-04T24:00:00"^^xsd:dateTime ; :pr "2005-04-04T00:00:00"^^xsd:dateTime . # false | ||
:d7 :pl "2008-04-01T00:00:00.00Z"^^xsd:dateTime ; :pr "2008-04-01T00:00:00Z"^^xsd:dateTime . # true |
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,7 @@ | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
PREFIX : <http://example.org/things#> | ||
SELECT ?x | ||
WHERE | ||
{ ?x :pr ?vr ; :pl ?vl . | ||
FILTER ( ?vr = ?vl ) . | ||
} |
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,32 @@ | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
@prefix rs: <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix : <http://example.org/things#> . | ||
|
||
[] rdf:type rs:ResultSet ; | ||
rs:resultVariable "x" ; | ||
rs:solution | ||
[ rs:binding [ rs:value :d1 ; | ||
rs:variable "x" | ||
] | ||
] ; | ||
rs:solution | ||
[ rs:binding [ rs:value :d2 ; | ||
rs:variable "x" | ||
] | ||
] ; | ||
rs:solution | ||
[ rs:binding [ rs:value :d3 ; | ||
rs:variable "x" | ||
] | ||
] ; | ||
rs:solution | ||
[ rs:binding [ rs:value :d5 ; | ||
rs:variable "x" | ||
] | ||
] ; | ||
rs:solution | ||
[ rs:binding [ rs:value :d7 ; | ||
rs:variable "x" | ||
] | ||
] . |
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,9 @@ | ||
@prefix : <http://example.org/> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
:tzasc :p1 "2008-10-01T00:00:00Z"^^xsd:dateTime ; :p2 "2008-10-03T00:00:00Z"^^xsd:dateTime . | ||
:tzdesc :p1 "2008-10-03T00:00:00Z"^^xsd:dateTime ; :p2 "2008-10-01T00:00:00Z"^^xsd:dateTime . | ||
:tzeq :p1 "2008-10-01T00:00:00Z"^^xsd:dateTime ; :p2 "2008-10-01T00:00:00Z"^^xsd:dateTime . | ||
:ntzasc :p1 "2008-10-01T00:00:00"^^xsd:dateTime ; :p2 "2008-10-03T00:00:00"^^xsd:dateTime . | ||
:ntzdesc :p1 "2008-10-03T00:00:00"^^xsd:dateTime ; :p2 "2008-10-01T00:00:00"^^xsd:dateTime . | ||
:ntzeq :p1 "2008-10-01T00:00:00"^^xsd:dateTime ; :p2 "2008-10-01T00:00:00"^^xsd:dateTime . |
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://example.org/> | ||
SELECT ?s WHERE { | ||
?s :p1 ?o1 ; :p2 ?o2 . | ||
FILTER(?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://example.org/> | ||
SELECT ?s WHERE { | ||
?s :p1 ?o1 ; :p2 ?o2 . | ||
FILTER(?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://example.org/> | ||
SELECT ?s WHERE { | ||
?s :p1 ?o1 ; :p2 ?o2 . | ||
FILTER(?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://example.org/> | ||
SELECT ?s WHERE { | ||
?s :p1 ?o1 ; :p2 ?o2 . | ||
FILTER(?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,28 @@ | ||
<?xml version="1.0"?> | ||
<sparql xmlns="http://www.w3.org/2005/sparql-results#"> | ||
<head> | ||
<variable name="s"/> | ||
</head> | ||
<results> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://example.org/ntzeq</uri> | ||
</binding> | ||
</result> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://example.org/ntzdesc</uri> | ||
</binding> | ||
</result> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://example.org/tzeq</uri> | ||
</binding> | ||
</result> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://example.org/tzdesc</uri> | ||
</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,18 @@ | ||
<?xml version="1.0"?> | ||
<sparql xmlns="http://www.w3.org/2005/sparql-results#"> | ||
<head> | ||
<variable name="s"/> | ||
</head> | ||
<results> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://example.org/ntzdesc</uri> | ||
</binding> | ||
</result> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://example.org/tzdesc</uri> | ||
</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,28 @@ | ||
<?xml version="1.0"?> | ||
<sparql xmlns="http://www.w3.org/2005/sparql-results#"> | ||
<head> | ||
<variable name="s"/> | ||
</head> | ||
<results> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://example.org/ntzeq</uri> | ||
</binding> | ||
</result> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://example.org/ntzasc</uri> | ||
</binding> | ||
</result> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://example.org/tzeq</uri> | ||
</binding> | ||
</result> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://example.org/tzasc</uri> | ||
</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,18 @@ | ||
<?xml version="1.0"?> | ||
<sparql xmlns="http://www.w3.org/2005/sparql-results#"> | ||
<head> | ||
<variable name="s"/> | ||
</head> | ||
<results> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://example.org/ntzasc</uri> | ||
</binding> | ||
</result> | ||
<result> | ||
<binding name="s"> | ||
<uri>http://example.org/tzasc</uri> | ||
</binding> | ||
</result> | ||
</results> | ||
</sparql> |