diff options
author | Richard H. McCullough <rhmccullough@gmail.com> | 2014-10-19 10:17:33 -0700 |
---|---|---|
committer | Richard H. McCullough <rhmccullough@gmail.com> | 2014-10-19 10:17:33 -0700 |
commit | 279d302da2910fe8beba969b67d518bd4c0436c2 (patch) | |
tree | bf8bacd4d1f55584bab096038f29be68bc23008d | |
parent | 011057446de566cbdd93d37c9efb00724edf7604 (diff) | |
download | raptor-279d302da2910fe8beba969b67d518bd4c0436c2.tar.gz |
do not change "( )" to "rdf:nil"
In tests/turtle:
rapper -i turtle -o turtle test-08.ttl
changes "( )" to "rdf:nil".
This change to src/raptor_serialize_turtle.c will produce "( )" in the
output file.
-rw-r--r-- | src/raptor_serialize_turtle.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/raptor_serialize_turtle.c b/src/raptor_serialize_turtle.c index bc8a29ba..bb4f4373 100644 --- a/src/raptor_serialize_turtle.c +++ b/src/raptor_serialize_turtle.c @@ -176,6 +176,11 @@ raptor_turtle_emit_resource(raptor_serializer *serializer, if(node->term->type != RAPTOR_TERM_TYPE_URI) return 1; + if(raptor_uri_equals(node->term->value.uri, context->rdf_nil_uri)) { + raptor_turtle_writer_raw_counted(turtle_writer,(const unsigned char *)"( )", 3); + return 0; + } + qname = raptor_new_qname_from_namespace_uri(context->nstack, node->term->value.uri, 10); |