aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-04-01 19:20:23 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:08 -0500
commitc9afaab2a84f592e4567b37b3551511381e734e4 (patch)
tree414c77e7b41c222e9237d76add5c1c4944079ebd /src/writer.c
parent3cc5a4fcaea8f1e2fd47c53135b53f8edcb8619d (diff)
downloadserd-c9afaab2a84f592e4567b37b3551511381e734e4.tar.gz
serd-c9afaab2a84f592e4567b37b3551511381e734e4.tar.bz2
serd-c9afaab2a84f592e4567b37b3551511381e734e4.zip
Add "longhand" mode to write rdf:type predicates normally
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/writer.c b/src/writer.c
index 0b0574d5..30b8bb4e 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -841,7 +841,7 @@ write_uri_node(SerdWriter* const writer,
const bool has_scheme = serd_uri_string_has_scheme(string.data);
if (supports_abbrev(writer)) {
- if (field == SERD_PREDICATE &&
+ if (!(writer->flags & SERD_WRITE_LONGHAND) && field == SERD_PREDICATE &&
serd_node_equals(node, writer->world->rdf_type)) {
return esink("a", 1, writer);
}