Permalink
Browse files

Some more tests

  • Loading branch information...
1 parent 8f43341 commit 2f2be3a4fd92e4ce153e9381ddbfdad6e90cb26c @garlik committed May 25, 2012
@@ -0,0 +1,100 @@
+201 imported successfully
+This is a 4store SPARQL server [VERSION]
+Query: SELECT ?o (MD5(?o) AS ?md5) WHERE { ?s ?p ?o . } ORDER BY ?o
+?o ?md5
+"-1234567890.23239300" "b77b8e9886cb228219df612e2bd0102e"
+".-+e.-+e.-+e.-+e.-+e.-+e.-+e" "304ce789ff7bd364b5b4cf770d62d3bb"
+"..........----------++++++++++" "bfd49f3b73bf12a7729475226282ceaf"
+"0123......................5678" "26e5a6e27318eab7c912168e074855fc"
+"0123............3210" "10fbf458908dc345f1ca7d324faef870"
+"0123456789.0123456789012345678" "5c393452c0b83b3dc160ca9f83b1a4b9"
+"01234567890123456789012345678" "fecfbf31a749c7403612c47c3633ba6e"
+"012345678901234567890123456789" "4f7223ebadee9fb57b6796570d60638f"
+"0123456789012345678901234567890" "274f173711cb1d36f5ce2d4d48ac2350"
+"01234567890123456789012345678901" "298bf0197a05149e366b6bb61835a1c1"
+"012345678901234567890123456789012" "cf09b5cb769d068e70d248ac7e013ac9"
+"<&>\"'" "b7af79d6dca1967fc1f4e52853b9f557"
+"Z2345678T2345678:::::::--+++TZ" "50090e52338e21f380444b422ec33795"
+"ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ" "16fc5b769022aba89bd75bc0e401c16f"
+"p1" "ec6ef230f1828039ee794566b9c58adc"
+"p2" "1d665b9b1467944c128a5575119d1cfd"
+"p3" "7bc3ca68769437ce986455407dab2a1f"
+"p4" "13207e3d5722030f6c97d69b4904d39d"
+"p5a" "48dcdae30210ac9e3e00f5a8a5aea82a"
+"p5b" "f3722c1d36129fa20eb50ac0f7bb9eda"
+"p5c" "308b4c60d03d9f33fa4c524504172567"
+"p6" "c6c27fc98633c82571d75dcb5739bbdf"
+"p7" "46d46a759bf6cbed05d7bcdcb911a4f8"
+"p8" "2e3f209d4f2bb34667dde08e3c9585f1"
+"q1" "ff33f1b12213e021c2c4a888141953ba"
+"q2" "74d502a7131cdac90eecdfb0531c4e87"
+"q3" "69855eda6d7282de712fee7eb5235ab1"
+"q5" "352dde4b72ae781fa1e061fe65ea7251"
+"q7" "d65d03b02d5e9dd09dc19ad398987c61"
+"q8" "ad09072a2b3da610e4d7180d6b833bc6"
+Query: SELECT ?o (SHA1(?o) AS ?sha1) WHERE { ?s ?p ?o . } ORDER BY ?o
+?o ?sha1
+"-1234567890.23239300" "0d1d433414c572fa41c85ffe9747bd986c460349"
+".-+e.-+e.-+e.-+e.-+e.-+e.-+e" "66dcef097de964022a9474e1d4008d22c197dec3"
+"..........----------++++++++++" "20ed8d84f4af36cd14ea1138e8b9b74f664d2fbb"
+"0123......................5678" "9240dad53576a39cdc76c8a8710079fb73843374"
+"0123............3210" "a5407ded14f08e1c4e6d4e6aaf462591a7c59400"
+"0123456789.0123456789012345678" "37ab7312b3a7689b23e327576cae10068ad07441"
+"01234567890123456789012345678" "98cb68cb805366b3fdeda05109b61973795fc0d8"
+"012345678901234567890123456789" "8d3a014000038725d6daf8771b42a0784253688f"
+"0123456789012345678901234567890" "a4a443429994d919eaf17308f41237ec3906cb6f"
+"01234567890123456789012345678901" "f130c02f55c5c7aabfe51907e4065a7426b52b66"
+"012345678901234567890123456789012" "8ceb248e295234b117739b601034cdf3a09e5297"
+"<&>\"'" "554c5789100077221bf087c9133f8625fe8508d4"
+"Z2345678T2345678:::::::--+++TZ" "0bd33f5efa77ec93a205bc1dab6d9cb1fd8f65bf"
+"ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ" "282a20ff116a30ff0c5ca63e6823b717d0654be6"
+"p1" "b78f576611ec06f96af3ca654c22172a5d746c40"
+"p2" "c5fd961c9f737a955a308050062e7a2c34ee67c3"
+"p3" "e4fbe62d887b8cdee986e6be781203d8d938bbd5"
+"p4" "1b9645e71bb4d1ce9c48520b78a3d94f3f9a6a62"
+"p5a" "0bd1b7bc8e43f6fc376136534095488806a05bfb"
+"p5b" "9fbf942dbb6fc38d08981fa95b88fbaaa5a5aa10"
+"p5c" "95b50ccd9d7ee66453431fe8c151e9bab21b7c24"
+"p6" "826f05c1f92a4f413892307852a72987f0e23bee"
+"p7" "e88b9eb4a293437625227c529460d0e00a216e9d"
+"p8" "0cb9b51e82cebfa79bea006140da6ea63c2543b0"
+"q1" "e0417928efb829deba056fc53babf67b9aab8d1a"
+"q2" "f237cb031ca6df0f8a2fd1a7001801a5c01fd551"
+"q3" "7940b96a2472bb6643ce9803199f8f0b1c9caa1f"
+"q5" "30b1da46cc8c3d54f332aa3345c3ebbb38ffae02"
+"q7" "21fd7ed1e358b6033af915d966e8172937692d16"
+"q8" "1e00e4aa949a9315bc04cb7ca58d85c114f7b64c"
+Query: SELECT ?o (SHA256(?o) AS ?sha256) WHERE { ?s ?p ?o . } ORDER BY ?o
+?o ?sha256
+"-1234567890.23239300" "42722d197ce7461d8888359f79bda8d1304a9cccb3d016e29a901a7b5fa51b46"
+".-+e.-+e.-+e.-+e.-+e.-+e.-+e" "767fbee9e8ec0f5c1c3936eee10ac470ba8b1d85b42df4a767cb244dd4c52dfd"
+"..........----------++++++++++" "5c377202bb546374b55bc310e41c5254b41f654f0d8e9bb9768fb4c19e81f2e1"
+"0123......................5678" "fa2eeb692c6edf5b17574f5b7161cde2270efbd77003c10098b78f8038d7dc9c"
+"0123............3210" "b1c4d3ffc567f1185207f2aafc14b458e6252e6db17139dc02b952552f08435f"
+"0123456789.0123456789012345678" "23e5af003ee535d70ee2218c27b3136a3b4ed91d0bfb5bd0a9363e8b4c6a5c06"
+"01234567890123456789012345678" "2dcd3204dca68190a496da87f587bc689d6be33e563c70c5b723724e4f7e13db"
+"012345678901234567890123456789" "276fadfc9edc49f5f9af96d97636731def7525d4bfa16bc07699534873a474cc"
+"0123456789012345678901234567890" "4bc94f8385c5ee93f664f4886e0f880b25f6f6cba740ea8148029cae46c09aa4"
+"01234567890123456789012345678901" "861009ec4d599fab1f40abc76e6f89880cff5833c79c548c99f9045f191cd90b"
+"012345678901234567890123456789012" "fb17f8f400d53d50efb163dd8ab40a1b3ae1713238f6c28845611cb55185725a"
+"<&>\"'" "349f31ad4a565252adf3e12d24d3f3c03c4bafac5ab5fa68845e81a3e2f37aef"
+"Z2345678T2345678:::::::--+++TZ" "5e91504f42866842deb951c3d19d6c6abce0f8d9a46fc5dbb4c85d5e7ddcc5f8"
+"ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ" "51e2867e08818518edfdbd745017dfc6c7044eb3cd1945fa1c7e68c2722d6ceb"
+"p1" "f64551fcd6f07823cb87971cfb91446425da18286b3ab1ef935e0cbd7a69f68a"
+"p2" "3946ca64ff78d93ca61090a437cbb6b3d2ca0d488f5f9ccf3059608368b27693"
+"p3" "43bb00d0ce7790a53b91256b370c887b24791a5539a6fbfb70c5870e8c91ae5d"
+"p4" "ab71fc4c8a1c4d62b9202b36ee7c07dd398a0907a37037bd8c3959d6af573608"
+"p5a" "23e2284f8f8bbd5a02cd12d681474ea1442c5acc1226e20a69b1b6948f97468d"
+"p5b" "a20cd99333916dbd1bbbe8064316dd23fa9d3c0c7fa53d2041a27047d0b120e7"
+"p5c" "46d9bd476ec6e29125d3632cf302c9742033323c2714c503e7d3ef5eddda3446"
+"p6" "7d087a2e212c110e851c7b6fdc2853a41e7db1690beef7a9c11b3a26ee77e853"
+"p7" "03fbd36c05856bca596b0bcb4466f4f30f0119a41be2b9fcebfa71d68178b116"
+"p8" "9b85c0828dcfbc883726fc200c987baa9826da6ba6a358643a69a52d8698d72e"
+"q1" "c75de8c1b7c3ae5252091267a736a9bf57001d80e82668b3cb3cd09e2f6a43cb"
+"q2" "bee98bf120e8906382754c6be52860ac5dbc65a1ca4dbee7576267d8fd3367e1"
+"q3" "58e2791934fdd9cfdd6d0e892cb6ca4894abc58559de0ec04d51bc2801bad291"
+"q5" "26eab90d2b0be7cd188983eae071bbcce8dfe9c2f48b20a7489b42080b47360b"
+"q7" "0bd73b6a1a5c68cf36d753107c01912f50ab1d5935c2fc6179f37cdaa3c5a3af"
+"q8" "d991b1bb53f9347945c7e3065141f3d1f380e9683b11d2d7504c3576c27eb511"
+200 deleted successfully
+This is a 4store SPARQL server [VERSION]
@@ -0,0 +1,97 @@
+201 imported successfully
+This is a 4store SPARQL server [VERSION]
+201 imported successfully
+This is a 4store SPARQL server [VERSION]
+Query: SELECT ?x (?x AS ?b) (?z AS ?c) WHERE { ?x ?y ?z } ORDER BY ?x
+?x ?b ?c
+<foo:a> <foo:a> "chat"@EN-GB
+<foo:a> <foo:a> "chat"@FR
+<foo:a> <foo:a> "chat"^^<http://example.org/word>
+<foo:a> <foo:a> "<&>\"'"
+<foo:a> <foo:a> "q1"
+<foo:a> <foo:a> "p1"
+<foo:all> <foo:all> <foo:a>
+<foo:all> <foo:all> <foo:d>
+<foo:all> <foo:all> <foo:b>
+<foo:all> <foo:all> <foo:g>
+<foo:all> <foo:all> <foo:e>
+<foo:all> <foo:all> <foo:h>
+<foo:all> <foo:all> <foo:c>
+<foo:all> <foo:all> <foo:f>
+<foo:b> <foo:b> "p2"
+<foo:b> <foo:b> "q2"
+<foo:c> <foo:c> "p3"
+<foo:c> <foo:c> "q3"
+<foo:d> <foo:d> "p4"
+<foo:e> <foo:e> "p5b"
+<foo:e> <foo:e> "q5"
+<foo:e> <foo:e> "p5c"
+<foo:e> <foo:e> "p5a"
+<foo:f> <foo:f> "p6"
+<foo:g> <foo:g> "q7"
+<foo:g> <foo:g> "p7"
+<foo:h> <foo:h> "p8"
+<foo:h> <foo:h> "q8"
+<http://example.com/a> <http://example.com/a> 0
+<http://example.com/b> <http://example.com/b> -0
+<http://example.com/c> <http://example.com/c> +0
+<http://example.com/d> <http://example.com/d> 1234
+<http://example.com/e> <http://example.com/e> -1234
+<http://example.com/f> <http://example.com/f> +1234
+<http://example.com/g> <http://example.com/g> 1234567890123456789
+<http://example.com/h> <http://example.com/h> -1234567890123456789
+<http://example.com/i> <http://example.com/i> +1234567890123456789
+<http://example.com/j> <http://example.com/j> 1234567890.23239300
+<http://example.com/k> <http://example.com/k> -1234567890.23239300
+<http://example.com/l> <http://example.com/l> +1234567890.23239300
+<http://example.com/m> <http://example.com/m> "23.0e999999999999999999999999"^^<http://www.w3.org/2001/XMLSchema#float>
+<http://example.com/n> <http://example.com/n> "+23.0e999999999999999999999999"^^<http://www.w3.org/2001/XMLSchema#float>
+<http://example.com/o> <http://example.com/o> "-23.0e999999999999999999999999"^^<http://www.w3.org/2001/XMLSchema#float>
+<http://example.com/p> <http://example.com/p> "12345678901234567890.23239300"^^<http://www.w3.org/2001/XMLSchema#float>
+<http://example.com/q> <http://example.com/q> "-12345678901234567890.23239300"^^<http://www.w3.org/2001/XMLSchema#float>
+<http://example.com/r> <http://example.com/r> "+12345678901234567890.23239300"^^<http://www.w3.org/2001/XMLSchema#float>
+<http://example.com/s> <http://example.com/s> 2.4999
+<http://example.com/t> <http://example.com/t> 2.5
+<http://example.com/u> <http://example.com/u> -2.5
+<http://example.com/v> <http://example.com/v> -2.500001
+<http://example.com/w> <http://example.com/w> 2.500001
+<http://example.com/x> <http://example.com/x> -2.499999
+<http://example.com/y> <http://example.com/y> 0000.0004999000
+<http://example.com/z> <http://example.com/z> 2.000050000
+<http://example.com/za> <http://example.com/za> -2.00050000
+<http://example.com/zb> <http://example.com/zb> "2.4999"^^<http://www.w3.org/2001/XMLSchema#float>
+<http://example.com/zc> <http://example.com/zc> "2.5"^^<http://www.w3.org/2001/XMLSchema#float>
+<http://example.com/zd> <http://example.com/zd> "-2.5"^^<http://www.w3.org/2001/XMLSchema#float>
+<http://example.com/ze> <http://example.com/ze> "-2.500001"^^<http://www.w3.org/2001/XMLSchema#float>
+<http://example.com/zf> <http://example.com/zf> "2.500001"^^<http://www.w3.org/2001/XMLSchema#float>
+<http://example.com/zg> <http://example.com/zg> "-2.499999"^^<http://www.w3.org/2001/XMLSchema#float>
+<http://example.com/zh> <http://example.com/zh> 2.4999e0
+<http://example.com/zi> <http://example.com/zi> 2.5e0
+<http://example.com/zj> <http://example.com/zj> -2.5e0
+<http://example.com/zk> <http://example.com/zk> -2.500001e0
+<http://example.com/zl> <http://example.com/zl> 2.500001e0
+<http://example.com/zm> <http://example.com/zm> -2.499999e0
+<test:data> <test:data> "23.0e999999999999999999999999"^^<http://www.w3.org/2001/XMLSchema#float>
+<test:data> <test:data> "0123456789.0123456789012345678"
+<test:data> <test:data> "0123......................5678"
+<test:data> <test:data> ".-+e.-+e.-+e.-+e.-+e.-+e.-+e"
+<test:data> <test:data> -1234
+<test:data> <test:data> -1234567890.23239300
+<test:data> <test:data> "012345678901234567890123456789"
+<test:data> <test:data> "Z2345678T2345678:::::::--+++TZ"
+<test:data> <test:data> "01234567890123456789012345678901"
+<test:data> <test:data> "-1234567890.23239300"
+<test:data> <test:data> "..........----------++++++++++"
+<test:data> <test:data> "(null)"^^<http://www.w3.org/2001/XMLSchema#dateTime>
+<test:data> <test:data> "01234567890123456789012345678"
+<test:data> <test:data> "2009-07-17/2009-07-18"^^<http://www.w3.org/2001/XMLSchema#dateRange>
+<test:data> <test:data> "ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ"
+<test:data> <test:data> "012345678901234567890123456789012"
+<test:data> <test:data> "2009-07-17T01:23:45+10:00"^^<http://www.w3.org/2001/XMLSchema#dateTime>
+<test:data> <test:data> "1969-05-23T23:05:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime>
+<test:data> <test:data> "0123............3210"
+<test:data> <test:data> "0123456789012345678901234567890"
+200 deleted successfully
+This is a 4store SPARQL server [VERSION]
+200 deleted successfully
+This is a 4store SPARQL server [VERSION]
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+source sparql.sh
+
+put "$EPR" ../../data/nasty.ttl 'text/turtle' 'http://example.com/nasty.ttl'
+
+sparql "$EPR" 'SELECT ?o (MD5(?o) AS ?md5) WHERE { ?s ?p ?o . } ORDER BY ?o'
+sparql "$EPR" 'SELECT ?o (SHA1(?o) AS ?sha1) WHERE { ?s ?p ?o . } ORDER BY ?o'
+sparql "$EPR" 'SELECT ?o (SHA256(?o) AS ?sha256) WHERE { ?s ?p ?o . } ORDER BY ?o'
+
+delete "$EPR" 'http://example.com/nasty.ttl'
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+source sparql.sh
+
+put "$EPR" ../../data/nasty.ttl 'text/turtle' 'http://example.com/nasty.ttl'
+put "$EPR" ../../data/numbers.ttl 'text/turtle' 'http://example.com/numbers.ttl'
+
+sparql "$EPR" 'SELECT ?x (?x AS ?b) (?z AS ?c) WHERE { ?x ?y ?z } ORDER BY ?x'
+
+delete "$EPR" 'http://example.com/nasty.ttl'
+delete "$EPR" 'http://example.com/numbers.ttl'

0 comments on commit 2f2be3a

Please sign in to comment.