Exact OWL numeric values

source · output · proof · check · playground


The question

Can two numeric spellings denote the same value, and can a range assertion make 129 a byte?

Historical background

XML Schema standardized datatypes with distinct lexical and value spaces. OWL 2 carried that distinction into its rules for RDF literals. The examples here show how two written forms can represent one value and why a value outside a datatype’s range can cause a conflict. W3C, XML Schema Part 2 · OWL 2 RL datatype rules

What we tell eyemind

The catalog uses integer and decimal lexical forms and a property with byte range. An AllDifferent list names the two catalog items. The rules follow W3C OWL 2 Profiles.

What eyemind concludes

The exact values 01 and 1.0 agree, so either spelling can substitute as the count. The byte range produces a dt-not-type conflict for 129. The catalog items acquire pairwise differentFrom assertions.

One conclusion in the JavaScript check report is:

result_rdf(iri('https://example.org/catalog#left'), iri('https://example.org/catalog#count'), literal('1.0', datatype('http://www.w3.org/2001/XMLSchema#decimal')), 'default_graph')

What the proof establishes

The saved proof is checked against the compiled LS program. It establishes the reported conclusions from the supplied data and rules. Validation and conflict reports are conclusions too; exit code 0 means evaluation completed.

Try it

node bin/eyemind.js --owl2rl examples/datatypes-owl2rl.ttl
node bin/eyemind.js --owl2rl --program examples/datatypes-owl2rl.ttl > /tmp/datatypes-owl2rl.js
node bin/eyemind.js --to turtle /tmp/datatypes-owl2rl.js
node bin/eyemind.js --owl2rl --check-proof examples/proof/datatypes-owl2rl.js examples/datatypes-owl2rl.ttl

Change 129 to 127: the byte range conflict disappears. This example demonstrates the documented datatype subset; it does not establish complete OWL datatype support.