aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
AgeCommit message (Collapse)AuthorFilesLines
2011-12-11Add SerdBulkSink for writing bulk output and corresponding serdi -B option.David Robillard1-1/+17
git-svn-id: http://svn.drobilla.net/serd/trunk@242 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Report reason for failure to open file in serdi.David Robillard1-1/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@233 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-09-29Tidy.David Robillard1-3/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@218 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-24Fix crash when input is not given.David Robillard1-1/+6
CURIEify by default. git-svn-id: http://svn.drobilla.net/serd/trunk@190 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-18Add test to ensure blank node IDs don't clash with generated IDs.David Robillard1-28/+66
Add handle destructor parameter to serd_reader_new. Add serd_reader_get_handle. Rename serd_reader_set_blank_prefix to serd_reader_add_blank_prefix. Rename serd_reader_read_file to serd_reader_read_file_handle. Add new serd_reader_read_file that takes a path/URI parameter. Add serdi -i option to select input syntax. Add serdi -p and -c options to add/chop a prefix to/from blank IDs. Add optional base_uri parameter to serd_env_new. Add serd_writer_chop_blank_prefix. Bump version to 0.3.0. git-svn-id: http://svn.drobilla.net/serd/trunk@183 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-16Mention - for stdin in help message.David Robillard1-1/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@182 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-15Remove dead code found by clang static analyser.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@180 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-15Print (stdin) as file in error messages when reading stdinDavid Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@179 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-12Abort when given an invalid base URI.David Robillard1-0/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@175 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-06Make writer methods directly compatible with reader callbacks.David Robillard1-49/+5
Connect writer directly to reader in serdi. git-svn-id: http://svn.drobilla.net/serd/trunk@164 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-06Merge SerdEnv and SerdReadState.David Robillard1-11/+9
git-svn-id: http://svn.drobilla.net/serd/trunk@163 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-04-30Use descriptive return codes instead of boolDavid Robillard1-16/+12
git-svn-id: http://svn.drobilla.net/serd/trunk@154 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-04-30Consistent error messagesDavid Robillard1-7/+7
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-8/+8
git-svn-id: http://svn.drobilla.net/serd/trunk@150 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-22/+14
obnoxious lawyer noise). git-svn-id: http://svn.drobilla.net/serd/trunk@139 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-04-16Update copyright headersDavid Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@137 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-03-28Fix serdi on Windows (support file:///C:/... URIs)David Robillard1-0/+5
git-svn-id: http://svn.drobilla.net/serd/trunk@132 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-03-19Fix references to old license.David Robillard1-2/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@127 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-03-02Shrink.David Robillard1-2/+0
git-svn-id: http://svn.drobilla.net/serd/trunk@115 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-02-25Abstract common read state tracking code (SerdReadState) to make user code ↵David Robillard1-63/+26
less tedious. git-svn-id: http://svn.drobilla.net/serd/trunk@110 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-02-25Switch to 2-clause BSD license.David Robillard1-16/+24
git-svn-id: http://svn.drobilla.net/serd/trunk@105 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-02-16Add SERD_STYLE_RESOLVED option for resolving (expanding) relative URIs in ↵David Robillard1-0/+2
output. Add serd_env_qualify and serd_env_foreach. git-svn-id: http://svn.drobilla.net/serd/trunk@101 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-02-10Add base parameter to serd_node_new_uri and add serd_node_new_uri_from_node.David Robillard1-25/+28
git-svn-id: http://svn.drobilla.net/serd/trunk@97 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-02-10Make serd_uri_resolve return void, since it has no error case anyway.David Robillard1-7/+2
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-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@88 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-26Tolerate NULL base URI.David Robillard1-1/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@83 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-25Move node functions into API.David Robillard1-58/+0
git-svn-id: http://svn.drobilla.net/serd/trunk@75 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-25Remove cruft.David Robillard1-8/+0
git-svn-id: http://svn.drobilla.net/serd/trunk@71 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-25Add serd_reader_read_string.David Robillard1-33/+48
git-svn-id: http://svn.drobilla.net/serd/trunk@69 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-25Add standard command line stuff (-h and -v).David Robillard1-2/+22
git-svn-id: http://svn.drobilla.net/serd/trunk@68 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-25Fix memory leaks.David Robillard1-2/+13
Push builtin URIs (rdf:type, etc) on parser creation/deletion, rather than at each parse. git-svn-id: http://svn.drobilla.net/serd/trunk@67 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-25Fix URI resolution of absolute URIs.David Robillard1-12/+6
Better URI test coverage. git-svn-id: http://svn.drobilla.net/serd/trunk@64 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-24Remove SerdString cruft.David Robillard1-18/+0
git-svn-id: http://svn.drobilla.net/serd/trunk@54 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-24Remove SerdString from public API in favour of more expressive (and not ↵David Robillard1-65/+144
necessarily inline with data payload) SerdNode. git-svn-id: http://svn.drobilla.net/serd/trunk@53 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-23Shrink code.David Robillard1-13/+10
git-svn-id: http://svn.drobilla.net/serd/trunk@47 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-23SerdNodeType => SerdType.David Robillard1-3/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@43 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-23Streaming abbreviation.David Robillard1-1/+9
git-svn-id: http://svn.drobilla.net/serd/trunk@41 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-22SerdNamespaces => SerdEnv.David Robillard1-10/+10
git-svn-id: http://svn.drobilla.net/serd/trunk@36 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-21Full rount-trip test coverage for Turtle reading and writing.David Robillard1-2/+1
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-21Fix command line argument handling when options are given.David Robillard1-3/+4
git-svn-id: http://svn.drobilla.net/serd/trunk@27 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-21Gracefully stop parsing on error (i.e. report exactly one error for each bad ↵David Robillard1-2/+2
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-7/+47
git-svn-id: http://svn.drobilla.net/serd/trunk@22 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-21Make writer write to any sink passed in by the user.David Robillard1-4/+11
git-svn-id: http://svn.drobilla.net/serd/trunk@20 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-21Fix language tag reading and writing.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@18 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-20Support passing no base URI on command line (use filename as base URI).David Robillard1-13/+38
Decent usage output. git-svn-id: http://svn.drobilla.net/serd/trunk@15 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-20Add writer API.David Robillard1-15/+16
git-svn-id: http://svn.drobilla.net/serd/trunk@14 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-01-20Add serd_string_free to API.David Robillard1-3/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@13 490d8e77-9747-427b-9fa3-0b8f29cee8a0