summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-12-01 05:42:25 +0000
committerDavid Robillard <d@drobilla.net>2006-12-01 05:42:25 +0000
commita9771f70bdd0942112f447aeeca5b2862dcfa594 (patch)
tree6e675a863dc537ceb0c539530fb3bcd5c1af65f7
parent4e68bf298f9fe4445925b4fe39f28e364a216fd2 (diff)
downloadraul-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
-rw-r--r--raul/AtomRaptor.h4
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: