aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
AgeCommit message (Collapse)AuthorFilesLines
2011-04-30Consistent error messagesDavid Robillard1-3/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@152 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-04-27Don't hide pointers in typedefs.David Robillard1-16/+16
git-svn-id: http://svn.drobilla.net/serd/trunk@150 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-04-24Fix reader memory stack use and verify read_object fully clears its stack.David Robillard1-18/+39
Make abbreviation in writer not assume equivalent nodes have equivalent addresses (abbreviate more than on input if triples are sorted correctly, e.g. abbrevate ntriples) git-svn-id: http://svn.drobilla.net/serd/trunk@149 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-04-23Tidy.David Robillard1-1/+0
git-svn-id: http://svn.drobilla.net/serd/trunk@145 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-04-22Fix license header (awk oops).David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@143 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-04-22Switch to ISC license (legally equivalent to MIT license but with less ↵David Robillard1-20/+12
obnoxious lawyer noise). git-svn-id: http://svn.drobilla.net/serd/trunk@139 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-02-25Switch to 2-clause BSD license.David Robillard1-18/+24
git-svn-id: http://svn.drobilla.net/serd/trunk@105 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-02-16Make serd_writer_set_prefix return bool so it is compatible with ↵David Robillard1-9/+18
SerdPrefixSink and can be used with serd_env_foreach. Add SERD_STYLE_CURIED option to shorten URIs in output where possible. Fix serd_env_qualify. git-svn-id: http://svn.drobilla.net/serd/trunk@102 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-02-16Turtle rdf:type, xsd:decimal, xsd:integer, and xsd:float abbreviation.David Robillard1-1/+21
Automatically finish writing in serd_writer_free if necessary. git-svn-id: http://svn.drobilla.net/serd/trunk@99 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-02-10Make serd_uri_resolve return void, since it has no error case anyway.David Robillard1-6/+5
git-svn-id: http://svn.drobilla.net/serd/trunk@96 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-28Fix crashes when passed NULL nodes.David Robillard1-3/+5
git-svn-id: http://svn.drobilla.net/serd/trunk@88 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-26Tolerate NULL base URI.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@83 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-26Fix compilation in C++ (which won't implicitly cast 0 to an enum).David Robillard1-0/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@82 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-25Add `amalgamate' waf target for building single source file distribution.David Robillard1-0/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@78 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-25Change source header tag line.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@72 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-24Remove support for 5 and 6 byte UTF-8 characters.David Robillard1-8/+0
The UTF-8 spec supports this, but I can't even find real characters to test it with. There don't seem to be actual Unicode code points this high yet. If it can't be tested, it can't be useful. Gone. git-svn-id: http://svn.drobilla.net/serd/trunk@55 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-24Remove SerdString from public API in favour of more expressive (and not ↵David Robillard1-66/+63
necessarily inline with data payload) SerdNode. git-svn-id: http://svn.drobilla.net/serd/trunk@53 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-23Fix build (oops).David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@51 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-23Faster serd_uri_serialise.David Robillard1-4/+5
git-svn-id: http://svn.drobilla.net/serd/trunk@50 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-23Fix abbreviation.David Robillard1-4/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@49 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-23Gracefully handle failure to emit statement.David Robillard1-1/+3
Add test cases for 5 and 6-byte UTF-* characters and undefined namespaces. git-svn-id: http://svn.drobilla.net/serd/trunk@48 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-23Shrink code.David Robillard1-92/+36
git-svn-id: http://svn.drobilla.net/serd/trunk@47 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-23Rearrange code, put common internal stuff in serd_internal.h.David Robillard1-2/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@46 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-23Code cleanup (appease cpplint).David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@45 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-23SerdNodeType => SerdType.David Robillard1-14/+14
git-svn-id: http://svn.drobilla.net/serd/trunk@43 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-23Streaming abbreviation.David Robillard1-69/+151
git-svn-id: http://svn.drobilla.net/serd/trunk@41 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-22SerdNamespaces => SerdEnv.David Robillard1-8/+5
git-svn-id: http://svn.drobilla.net/serd/trunk@36 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-21Remove unnecessary writer->prev_o.David Robillard1-6/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@29 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-21Full rount-trip test coverage for Turtle reading and writing.David Robillard1-4/+22
Fix writing UTF-8 URIs. Improved test coverage. git-svn-id: http://svn.drobilla.net/serd/trunk@28 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-21Gracefully stop parsing on error (i.e. report exactly one error for each bad ↵David Robillard1-8/+8
test). git-svn-id: http://svn.drobilla.net/serd/trunk@23 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-21Preliminary support for writing abbreviated Turtle.David Robillard1-27/+200
git-svn-id: http://svn.drobilla.net/serd/trunk@22 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-21Rename write.c to writer.c for consistency.David Robillard1-0/+223
git-svn-id: http://svn.drobilla.net/serd/trunk@21 490d8e77-9747-427b-9fa3-0b8f29cee8a0