Hi,

Marmotta is working with Sesame 4, I started migrating to RDF4J. Before
that I encountered two problems.

1. The test ComplexKiWiSparqlQueryTest
-> ComplexSPARQLQueryTest#testSES1979MinMaxInf is failing 'cause KiWi
changes literal's datatype at time of insertion.

For example, the following insertion is successful:

PREFIX : <http://example.org/>
INSERT DATA
{
    GRAPH <http://test/test> {
        :a14 :float "-3.4428452385e-13"^^xsd:float .
        :a100 :float "-INF"^^xsd:float .
        :a101 :float "INF"^^xsd:float .
    }
}


When querying KiWi store (SELECT * { GRAPH < http://test/test > { ?a ?b ?c
} }), we get the following results:

*A*

*B*

*C*

http://example.org/a14

http://example.org/float

“-3.4428452385E-13” ^^xsd:float

http://example.org/a100

http://example.org/float

“-INF”^^xsd:string

http://example.org/a101

http://example.org/float

“INF”^^xsd:string

The problem is with special values of float (i.e. NaN, INF, -INF [1])
stored in Marmotta because the XSD float datatype definition is ignored and
replaced with the default (xsd:string).  This problem is probably present
in both inserting and querying processes within KiWi.


2. Some problems to execute LdpSuiteTest#testRunSuite because the suite
used (LdpTestSuite[2]) is deprecated; it uses Sesame 2. Major problems
between URI and IRI.


As a solution, I propose creating an issue for each problem. Or any other
ideas to approach this issues?


Cheers,

Gustavo.


[1] https://www.w3.org/TR/xmlschema-2/#float

[2] https://w3c.github.io/ldp-testsuite/

Reply via email to