Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2023-12-02 | [WIP] Add support for URI hex escape decoding | David Robillard | 1 | -5/+28 | |
2023-12-02 | Use SerdNodes instead of manual memory management in tests | David Robillard | 1 | -0/+8 | |
2023-12-02 | Add "contextual" output option | David Robillard | 1 | -0/+11 | |
This is mainly for developer or power-user cases, where one wants to look at some data for investigation or debugging. In such cases, it's common for the set of prefixes to be implicitly known (because they are baked in to the application, for example), so printing them just produces a large amount of redundant noise. That said, it can also be useful programmatically, because it allows several snippets to be written independently and ultimately concatenated (with a header to define the prefixes) without redundancy. | |||||
2023-12-02 | Add SERD_READ_ORDERED to preserve blank node ordering in models | David Robillard | 1 | -0/+5 | |
2023-12-02 | Add model and serd-sort utility | David Robillard | 1 | -2/+74 | |
With all the new functionality, the complexity of the serd-pipe command-line interface is starting to push the limits of available flags. So, instead of grafting on further options to control a model, this commit adds a new tool, serd-sort, which acts somewhat like a stripped-down serd-pipe that stores statements in a model in memory. This keeps the complexity (including the user-facing complexity) of any one tool down, since other more focused tools can be used for streaming tasks in a pipeline. In other words, abandon Swissarmyknifeism, take a page from the Unix philosophy, and try to expose the model functionality to the command-line in a dedicated focused tool. The model implementation is tested by using this tool to run a subset of the usual test suites, and a special suite to test statement sorting. | |||||
2023-12-02 | Add statement filter sink and serd-filter tool | David Robillard | 1 | -13/+97 | |
2023-12-02 | Add "longhand" mode to write rdf:type predicates normally | David Robillard | 1 | -0/+11 | |
2023-12-02 | Factor out and rewrite command-line interface | David Robillard | 1 | -10/+33 | |
2023-12-02 | Add serd_node_from_syntax() and serd_node_to_syntax() | David Robillard | 1 | -0/+1 | |
2023-12-02 | Add SerdNodes for storing a cache of interned nodes | David Robillard | 1 | -0/+1 | |
2023-12-02 | Make blank node prefixing automatic | David Robillard | 1 | -17/+0 | |
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 | 1 | -26/+27 | |
2023-12-02 | [WIP] Add support for converting literals to canonical form | David Robillard | 1 | -0/+9 | |
2023-12-02 | Add support for custom allocators | David Robillard | 1 | -1/+1 | |
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 | 1 | -0/+8 | |
2023-12-02 | Add command-line option to write output to a file | David Robillard | 1 | -0/+9 | |
2023-12-02 | [WIP] Expand URIs in reader | David Robillard | 1 | -0/+1 | |
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] Add extensible logging API | David Robillard | 1 | -2/+27 | |
2023-12-02 | [WIP] Add support for reading and writing variables | David Robillard | 1 | -0/+7 | |
[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 | 1 | -0/+8 | |
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 | 1 | -0/+15 | |
2023-12-02 | Rename serdi to serd-pipe | David Robillard | 1 | -22/+29 | |
2023-12-02 | Simplify input stream API | David Robillard | 1 | -0/+11 | |
2023-12-02 | Use portable zix filesystem API in tests | David Robillard | 1 | -2/+2 | |
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 | Split out simple reader unit tests | David Robillard | 1 | -0/+1 | |
2023-12-02 | Add empty syntax type for suppressing output | David Robillard | 1 | -0/+10 | |
2023-12-02 | Add support for writing terse output with minimal newlines | David Robillard | 1 | -0/+8 | |
2023-12-02 | Simplify writer style options and write UTF-8 by default | David Robillard | 1 | -2/+6 | |
2023-12-02 | Add SerdStatement | David Robillard | 1 | -0/+1 | |
2023-12-02 | Add SerdCaret | David Robillard | 1 | -0/+1 | |
2023-12-02 | Add serd_world_get_blank() | David Robillard | 1 | -0/+1 | |
2023-12-02 | [WIP] Use exess for reading and writing numeric and binary literals | David Robillard | 1 | -5/+30 | |
2023-12-02 | Move syntax name/extension utilities to public API | David Robillard | 1 | -0/+1 | |
2023-12-02 | Improve reader error handling | David Robillard | 1 | -0/+1 | |
2023-12-02 | Use a fixed-size reader stack | David Robillard | 1 | -0/+5 | |
2023-12-02 | Add SerdSink interface and hide implementations | David Robillard | 1 | -0/+1 | |
2023-09-23 | Avoid use of deprecated meson string formatting with files | David Robillard | 1 | -10/+29 | |
Meson annoyingly doesn't provide access to the path of file objects (but it should). It was possible to do that by formatting a string with a file argument, but now this triggers a loud warning that claims it has always been broken and will be deprecated. So, avoid this by juggling things around and maintaining unchecked path strings instead, and hope that they're all passed to files() at some point so they can't get stale. | |||||
2023-09-22 | Clean up meson formatting | David Robillard | 1 | -35/+73 | |
Formatted automatically with muon, with some manual changes to make things format more nicely. | |||||
2023-04-30 | Add long "help" and "version" options to serdi | David Robillard | 1 | -0/+2 | |
Although serdi still "officially" has a BSD-style interface, meson uses --version to find the version of executables. So, support that, and also add --help, since users will often try that for unknown commands. | |||||
2023-04-06 | Make URI writing stricter by default | David Robillard | 1 | -1/+9 | |
2023-04-06 | Check formatting of project Turtle files | David Robillard | 1 | -0/+11 | |
2023-04-06 | Use portable names for all test targets | David Robillard | 1 | -8/+8 | |
2023-04-06 | Add pylint test | David Robillard | 1 | -1/+25 | |
2023-04-06 | Fix flake8 warnings and add test | David Robillard | 1 | -0/+6 | |
2023-04-06 | Simplify command-line option test names | David Robillard | 1 | -2/+2 | |