diff options
Diffstat (limited to 'raul/AtomRaptor.h')
-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: |