Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2023-12-02 | Add serd_node_from_syntax() and serd_node_to_syntax() | David Robillard | 3 | -2/+225 | |
2023-12-02 | Use SerdNodes in Env implementation | David Robillard | 1 | -2/+2 | |
2023-12-02 | Use SerdNodes to simplify some tests | David Robillard | 6 | -178/+286 | |
2023-12-02 | Reuse the same rdf:type node for all "a" abbreviations | David Robillard | 1 | -1/+1 | |
This reduces the stack space requirements for every type statement, at the cost of adding a bit of constant bloat for the node in documents that do not contain it. | |||||
2023-12-02 | Cache commonly used nodes in the world | David Robillard | 1 | -2/+1 | |
2023-12-02 | Add SerdNodes for storing a cache of interned nodes | David Robillard | 7 | -67/+688 | |
2023-12-02 | Make blank node prefixing automatic | David Robillard | 8 | -69/+3 | |
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. | |||||
2023-12-02 | Split SERD_READ_VERBATIM into two more precise flags | David Robillard | 1 | -1/+2 | |
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. | |||||
2023-12-02 | Add a reader flag to disable generated blank label avoidance | David Robillard | 1 | -0/+1 | |
2023-12-02 | Collapse input and output options into single flags | David Robillard | 5 | -30/+31 | |
2023-12-02 | Expose serd_strncasecmp in public API | David Robillard | 1 | -7/+6 | |
2023-12-02 | [WIP] Add support for converting literals to canonical form | David Robillard | 12 | -0/+352 | |
2023-12-02 | [WIP] Generalize node construction API | David Robillard | 12 | -307/+521 | |
2023-12-02 | Add support for custom allocators | David Robillard | 17 | -447/+1016 | |
This makes it explicit in the API where memory is allocated, and allows the user to provide a custom allocator to avoid the use of the default system allocator for whatever reason. | |||||
2023-12-02 | Test handling of deferred write errors that happen when closing | David Robillard | 2 | -5/+18 | |
2023-12-02 | Add command-line option to write output to a file | David Robillard | 3 | -6/+14 | |
2023-12-02 | [WIP] Remove SERD_CURIE node datatype entirely | David Robillard | 5 | -67/+32 | |
2023-12-02 | [WIP] Expand URIs in reader | David Robillard | 11 | -11/+133 | |
This expands relative and prefixed URIs in the reader on the stack, rather than passing them to the caller to be dealt with. This pushes these context-full forms to the edge of the system as much as possible to minimise the headaches they can cause. Towards having stricter guarantees about nodes and eliminating the CURIE node type altogether. | |||||
2023-12-02 | [WIP] Move SerdEnv mutation from writer to reader | David Robillard | 4 | -48/+48 | |
Writing having side-effects seems questionable in general, and this prepares things for expanding URIs in the reader. | |||||
2023-12-02 | [WIP] Preserve long or short quoting from input documents | David Robillard | 24 | -109/+129 | |
2023-12-02 | Leave statement caret at the start of literals | David Robillard | 1 | -0/+56 | |
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. | |||||
2023-12-02 | [WIP] Add extensible logging API | David Robillard | 2 | -2/+148 | |
2023-12-02 | [WIP] Add support for reading and writing variables | David Robillard | 18 | -12/+148 | |
[WIP] Command line option, move later? This adds a reader flag and serdi option for extending a syntax with support for SPARQL-like variables, for storing things like patterns or simple queries. | |||||
2023-12-02 | [TESTED] Replace -b and -e options with a block size option | David Robillard | 1 | -2/+6 | |
This is more powerful, and reduces the number of command line options that almost nobody needs to care about. | |||||
2023-12-02 | Add support for reading multiple files at once | David Robillard | 5 | -0/+52 | |
2023-12-02 | Simplify handling of input string arguments | David Robillard | 1 | -1/+2 | |
2023-12-02 | Add base URI command-line option | David Robillard | 5 | -14/+52 | |
2023-12-02 | Rename serdi to serd-pipe | David Robillard | 7 | -33/+40 | |
2023-12-02 | Move serdi to tools subdirectory | David Robillard | 2 | -2/+2 | |
This separates the command-line tool code from the library implementation. | |||||
2023-12-02 | Remove datatype arguments from integer and base64 constructors | David Robillard | 1 | -12/+9 | |
2023-12-02 | Simplify output stream API | David Robillard | 3 | -56/+97 | |
2023-12-02 | Simplify input stream API | David Robillard | 4 | -55/+151 | |
2023-12-02 | Make SerdBuffer an output stream | David Robillard | 3 | -17/+22 | |
2023-12-02 | Strengthen handling of corrupt UTF-8 input | David Robillard | 8 | -26/+208 | |
2023-12-02 | Support writing all escapes in Turtle and TriG prefixed names | David Robillard | 3 | -2/+82 | |
2023-12-02 | Separate Turtle and TriG reading code | David Robillard | 1 | -1/+2 | |
2023-12-02 | Factor out NQuads reader | David Robillard | 2 | -0/+10 | |
2023-12-02 | Factor out NTriples reader | David Robillard | 9 | -7/+74 | |
2023-12-02 | Use Zix attributes directly | David Robillard | 3 | -4/+5 | |
2023-12-02 | Use portable zix filesystem API in tests | David Robillard | 4 | -57/+39 | |
2023-12-02 | [WIP] Add zix dependency | David Robillard | 1 | -1/+3 | |
Most of the system-specific code will be replaced with calls to portable zix functions, and the data structures will be used for in-memory node and statement storage. | |||||
2023-12-02 | Clean up SerdEnv tests | David Robillard | 1 | -65/+249 | |
2023-12-02 | Add serd_env_copy() and serd_env_equals() | David Robillard | 1 | -0/+43 | |
2023-12-02 | Simplify SerdEnv API | David Robillard | 1 | -40/+45 | |
2023-12-02 | Test lax NTriples parsing separately | David Robillard | 14 | -25/+89 | |
2023-12-02 | Support reading lone lists in lax mode | David Robillard | 3 | -0/+10 | |
This allows parsing documents like "(42) ." | |||||
2023-12-02 | Align nodes on the reader stack | David Robillard | 1 | -1/+3 | |
2023-12-02 | Replace serd_reader_set_strict() with SerdReaderFlags | David Robillard | 3 | -11/+11 | |
2023-12-02 | Split out simple reader unit tests | David Robillard | 3 | -317/+404 | |
2023-12-02 | Reduce complexity of statement writing functions | David Robillard | 1 | -1/+1 | |