|
From: <jer...@us...> - 2013-10-10 00:34:11
|
Revision: 7445
http://bigdata.svn.sourceforge.net/bigdata/?rev=7445&view=rev
Author: jeremy_carroll
Date: 2013-10-10 00:34:02 +0000 (Thu, 10 Oct 2013)
Log Message:
-----------
further tests for min and max to check for materialization issues
Modified Paths:
--------------
branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/TestTickets.java
branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-max.rq
branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min-max.ttl
branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min.rq
Added Paths:
-----------
branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-max1.rq
branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-max1.srx
branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-max2.rq
branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-max2.srx
branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min1.rq
branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min1.srx
branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min2.rq
branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min2.srx
Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/TestTickets.java
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/TestTickets.java 2013-10-09 23:22:40 UTC (rev 7444)
+++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/TestTickets.java 2013-10-10 00:34:02 UTC (rev 7445)
@@ -277,4 +277,52 @@
).runTest();
}
+
+ public void test_ticket_min736_1() throws Exception {
+
+ new TestHelper("aggregate-min1",// testURI,
+ "aggregate-min1.rq",// queryFileURL
+ "aggregate-min-max.ttl",// dataFileURL
+ "aggregate-min1.srx",// resultFileURL
+ false, // laxCardinality
+ true // checkOrder
+ ).runTest();
+
+ }
+
+ public void test_ticket_max736_1() throws Exception {
+
+ new TestHelper("aggregate-max1",// testURI,
+ "aggregate-max1.rq",// queryFileURL
+ "aggregate-min-max.ttl",// dataFileURL
+ "aggregate-max1.srx",// resultFileURL
+ false, // laxCardinality
+ true // checkOrder
+ ).runTest();
+
+ }
+
+ public void test_ticket_min736_2() throws Exception {
+
+ new TestHelper("aggregate-min2",// testURI,
+ "aggregate-min2.rq",// queryFileURL
+ "aggregate-min-max.ttl",// dataFileURL
+ "aggregate-min2.srx",// resultFileURL
+ false, // laxCardinality
+ true // checkOrder
+ ).runTest();
+
+ }
+
+ public void test_ticket_max736_2() throws Exception {
+
+ new TestHelper("aggregate-max2",// testURI,
+ "aggregate-max2.rq",// queryFileURL
+ "aggregate-min-max.ttl",// dataFileURL
+ "aggregate-max2.srx",// resultFileURL
+ false, // laxCardinality
+ true // checkOrder
+ ).runTest();
+
+ }
}
Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-max.rq
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-max.rq 2013-10-09 23:22:40 UTC (rev 7444)
+++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-max.rq 2013-10-10 00:34:02 UTC (rev 7445)
@@ -1,5 +1,8 @@
+
+prefix : <http://example/>
+
SELECT (MAX(?o) AS ?m)
WHERE {
- ?s ?p ?o
+ ?s :p ?o
}
Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-max1.rq
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-max1.rq (rev 0)
+++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-max1.rq 2013-10-10 00:34:02 UTC (rev 7445)
@@ -0,0 +1,8 @@
+
+prefix : <http://example/>
+
+SELECT (MAX(?o) AS ?m)
+WHERE {
+ ?s :q ?o
+}
+
Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-max1.srx
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-max1.srx (rev 0)
+++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-max1.srx 2013-10-10 00:34:02 UTC (rev 7445)
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<sparql
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema#"
+ xmlns="http://www.w3.org/2005/sparql-results#" >
+ <head>
+ <variable name="m"/>
+ </head>
+ <results>
+ <result>
+ <binding name="m">
+ <literal xml:lang="en">bigdata</literal>
+ </binding>
+ </result>
+ </results>
+</sparql>
Copied: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-max2.rq (from rev 7444, branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-max.rq)
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-max2.rq (rev 0)
+++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-max2.rq 2013-10-10 00:34:02 UTC (rev 7445)
@@ -0,0 +1,8 @@
+
+prefix : <http://example/>
+
+SELECT (MAX(?o) AS ?m)
+WHERE {
+ ?s ?p ?o
+}
+
Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-max2.srx
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-max2.srx (rev 0)
+++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-max2.srx 2013-10-10 00:34:02 UTC (rev 7445)
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<sparql
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema#"
+ xmlns="http://www.w3.org/2005/sparql-results#" >
+ <head>
+ <variable name="m"/>
+ </head>
+ <results>
+ <result>
+ <binding name="m">
+ <literal datatype="http://www.w3.org/2001/XMLSchema#integer">3</literal>
+ </binding>
+ </result>
+ </results>
+</sparql>
Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min-max.ttl
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min-max.ttl 2013-10-09 23:22:40 UTC (rev 7444)
+++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min-max.ttl 2013-10-10 00:34:02 UTC (rev 7445)
@@ -3,5 +3,8 @@
:x1 :p 1.5 .
:x1 :p 3 .
:x1 :p :x2 .
+:x1 :q "bigdata"@en.
+:x1 :q "bigdata"@de.
+:x1 :r <http://www.bigdata.com/blog/> .
Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min.rq
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min.rq 2013-10-09 23:22:40 UTC (rev 7444)
+++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min.rq 2013-10-10 00:34:02 UTC (rev 7445)
@@ -1,4 +1,6 @@
+prefix : <http://example/>
+
SELECT (MIN(?o) AS ?m)
WHERE {
- ?s ?p ?o
+ ?s :p ?o
}
Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min1.rq
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min1.rq (rev 0)
+++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min1.rq 2013-10-10 00:34:02 UTC (rev 7445)
@@ -0,0 +1,6 @@
+prefix : <http://example/>
+
+SELECT (MIN(?o) AS ?m)
+WHERE {
+ ?s :q ?o
+}
Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min1.srx
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min1.srx (rev 0)
+++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min1.srx 2013-10-10 00:34:02 UTC (rev 7445)
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<sparql
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema#"
+ xmlns="http://www.w3.org/2005/sparql-results#" >
+ <head>
+ <variable name="m"/>
+ </head>
+ <results>
+ <result>
+ <binding name="m">
+ <literal
+ xml:lang="de">bigdata</literal>
+ </binding>
+ </result>
+ </results>
+</sparql>
Copied: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min2.rq (from rev 7444, branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min.rq)
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min2.rq (rev 0)
+++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min2.rq 2013-10-10 00:34:02 UTC (rev 7445)
@@ -0,0 +1,6 @@
+prefix : <http://example/>
+
+SELECT (MIN(?o) AS ?m)
+WHERE {
+ ?s ?p ?o
+}
Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min2.srx
===================================================================
--- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min2.srx (rev 0)
+++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/aggregate-min2.srx 2013-10-10 00:34:02 UTC (rev 7445)
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<sparql
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema#"
+ xmlns="http://www.w3.org/2005/sparql-results#" >
+ <head>
+ <variable name="m"/>
+ </head>
+ <results>
+ <result>
+ <binding name="m"><uri>http://example/x2</uri></binding>
+ </result>
+ </results>
+</sparql>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|