David Robillard
2ecbc85f12
Update to latest Turtle test suite.
...
Support UTF-8 in blank node names.
Support idiotic SPARQL escaping in local names.
git-svn-id: http://svn.drobilla.net/serd/trunk@452 490d8e77-9747-427b-9fa3-0b8f29cee8a0
9 years ago
David Robillard
dc9f6c8d6b
Add new literal tests from Turtle test suite.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@449 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
09c4bb6a30
Add more tests from the new W3C Turtle test suite.
...
Support crazy escaped NULL characters in literals.
Fix incorrect round-trip serialization test command.
git-svn-id: http://svn.drobilla.net/serd/trunk@446 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
99a57ab1bc
Improve branch coverage.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@445 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
326d672cc9
Implement case-insensitive language tags from new Turtle spec.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@444 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
d9015f088e
Add some missing tests from latest W3C test suite.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@443 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
7c662143ed
Improve branch coverage.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@442 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
e6f2680dc5
Merge test suites.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@441 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
2d6b2c5560
Don't escape backspace or form feed for ntriples.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@440 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
0c9f5eb2ee
Set SERD_HAS_NEWLINE and SERD_HAS_QUOTE flags when unescaped newlines or quotes are read.
...
Don't escape legal ASCII characters when writing long literals.
git-svn-id: http://svn.drobilla.net/serd/trunk@439 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
2025d5a589
Remove unused prefix.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@437 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
a27bd15451
Support dots and colons in pnames.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@436 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
1184a65761
Improve dot support.
...
Extend test suite to cover more of the new Turtle draft.
git-svn-id: http://svn.drobilla.net/serd/trunk@433 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
c7fb2c971e
Pass negative eval tests (reject invalid escaped URI characters).
...
git-svn-id: http://svn.drobilla.net/serd/trunk@430 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
e2f891daf2
Fix anonymous_blank_node_subject test.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@421 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
4cd874e79f
Support most of the latest Turtle Editor's Draft.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@418 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
88c96ff149
Move old test suite to its own directory.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@416 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
a44d17c590
Generate shorter blank node IDs like the new Turtle test suite.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@414 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
7aac9795ba
Add missing files.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@413 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
d3e093b153
Restructure test suite to match new Turtle test suite.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@412 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
a6e3b5126b
Windows compatibility fixes.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@405 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
17f9487ed0
Fix serd_node_new_decimal test code.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@402 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
73d0a86698
Fix crash when serd_node_new_decimal is called with infinity or NaN.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@401 490d8e77-9747-427b-9fa3-0b8f29cee8a0
10 years ago
David Robillard
1aa4306d2f
Fix lax prototype.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@375 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
79dc6df5c5
Support digits at start of local names as per new grammar.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@360 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
02a41f39b2
Add error callback to reader and writer for custom error reporting.
...
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
11 years ago
David Robillard
32da26f159
Don't break relative URIs with up-references when parsing a document with no base URI.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@342 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
08b6811d84
Delete trailing whitespace.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@340 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
91ae836711
Add serd_reader_set_default_graph() for reading a file as a named graph.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@338 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
d14a7d1136
Add serd_writer_set_root_uri(), root parameter to
...
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
11 years ago
David Robillard
44177f8c18
Add escape parameter to serd_node_new_file_uri().
...
git-svn-id: http://svn.drobilla.net/serd/trunk@333 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
362fa11510
Make serd_node_from_string tolerate NULL.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@332 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
1725dfdf7c
serd_node_new_uri_from_path => serd_node_new_file_uri.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@331 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
f4365012b5
Add serd_writer_get_env().
...
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
11 years ago
David Robillard
7b022006c4
Add serd_chunk_sink for easy writing to a string.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@329 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
79545ea09d
Handle files and strings that start with a UTF-8 Byte Order Mark ( fix #814 ).
...
git-svn-id: http://svn.drobilla.net/serd/trunk@326 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
11a87df284
Fix serialisation of decimals like 10.0, 20.0, etc.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@325 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
418a485c00
Add test case and update ChangeLog.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@321 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
8e430f642c
Use iterative algorithm for collection parsing.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@306 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
192508f364
Implement pretty-printing for collections.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@305 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
d0fa317357
Add missing files.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@304 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
7c20847432
Add Windows path test cases (100% coverage for uri.c).
...
git-svn-id: http://svn.drobilla.net/serd/trunk@303 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
41a6aeb1ba
Use failure() function for all test failures.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@300 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
2d724f0e19
Support compilation as C++ under MSVC++
...
git-svn-id: http://svn.drobilla.net/serd/trunk@291 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
3c3e2de8a7
Update copyright dates.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@285 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
847e56d9e6
Add serd_node_new_blob and serd_base64_decode for handling arbitrary binary
...
data via base64 encoding.
git-svn-id: http://svn.drobilla.net/serd/trunk@280 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
e0f18e3402
Warn on invalid unicode character and replace ( fix #796 ).
...
git-svn-id: http://svn.drobilla.net/serd/trunk@279 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
f4b25c0297
Escape non-printable ASCII characters in ASCII output ( fix #795 ).
...
git-svn-id: http://svn.drobilla.net/serd/trunk@278 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
f3c95977f6
Near 100% branch coverage.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@277 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago
David Robillard
b2effabfc5
100% test coverage.
...
git-svn-id: http://svn.drobilla.net/serd/trunk@276 490d8e77-9747-427b-9fa3-0b8f29cee8a0
11 years ago