Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2022-01-28 | Make tools read stdin by default | David Robillard | 6 | -32/+15 | |
2022-01-28 | Replace serdi with more fine-grained tools | David Robillard | 64 | -1132/+3228 | |
Especially with the new functionality, the complexity of the command-line interface alone was really becoming unmanageable. The serdi implementation also had the highest cyclomatic complexity of the entire codebase by a huge margin. So, take a page from the Unix philosophy and split serdi into several more finely-honed tools that can be freely composed. Though there is still unfortunately quite a bit of option overlap between them due to the common details of reading RDF, I think the resulting tools are a lot easier to understand, both from a user and a developer perspective. | |||||
2022-01-28 | Make blank node prefixing automatic | David Robillard | 12 | -153/+27 | |
Though potentially useful, I don't think the complexity cost of the old interface (both to the implementation and to the user) is worth it. A special tool to transform blank node labels (for example with regular expressions) would be a better approach to this if it's ever needed in the future. | |||||
2022-01-28 | Split SERD_READ_VERBATIM into two more precise flags | David Robillard | 4 | -14/+24 | |
Although the "verbatim" idea is nice and simple, more fine-grained control is necessary since these features (relative URI preservation and blank node label clash avoidance) are useful in different situations. | |||||
2022-01-28 | Add a reader flag to disable generated blank label avoidance | David Robillard | 4 | -4/+27 | |
2022-01-28 | Write test outputs to a temporary directory | David Robillard | 2 | -44/+36 | |
While occasionally useful, I almost always end up reproducing the issue live to investigate something anyway. Not keeping the many tests results around results in less clutter, and hopefully makes the test suites faster in environments with bad I/O like Docker. | |||||
2022-01-28 | Split up test suite build definitions | David Robillard | 12 | -87/+166 | |
2022-01-28 | Factor out serd_choose_input_syntax() | David Robillard | 4 | -13/+40 | |
2022-01-28 | Add a close function to SerdByteSink | David Robillard | 10 | -81/+90 | |
This simplifies everything by replacing special cases with a more general close function. A type is no longer stored in the structure, so the other constructors are now essentially syntactic sugar for the universal serd_byte_sink_new_function(). | |||||
2022-01-28 | Collapse input and output options into a single flag | David Robillard | 6 | -60/+168 | |
2022-01-28 | Expose serd_strncasecmp in public API | David Robillard | 4 | -15/+28 | |
2022-01-28 | Simplify command line usage printing | David Robillard | 1 | -24/+27 | |
2022-01-28 | Preserve anonymous graph syntax in TriG | David Robillard | 4 | -8/+12 | |
2022-01-28 | Remove redundant check for command line argument count | David Robillard | 1 | -4/+1 | |
2022-01-28 | Move serdi to tools subdirectory | David Robillard | 7 | -18/+20 | |
This separates the command-line tool code from the library implementation. | |||||
2022-01-28 | Replace serdi -b and -e options with a block size option | David Robillard | 8 | -65/+59 | |
This is more powerful, and reduces the number of command line options that almost nobody needs to care about. | |||||
2022-01-28 | Factor out common test runner facilities | David Robillard | 2 | -58/+71 | |
2022-01-28 | Factor out duplicated ByteSource buffer allocation code | David Robillard | 1 | -14/+14 | |
2022-01-28 | Factor out setting base URI from a path | David Robillard | 3 | -11/+23 | |
2022-01-28 | Factor out opening output files | David Robillard | 3 | -5/+16 | |
2022-01-28 | Factor out opening input files | David Robillard | 3 | -12/+34 | |
2022-01-28 | Factor out command line version printing | David Robillard | 3 | -17/+23 | |
2022-01-28 | Factor out Windows UTF-8 console setup code | David Robillard | 4 | -13/+60 | |
2022-01-28 | Add version constants to public header | David Robillard | 4 | -8/+39 | |
2022-01-28 | Make serd_writer_set_root_uri() take a string view | David Robillard | 3 | -8/+5 | |
This is generally more convenient, and the node was just being copied anyway. | |||||
2022-01-28 | Simplify reader and writer flags | David Robillard | 6 | -17/+92 | |
2022-01-28 | Support writing all escapes in Turtle and TriG prefixed names | David Robillard | 5 | -88/+186 | |
2022-01-28 | Factor out and expose prefixed name predicates | David Robillard | 5 | -55/+90 | |
Towards using these in the writer to escape names more precisely. | |||||
2022-01-28 | Add assertions for all non-null pointers in the public API | David Robillard | 22 | -2/+223 | |
Clang issues warnings at build time based on the SERD_NONNULL annotations, which is a much better approach in general. However, it does not cover cases where the API is being used with another compiler, or without a compiler that can statically check things at all (such as Python or other dynamic language bindings). In those situations, getting a clear assertion message is a lot less confusing than a random crash somewhere in serd, and it makes it clear that the bug is in the caller, so I think it's worth the tedious verbosity. | |||||
2022-01-14 | Add statement filtering | David Robillard | 8 | -4/+476 | |
2022-01-14 | Add support for converting literals to canonical form | David Robillard | 19 | -10/+495 | |
2022-01-14 | Add a convenience script to run all docker builds | David Robillard | 1 | -0/+65 | |
2022-01-14 | Add model to benchmarks | David Robillard | 1 | -6/+12 | |
2022-01-14 | Add model | David Robillard | 25 | -14/+3735 | |
2022-01-14 | Use Nodes in Env implementation | David Robillard | 2 | -49/+63 | |
2022-01-14 | Avoid dynamic allocation when fetching interned nodes | David Robillard | 9 | -391/+1582 | |
This is more or less a total rewrite of SerdNodes and the underlying ZixHash to make efficient use of the new node construction API. | |||||
2022-01-14 | Avoid dynamic allocation of world blank node | David Robillard | 2 | -8/+16 | |
2022-01-14 | Make StringView buffer non-nullable | David Robillard | 1 | -2/+2 | |
2022-01-14 | Expose low-level node construction API | David Robillard | 11 | -365/+915 | |
2022-01-14 | Remove serd_new_resolved_uri() | David Robillard | 3 | -76/+36 | |
2022-01-14 | Rename serd_new_simple_node() to serd_new_token() | David Robillard | 3 | -19/+13 | |
Things get confusing without a term for this concept (which is roughly "nodes that are not annoying to construct"), so "token" it is. | |||||
2022-01-14 | Preserve long or short quoting from input documents | David Robillard | 16 | -284/+209 | |
2022-01-14 | Factor out serd_write_file_uri() | David Robillard | 3 | -72/+101 | |
2022-01-14 | Add serd_statement_matches() | David Robillard | 4 | -0/+45 | |
2022-01-14 | Add serd_node_compare() | David Robillard | 4 | -0/+99 | |
2022-01-14 | Add serd_node_from_syntax() and serd_node_to_syntax() | David Robillard | 8 | -2/+356 | |
2022-01-14 | Leave statement caret at the start of literals | David Robillard | 4 | -5/+73 | |
This allows a precise location to be reported for errors within literals, by adding the offset of the error in the literal to the caret. This will be used to report nice errors for things like regular expressions and supported XSD datatypes. | |||||
2022-01-14 | Reduce complexity of Turtle and TriG block reading functions | David Robillard | 1 | -89/+109 | |
2022-01-14 | Reduce complexity of Turtle object reading function | David Robillard | 1 | -56/+73 | |
2022-01-14 | Add tests for weird prefixed name edge cases in RDF 1.1 Turtle | David Robillard | 6 | -0/+58 | |