aboutsummaryrefslogtreecommitdiffstats
path: root/test/meson.build
AgeCommit message (Collapse)AuthorFilesLines
2023-12-02[WIP] Add support for URI hex escape decodingDavid Robillard1-5/+28
2023-12-02Use SerdNodes instead of manual memory management in testsDavid Robillard1-0/+8
2023-12-02Add "contextual" output optionDavid Robillard1-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-02Add SERD_READ_ORDERED to preserve blank node ordering in modelsDavid Robillard1-0/+5
2023-12-02Add model and serd-sort utilityDavid Robillard1-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-02Add statement filter sink and serd-filter toolDavid Robillard1-13/+97
2023-12-02Add "longhand" mode to write rdf:type predicates normallyDavid Robillard1-0/+11
2023-12-02Factor out and rewrite command-line interfaceDavid Robillard1-10/+33
2023-12-02Add serd_node_from_syntax() and serd_node_to_syntax()David Robillard1-0/+1
2023-12-02Add SerdNodes for storing a cache of interned nodesDavid Robillard1-0/+1
2023-12-02Make blank node prefixing automaticDavid Robillard1-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-02Split SERD_READ_VERBATIM into two more precise flagsDavid Robillard1-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-02Add a reader flag to disable generated blank label avoidanceDavid Robillard1-0/+1
2023-12-02Collapse input and output options into single flagsDavid Robillard1-26/+27
2023-12-02[WIP] Add support for converting literals to canonical formDavid Robillard1-0/+9
2023-12-02Add support for custom allocatorsDavid Robillard1-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-02Test handling of deferred write errors that happen when closingDavid Robillard1-0/+8
2023-12-02Add command-line option to write output to a fileDavid Robillard1-0/+9
2023-12-02[WIP] Expand URIs in readerDavid Robillard1-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 APIDavid Robillard1-2/+27
2023-12-02[WIP] Add support for reading and writing variablesDavid Robillard1-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 optionDavid Robillard1-2/+6
This is more powerful, and reduces the number of command line options that almost nobody needs to care about.
2023-12-02Add support for reading multiple files at onceDavid Robillard1-0/+8
2023-12-02Simplify handling of input string argumentsDavid Robillard1-1/+2
2023-12-02Add base URI command-line optionDavid Robillard1-0/+15
2023-12-02Rename serdi to serd-pipeDavid Robillard1-22/+29
2023-12-02Simplify input stream APIDavid Robillard1-0/+11
2023-12-02Use portable zix filesystem API in testsDavid Robillard1-2/+2
2023-12-02[WIP] Add zix dependencyDavid Robillard1-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-02Split out simple reader unit testsDavid Robillard1-0/+1
2023-12-02Add empty syntax type for suppressing outputDavid Robillard1-0/+10
2023-12-02Add support for writing terse output with minimal newlinesDavid Robillard1-0/+8
2023-12-02Simplify writer style options and write UTF-8 by defaultDavid Robillard1-2/+6
2023-12-02Add SerdStatementDavid Robillard1-0/+1
2023-12-02Add SerdCaretDavid Robillard1-0/+1
2023-12-02Add serd_world_get_blank()David Robillard1-0/+1
2023-12-02[WIP] Use exess for reading and writing numeric and binary literalsDavid Robillard1-5/+30
2023-12-02Move syntax name/extension utilities to public APIDavid Robillard1-0/+1
2023-12-02Improve reader error handlingDavid Robillard1-0/+1
2023-12-02Use a fixed-size reader stackDavid Robillard1-0/+5
2023-12-02Add SerdSink interface and hide implementationsDavid Robillard1-0/+1
2023-09-23Avoid use of deprecated meson string formatting with filesDavid Robillard1-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-22Clean up meson formattingDavid Robillard1-35/+73
Formatted automatically with muon, with some manual changes to make things format more nicely.
2023-04-30Add long "help" and "version" options to serdiDavid Robillard1-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-06Make URI writing stricter by defaultDavid Robillard1-1/+9
2023-04-06Check formatting of project Turtle filesDavid Robillard1-0/+11
2023-04-06Use portable names for all test targetsDavid Robillard1-8/+8
2023-04-06Add pylint testDavid Robillard1-1/+25
2023-04-06Fix flake8 warnings and add testDavid Robillard1-0/+6
2023-04-06Simplify command-line option test namesDavid Robillard1-2/+2