duck1123/clj-plaza — pull request #1 by stain (2012-07-02 08:59:24+00:00)
Title: Add namespaces to Jena RDF export

Don't apply this alone - it breaks the tests for some reason - ints turn into longs - but I am not able to figure out why!

2012-07-02 09:57:01 [main] INFO org.openrdf.rio.RDFParserRegistry: Registered service class org.openrdf.rio.turtle.TurtleParserFactory

FAIL in (test-make-typed-literal-sesame) (core_test_sesame.clj:93)
expected: (= (to-string p1) "\"2\"^^")
actual: (not (= "\"2\"^^" "\"2\"^^"))

FAIL in (test-triple-object-sesame) (core_test_sesame.clj:135)
expected: (= (to-string p4) "\"2\"^^")
actual: (not (= "\"2\"^^" "\"2\"^^"))

Testing plaza.rdf.implementations.jena-test

Testing plaza.rdf.implementations.sesame-test
2012-07-02 09:57:01 [main] INFO org.openrdf.query.parser.QueryParserRegistry: Registered service class org.openrdf.query.parser.serql.SeRQLParserFactory
2012-07-02 09:57:01 [main] INFO org.openrdf.query.parser.QueryParserRegistry: Registered service class org.openrdf.query.parser.sparql.SPARQLParserFactory
handshake...

FAIL in (test-sesame-typed-literal) (sesame_test.clj:82)
expected: (= "\"2\"^^" (to-string res))
actual: (not (= "\"2\"^^" "\"2\"^^"))

FAIL in (test-sesame-typed-literal) (sesame_test.clj:87)
expected: (= (resource-id res) "\"2\"^^")
actual: (not (= "\"2\"^^" "\"2\"^^"))

FAIL in (test-sesame-typed-literal) (sesame_test.clj:90)
expected: (= (literal-datatype-uri res) "http://www.w3.org/2001/XMLSchema#int")
actual: (not (= "http://www.w3.org/2001/XMLSchema#long" "http://www.w3.org/2001/XMLSchema#int"))

Testing plaza.rdf.predicates-test

Testing plaza.rdf.schemas-test

Testing plaza.rdf.sparql-test
2012-07-02 09:57:03 [main] WARN com.hp.hpl.jena.sparql.expr.NodeValue: Both lang tag and datatype defined (lexcial form '2')
2012-07-02 09:57:04 [main] WARN com.hp.hpl.jena.sparql.expr.NodeValue: Both lang tag and datatype defined (lexcial form '3')

FAIL in (test-build-filters-2) (sparql_test.clj:130)
expected: (= gt "( ?x > \"3\"^^xsd:int )")
actual: (not (= "( ?x > \"3\"^^xsd:long )" "( ?x > \"3\"^^xsd:int )"))
2012-07-02 09:57:04 [main] WARN com.hp.hpl.jena.sparql.expr.NodeValue: Both lang tag and datatype defined (lexcial form '2005-01-01T00:00:00Z')

Testing plaza.rdf.sparql-test-sesame
2012-07-02 09:57:04 [main] WARN com.hp.hpl.jena.sparql.expr.NodeValue: Both lang tag and datatype defined (lexcial form '2')
2012-07-02 09:57:04 [main] WARN com.hp.hpl.jena.sparql.expr.NodeValue: Both lang tag and datatype defined (lexcial form '3')

FAIL in (test-build-filters-2) (sparql_test_sesame.clj:129)
expected: (= gt "( ?x > \"3\"^^xsd:int )")
actual: (not (= "( ?x > \"3\"^^xsd:long )" "( ?x > \"3\"^^xsd:int )"))
2012-07-02 09:57:04 [main] WARN com.hp.hpl.jena.sparql.expr.NodeValue: Both lang tag and datatype defined (lexcial form '2005-01-01T00:00:00Z')