aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2011-12-12Add serdi -f option to avoid qualifying URIs.David Robillard1-4/+15
Rename serdi -B option to -b. Only resolve URIs against base if input is Turtle. git-svn-id: http://svn.drobilla.net/serd/trunk@246 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Fix debug build without --stack-check.David Robillard1-0/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@245 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Move all #ifdef gunk to serd_internal.h.David Robillard8-53/+50
Centralise file open and buffer allocation to localize platform tweaks. git-svn-id: http://svn.drobilla.net/serd/trunk@244 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Use posix_fadvise to advise about sequential file access.David Robillard2-1/+17
git-svn-id: http://svn.drobilla.net/serd/trunk@243 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Add SerdBulkSink for writing bulk output and corresponding serdi -B option.David Robillard4-14/+119
git-svn-id: http://svn.drobilla.net/serd/trunk@242 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Fix string length calculation.David Robillard1-3/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@241 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Align read buffer to page boundary if posix_memalign is available.David Robillard1-1/+8
git-svn-id: http://svn.drobilla.net/serd/trunk@240 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Shrink code.David Robillard1-5/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@239 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Improve write performance by doing bulk writes for unescaped substrings.David Robillard1-0/+16
git-svn-id: http://svn.drobilla.net/serd/trunk@238 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Simply reader by using a stack of SerdNode rather than weird internal types.David Robillard1-250/+204
git-svn-id: http://svn.drobilla.net/serd/trunk@237 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Better invalid string character handling.David Robillard1-10/+40
git-svn-id: http://svn.drobilla.net/serd/trunk@236 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-12-10Tolerate invalid characters in string literals by replacing with theDavid Robillard1-5/+28
Unicode replacement character. git-svn-id: http://svn.drobilla.net/serd/trunk@232 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-11-04Move serd_strlen and serd_strerror to string.c and document both in "String ↵David Robillard2-26/+25
Utilities" section. git-svn-id: http://svn.drobilla.net/serd/trunk@229 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-09-29Tidy.David Robillard5-54/+58
git-svn-id: http://svn.drobilla.net/serd/trunk@218 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-09-27Add serd_env_set_prefix_from_strings for convenience.David Robillard1-0/+14
Fix configure --debug. git-svn-id: http://svn.drobilla.net/serd/trunk@217 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-08-21Gracefully handle NULL reader sinks.David Robillard2-11/+51
Add serd_strerror. Fix erroneously equal SERD_ERR_BAD_SYNTAX and SERD_ERR_BAD_ARG. git-svn-id: http://svn.drobilla.net/serd/trunk@211 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-08-20Avoid writing illegal Turtle names as a result of URI qualifying (fix #734).David Robillard2-3/+40
git-svn-id: http://svn.drobilla.net/serd/trunk@210 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-07-26Fix pretty printing of successive blank descriptions, i.e. "] , [".David Robillard1-3/+9
git-svn-id: http://svn.drobilla.net/serd/trunk@209 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-06-19Fix abbreviation flags for blank nodes within lists (fix ticket #719).David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@206 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-06-19Fix abbreviation of repeated predicates with blank objects, and abbreviation ↵David Robillard1-2/+4
memory errors (hopefully fix ticket #710). Add example test from ticket #710 (as of this revision, this graph, tests/test-blank-cont.ttl, correctly serialises with serdi -i turtle -o turtle, though the indentation is a bit off...). git-svn-id: http://svn.drobilla.net/serd/trunk@205 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-24More picky URI to path conversionDavid Robillard1-1/+4
git-svn-id: http://svn.drobilla.net/serd/trunk@193 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-24Remove unused object component of write context.David Robillard1-9/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@192 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-24Add serd_uri_to_path to API.David Robillard2-26/+27
Remove unused SERD_ANON_END statement flag. git-svn-id: http://svn.drobilla.net/serd/trunk@191 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-24Add string measuring sanity check.David Robillard1-0/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@188 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-24Don't call serd_strlen for append_string (which is only used on internal ↵David Robillard1-10/+7
ASCII strings) git-svn-id: http://svn.drobilla.net/serd/trunk@186 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-19Express inlining information via statement flags rather than node types.David Robillard2-105/+122
Correctly support inline blank subjects (e.g. "[ :a :b ] :c :d ."). git-svn-id: http://svn.drobilla.net/serd/trunk@184 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-18Add test to ensure blank node IDs don't clash with generated IDs.David Robillard4-69/+241
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 Robillard2-8/+8
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-12Fix out of bounds array indexing.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@177 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-12Fix URI resolution off-by-one.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@176 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-12Use conventional string lengths not including NULL terminatorDavid Robillard4-55/+55
git-svn-id: http://svn.drobilla.net/serd/trunk@174 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-12Only abbreviate rdf:type to "a" in predicate position.David Robillard1-12/+13
git-svn-id: http://svn.drobilla.net/serd/trunk@173 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-12Tidy.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@172 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-12Print newline after @prefix statements.David Robillard1-0/+5
git-svn-id: http://svn.drobilla.net/serd/trunk@171 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-12Correctly abbreviate repeated inline blank node objects ("] , [").David Robillard1-6/+19
git-svn-id: http://svn.drobilla.net/serd/trunk@170 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-11Fix crash when setting an identical namespace prefix.David Robillard2-2/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@169 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-11Create SerdNodeFlags typedef for flags.David Robillard3-48/+44
Expose serd_strlen. Make serd_node_copy tolerate a NULL parameter. git-svn-id: http://svn.drobilla.net/serd/trunk@168 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-11Record whether strings contains quotes or newlines for smart selection of ↵David Robillard5-64/+100
long strings vs short strings in writer output. git-svn-id: http://svn.drobilla.net/serd/trunk@167 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-09Improve documentation and const-correctness.David Robillard1-3/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@165 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-06Make writer methods directly compatible with reader callbacks.David Robillard2-72/+35
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 Robillard3-121/+96
git-svn-id: http://svn.drobilla.net/serd/trunk@163 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-05Tidy.David Robillard3-28/+28
git-svn-id: http://svn.drobilla.net/serd/trunk@161 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-05Remove datatype and lang from internal Node struct (use less stack space).David Robillard1-58/+76
git-svn-id: http://svn.drobilla.net/serd/trunk@160 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-05Replace strlen of string constants with sizeof.David Robillard1-3/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@159 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-05Fix comments mangled by search/replace.David Robillard1-3/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@158 490d8e77-9747-427b-9fa3-0b8f29cee8a0