Open RickMoynihan opened 7 years ago
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.
datatype-uri
Ideally the serialisation mechanism would also be built in terms of datatype-uri
https://github.com/Swirrl/grafter/blob/7c1f6184b8fbe95f8a78d39d38d56db76068e8e7/src/grafter_2/rdf/protocols.cljc#L352-L354
e.g.
Which is wrong, but if you serialise the same object (a clojure long) you get:
which is what
datatype-uri
should return.Ideally the serialisation mechanism would also be built in terms of
datatype-uri