grafter icon indicating copy to clipboard operation
grafter copied to clipboard

datatype-uri returns wrong URI's & is out of sync with serialisation

Open RickMoynihan opened this issue 8 years ago • 1 comments

e.g.

(datatype-uri 10) ;; => #object[java.net.URI 0x13fb0262 "http://www.w3.org/2001/XMLSchema#integer"]

Which is wrong, but if you serialise the same object (a clojure long) you get:

"11"^^<http://www.w3.org/2001/XMLSchema#long>

which is what datatype-uri should return.

Ideally the serialisation mechanism would also be built in terms of datatype-uri

RickMoynihan avatar Mar 03 '17 11:03 RickMoynihan

https://github.com/Swirrl/grafter/blob/7c1f6184b8fbe95f8a78d39d38d56db76068e8e7/src/grafter_2/rdf/protocols.cljc#L352-L354

scottlowe avatar May 27 '20 15:05 scottlowe