summaryrefslogtreecommitdiffstats
path: root/raul
diff options
context:
space:
mode:
Diffstat (limited to 'raul')
-rw-r--r--raul/Atom.hpp8
-rw-r--r--raul/AtomRDF.hpp2
2 files changed, 5 insertions, 5 deletions
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();