diff options
Diffstat (limited to 'src/writer.c')
-rw-r--r-- | src/writer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/writer.c b/src/writer.c index 86fe482a..c6f010c0 100644 --- a/src/writer.c +++ b/src/writer.c @@ -408,7 +408,7 @@ write_node(SerdWriter* writer, break; case SERD_URI: has_scheme = serd_uri_string_has_scheme(node->buf); - if ((writer->syntax == SERD_TURTLE) + if (field == FIELD_PREDICATE && (writer->syntax == SERD_TURTLE) && !strcmp((const char*)node->buf, NS_RDF "type")) { sink("a", 1, writer); break; |