On 18/06/16 15:08, Jean-Marc Vanel wrote:
Hi all
I could not find the answer in the FAQ, nor by googling.
https://jena.apache.org/documentation/tdb/faqs.html
yes and no.
They are stored in the NodeId if possible.
See class NodeId.
In TDB as released there are 56 bits of space for holding: decimals,
integers and derived types, dateTime, dates, boolean).
If the number does not fit, it is stored long form.
The advantages of numbers stored as binary versus strings are:
- less storage
- less CPU in conversion of string => number when using API
- more efficient SPARQL queries involving numbers computations
A negative is that exact representation is lost
"+1" and "1" and "0001"
"1"^^xsd:integer and "1"^^xsd:int
Andy
--
Jean-Marc Vanel
Déductions SARL - Consulting, services, training,
Rule-based programming, Semantic Web
+33 (0)6 89 16 29 52
Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui