From 65a6b475d3c4c15a566100265c73022063aa43f3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 28 May 2009 01:38:34 +0000 Subject: Fix QNAMEs being serialised as URIs. Remove vestigial variable stuff. git-svn-id: http://svn.drobilla.net/lad/trunk/raul@2017 a436a847-0d15-0410-975c-d299462d15a1 --- raul/Atom.hpp | 8 ++++---- raul/AtomRDF.hpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'raul') diff --git a/raul/Atom.hpp b/raul/Atom.hpp index de543f6..07b2c30 100644 --- a/raul/Atom.hpp +++ b/raul/Atom.hpp @@ -181,9 +181,9 @@ private: bool _bool_val; char* _string_val; struct { - size_t _blob_type_length; // length of type string (first part of buffer, inc. \0) - size_t _blob_size; // length of data after type string - void* _blob_val; // buffer + size_t _blob_type_length; // length of type string (first part of buffer, inc. \0) + size_t _blob_size; // length of data after type string + void* _blob_val; // buffer }; }; }; @@ -198,7 +198,7 @@ static inline std::ostream& operator<<(std::ostream& os, const Raul::Atom& atom) case Raul::Atom::INT: return os << atom.get_int32(); case Raul::Atom::FLOAT: return os << atom.get_float(); case Raul::Atom::BOOL: return os << atom.get_bool(); - case Raul::Atom::URI: return os << atom.get_uri(); + case Raul::Atom::URI: return os << "<" << atom.get_uri() << ">"; case Raul::Atom::STRING: return os << atom.get_string(); case Raul::Atom::BLOB: return os << atom.get_blob(); } diff --git a/raul/AtomRDF.hpp b/raul/AtomRDF.hpp index 496fcef..2d0ffae 100644 --- a/raul/AtomRDF.hpp +++ b/raul/AtomRDF.hpp @@ -93,7 +93,7 @@ atom_to_node(Redland::World& world, const Atom& atom) break; case Atom::URI: str = atom.get_uri(); - node = librdf_new_node_from_uri_string(world.world(), CUC(str.c_str())); + node = librdf_new_node_from_uri_string(world.world(), CUC(world.expand_uri(str).c_str())); break; case Atom::STRING: str = atom.get_string(); -- cgit v1.2.1