aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2013-03-03Remove comments referring to old grammar rules.David Robillard1-33/+0
git-svn-id: http://svn.drobilla.net/serd/trunk@425 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-03-03Pass turtle-syntax-bad-prefix-01 (propagate errors in write_node).David Robillard1-5/+8
git-svn-id: http://svn.drobilla.net/serd/trunk@424 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-03-02Pass turtle-syntax-number-08.ttl (integer followed by terminating dot).David Robillard1-112/+145
Better error handling. git-svn-id: http://svn.drobilla.net/serd/trunk@423 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-02-25Support most of the latest Turtle Editor's Draft.David Robillard2-374/+467
git-svn-id: http://svn.drobilla.net/serd/trunk@418 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-02-24Fix typo.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@415 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-02-24Generate shorter blank node IDs like the new Turtle test suite.David Robillard1-13/+13
git-svn-id: http://svn.drobilla.net/serd/trunk@414 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-02-03Correctly handle posix_memalign failureDavid Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@411 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-01-22Fix possible crash in serd_writer_end_anon() when writing invalid listsDavid Robillard1-2/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@409 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-12-23Windows compatibility fixes.David Robillard1-0/+5
git-svn-id: http://svn.drobilla.net/serd/trunk@405 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-12-21Fix crash when serd_node_new_decimal is called with infinity or NaN.David Robillard1-0/+4
git-svn-id: http://svn.drobilla.net/serd/trunk@401 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-12-20Fix crash when resolving against non-standard base URIs.David Robillard1-4/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@400 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-11-14Fix bug that caused "a" abbreviation in non-predicate position (#862).David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@399 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-09-09Fix clashing symbol "error" in amalgamation build.David Robillard2-20/+20
git-svn-id: http://svn.drobilla.net/serd/trunk@384 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-08-08Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes ↵David Robillard6-23/+22
-Wmissing-prototypes. git-svn-id: http://svn.drobilla.net/serd/trunk@374 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-08-08Fix incorrect prototype.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@373 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-07-17Support digits at start of local names as per new grammar.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@360 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-07-05Add error callback to reader and writer for custom error reporting.David Robillard6-60/+139
Add -q option to serdi to suppress all non-data output, e.g. errors. Resolves #815. git-svn-id: http://svn.drobilla.net/serd/trunk@354 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-05-13Fix dead assignment.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@352 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-05-10Reset indent when finishing a write.David Robillard1-0/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@351 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-05-08Add incremental read interface suitable for reading from infinite streams.David Robillard2-15/+82
git-svn-id: http://svn.drobilla.net/serd/trunk@350 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-29Don't break relative URIs with up-references when parsing a document with no ↵David Robillard2-7/+9
base URI. git-svn-id: http://svn.drobilla.net/serd/trunk@342 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-28Strip duplicate blank lines.David Robillard1-1/+0
git-svn-id: http://svn.drobilla.net/serd/trunk@341 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-27Delete trailing whitespace.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@340 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-27Don't emit a ; at the end of anonymous descriptions.David Robillard1-2/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@339 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-18Add serd_reader_set_default_graph() for reading a file as a named graph.David Robillard1-1/+17
git-svn-id: http://svn.drobilla.net/serd/trunk@338 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-18Tolerate NULL URI parameter in serd_env_get_base_uri().David Robillard1-1/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@337 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-10Add serd_writer_set_root_uri(), root parameter toDavid Robillard5-115/+188
serd_uri_serialise_relative(), and -r option to serdi, to enable writing URIs with up references (../) within a parent namespace. Resolve dot segments in serd_uri_resolve() instead of at write time. git-svn-id: http://svn.drobilla.net/serd/trunk@336 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-10Trim redundant case.David Robillard1-3/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@335 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-08Fix compilation in VC++.David Robillard2-4/+5
git-svn-id: http://svn.drobilla.net/serd/trunk@334 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-08Add escape parameter to serd_node_new_file_uri().David Robillard1-2/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@333 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-08Make serd_node_from_string tolerate NULL.David Robillard1-0/+4
git-svn-id: http://svn.drobilla.net/serd/trunk@332 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-08serd_node_new_uri_from_path => serd_node_new_file_uri.David Robillard1-3/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@331 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-08Add serd_writer_get_env().David Robillard5-96/+313
Add serd_node_new_uri_from_path() and serd_file_uri_parse() and implement proper URI to/from path hex escaping, etc. Add serd_uri_serialise_relative() for making URIs relative to a base where possible (by chopping a common prefix and adding dot segments). Make URIs serialised by the writer properly escape characters. git-svn-id: http://svn.drobilla.net/serd/trunk@330 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-03Add serd_chunk_sink for easy writing to a string.David Robillard1-0/+19
git-svn-id: http://svn.drobilla.net/serd/trunk@329 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-03Fix reading of empty files (e.g. /dev/null) test case.David Robillard2-8/+8
git-svn-id: http://svn.drobilla.net/serd/trunk@328 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-01Tolerate NULL endptr in serd_strtod.David Robillard1-1/+4
git-svn-id: http://svn.drobilla.net/serd/trunk@327 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-29Handle files and strings that start with a UTF-8 Byte Order Mark (fix #814).David Robillard1-1/+15
git-svn-id: http://svn.drobilla.net/serd/trunk@326 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-28Fix serialisation of decimals like 10.0, 20.0, etc.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@325 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Add prefix to generated node IDs as well, to avoid clashing when reading ↵David Robillard1-8/+13
multiple documents into one model. git-svn-id: http://svn.drobilla.net/serd/trunk@324 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Trim code.David Robillard1-4/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@322 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Report read error if both "genid" and "docid" IDs are found in the same ↵David Robillard1-7/+13
document, to prevent silent merging of distinct blank nodes. git-svn-id: http://svn.drobilla.net/serd/trunk@320 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Make -p actually work as advertised.David Robillard1-17/+13
git-svn-id: http://svn.drobilla.net/serd/trunk@319 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Remove dead code.David Robillard1-8/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@318 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Trim code.David Robillard1-16/+9
git-svn-id: http://svn.drobilla.net/serd/trunk@317 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Further isolate collection writing stuff.David Robillard1-34/+24
Trim code. git-svn-id: http://svn.drobilla.net/serd/trunk@316 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Avoid comparing against NS_XSD several times per node.David Robillard1-6/+6
git-svn-id: http://svn.drobilla.net/serd/trunk@315 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Tidy.David Robillard1-7/+5
git-svn-id: http://svn.drobilla.net/serd/trunk@314 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Print command name in serdi error messages.David Robillard3-51/+33
Trim code. git-svn-id: http://svn.drobilla.net/serd/trunk@313 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-20Remove odd assertion.David Robillard1-2/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@312 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-20Trim some fat by taking advantage of ReadContext for statement emission.David Robillard1-16/+9
git-svn-id: http://svn.drobilla.net/serd/trunk@310 490d8e77-9747-427b-9fa3-0b8f29cee8a0