From a9771f70bdd0942112f447aeeca5b2862dcfa594 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 1 Dec 2006 05:42:25 +0000 Subject: Serialization work git-svn-id: http://svn.drobilla.net/lad/raul@205 a436a847-0d15-0410-975c-d299462d15a1 --- raul/AtomRaptor.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'raul/AtomRaptor.h') diff --git a/raul/AtomRaptor.h b/raul/AtomRaptor.h index b1f74d7..e54f273 100644 --- a/raul/AtomRaptor.h +++ b/raul/AtomRaptor.h @@ -53,12 +53,14 @@ public: os << atom.get_float(); triple->object = (unsigned char*)strdup(os.str().c_str()); triple->object_type = RAPTOR_IDENTIFIER_TYPE_LITERAL; + /* Use xsd:decimal so turtle abbreviation works */ triple->object_literal_datatype = raptor_new_uri( - U("http://www.w3.org/2001/XMLSchema#float")); + U("http://www.w3.org/2001/XMLSchema#decimal")); break; case Atom::STRING: triple->object = strdup(atom.get_string()); triple->object_type = RAPTOR_IDENTIFIER_TYPE_LITERAL; + triple->object_literal_datatype = NULL; break; case Atom::BLOB: case Atom::NIL: -- cgit v1.2.1