diff options
author | David Robillard <d@drobilla.net> | 2006-12-01 05:42:25 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-12-01 05:42:25 +0000 |
commit | a9771f70bdd0942112f447aeeca5b2862dcfa594 (patch) | |
tree | 6e675a863dc537ceb0c539530fb3bcd5c1af65f7 /raul | |
parent | 4e68bf298f9fe4445925b4fe39f28e364a216fd2 (diff) | |
download | raul-a9771f70bdd0942112f447aeeca5b2862dcfa594.tar.gz raul-a9771f70bdd0942112f447aeeca5b2862dcfa594.tar.bz2 raul-a9771f70bdd0942112f447aeeca5b2862dcfa594.zip |
Serialization work
git-svn-id: http://svn.drobilla.net/lad/raul@205 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul')
-rw-r--r-- | raul/AtomRaptor.h | 4 |
1 files changed, 3 insertions, 1 deletions
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: |