diff options
Diffstat (limited to 'src/sordi.c')
-rw-r--r-- | src/sordi.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/sordi.c b/src/sordi.c index 78f8690..1f663ea 100644 --- a/src/sordi.c +++ b/src/sordi.c @@ -65,7 +65,9 @@ serd_node_from_sord_node(const SordNode* n) { size_t n_bytes = 0; const uint8_t* buf = sord_node_get_string_counted(n, &n_bytes); - SerdNode sn = { (const uint8_t*)buf, n_bytes, n_bytes - 1, SERD_NOTHING }; + SerdNode sn = { + (const uint8_t*)buf, n_bytes, n_bytes - 1, sord_node_get_flags(n), SERD_NOTHING + }; // FIXME: UTF-8 switch (sord_node_get_type(n)) { case SORD_URI: @@ -130,8 +132,9 @@ main(int argc, char** argv) } SerdEnv* env = serd_env_new(); - SerdWriter* writer = serd_writer_new(SERD_TURTLE, SERD_STYLE_ABBREVIATED, - env, &base_uri, file_sink, stdout); + SerdWriter* writer = serd_writer_new( + SERD_TURTLE, SERD_STYLE_ABBREVIATED|SERD_STYLE_RESOLVED, + env, &base_uri, file_sink, stdout); // Query SordQuad pat = { 0, 0, 0, 0 }; |