1

I would like to write the following RDF data into MarkLogic:

<http://John> <http://have> 2112351960 .
<http://John> <http://have> 2.112351960E9 .

Expected result

The data in the database is as following:

<http://John> <http://have> 2112351960 .
<http://John> <http://have> 2.112351960E9 .

Actual result

There is only one RDF triple in the database.

<http://John> <http://have> 2112351960 .

Alternatives

I can get expected result in Apache Jena and RDF4j.

Can someone give me an answer or a hint about it?

uniqueR
  • 51
  • 1
  • 2
    Those numbers are equal though. You are looking to have them be distinctly different as different types of numbers i.e. xs:integer vs xs:double? – Mads Hansen Nov 22 '22 at 15:31

1 Answers1

3

This is the result of the entailment regime supported:

https://www.w3.org/TR/sparql11-entailment/

MarkLogic implements D-entailment (datatype aware).

https://www.w3.org/TR/sparql11-entailment/#DEntRegime

I believe Jena implements simple entailment, which is unaware of datatype considerations.

John Snelson
  • 941
  • 4
  • 4