Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
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 | |
2022-01-14 | Factor out NQuads reader | David Robillard | 10 | -117/+200 | |
2022-01-14 | Factor out NTriples reader | David Robillard | 16 | -550/+1196 | |
2022-01-14 | Test lax NTriples parsing separately | David Robillard | 14 | -25/+88 | |
2022-01-14 | Factor out UTF-8 reading utilities | David Robillard | 6 | -86/+163 | |
2022-01-14 | Reduce complexity of blank node reading functions | David Robillard | 1 | -17/+33 | |
2022-01-14 | Remove SERD_CURIE node datatype entirely | David Robillard | 13 | -231/+106 | |
2022-01-14 | Expand URIs in reader | David Robillard | 7 | -24/+191 | |
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. | |||||
2022-01-14 | Make serd_env_expand_in_place() take a string view instead of a node | David Robillard | 3 | -8/+11 | |
2022-01-14 | Move SerdEnv mutation from writer to reader | David Robillard | 11 | -83/+87 | |
Writing having side-effects seems questionable in general, and this prepares things for expanding URIs in the reader. | |||||
2022-01-14 | Add extensible logging API | David Robillard | 14 | -168/+734 | |
2022-01-13 | Add SERD_READ_EXACT_BLANKS flag | David Robillard | 2 | -3/+4 | |
This allows suppressing the blank node ID clashing mechanism to read blank IDs exactly as they appear in the input, even if they match the scheme used to generate blank node IDs internally. | |||||
2022-01-13 | Add support for parsing variables | David Robillard | 29 | -24/+275 | |
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. | |||||
2022-01-13 | Make Reader always read from a ByteSource | David Robillard | 19 | -268/+460 | |
2022-01-13 | Add support for reading multiple files at once | David Robillard | 9 | -35/+186 | |
2022-01-13 | Add serd_canonical_path() | David Robillard | 5 | -2/+72 | |
2022-01-13 | Make serd_uri_string_length() precise and add it to public API | David Robillard | 3 | -22/+59 | |
2022-01-13 | Simplify handling of input string arguments | David Robillard | 3 | -12/+17 | |
2022-01-13 | Add input base URI option | David Robillard | 4 | -12/+35 | |
2022-01-13 | Support reading lone lists in lax mode | David Robillard | 4 | -1/+11 | |
This allows parsing documents like "(42) ." | |||||
2022-01-13 | Fix hang when skipping an error at EOF when lax parsing | David Robillard | 1 | -1/+1 | |
2022-01-13 | Fix crash when attempting to read before starting | David Robillard | 2 | -0/+7 | |
2022-01-13 | Simplify ByteSource implementation | David Robillard | 3 | -34/+20 | |
2022-01-13 | Be precise about the meaning of node "length" and "size" | David Robillard | 4 | -39/+36 | |
2022-01-13 | Align nodes on the reader stack | David Robillard | 3 | -7/+12 | |
2022-01-13 | Replace serd_reader_set_strict() with SerdReaderFlags | David Robillard | 7 | -32/+27 | |