Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2021-03-08 | Expand URIs in reader | David Robillard | 1 | -7/+11 | |
2021-03-08 | WIP: Add serd_node_from_syntax() and serd_node_to_syntax() | David Robillard | 1 | -0/+38 | |
2021-03-08 | Add SERD_READ_EXACT_BLANKS flag | David Robillard | 1 | -2/+3 | |
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. | |||||
2021-03-08 | Add support for parsing variables | David Robillard | 1 | -3/+14 | |
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. | |||||
2021-03-08 | WIP: Make Reader always read from a ByteSource | David Robillard | 1 | -32/+72 | |
2021-03-08 | WIP: Make Writer always write to a ByteSink | David Robillard | 1 | -16/+42 | |
2021-03-08 | Make serd_uri_string_length() precise and add it to public API | David Robillard | 1 | -1/+15 | |
2021-03-08 | Add serd_new_real_file_uri() | David Robillard | 1 | -0/+16 | |
2021-03-08 | WIP: Make serd_env_expand() always return a node if it is not relative | David Robillard | 1 | -2/+4 | |
The old interface was potentially faster, because it avoided unnecessary copies, but was annoying to use and problematic because nodes that don't need expansion were indistinguishable from nodes that failed to expand (like those that use undefined namespace prefixes). In the grand scheme of things, the potential performance improvement isn't worth it, and unexpected unexpanded nodes causes deep nightmarish problems, so just make serd_env_expand() copy the input if it doesn't need expansion to make the API simpler and safer. | |||||
2021-03-08 | Make const Env functions tolerant of NULL | David Robillard | 1 | -4/+4 | |
This is convenient in places where you don't necessarily need an Env, since in this case these methods work the same as if with an empty Env. | |||||
2021-03-08 | Add empty syntax type for suppressing output | David Robillard | 1 | -8/+9 | |
2021-03-08 | Replace serd_reader_set_strict() with SerdReaderFlags | David Robillard | 1 | -13/+11 | |
This makes reader options extensible and should hopefully prevent the need for grafting on more similar functions in the future. | |||||
2021-03-08 | Report writer errors and add strict write mode | David Robillard | 1 | -2/+5 | |
2021-03-08 | Add support for writing terse collections | David Robillard | 1 | -1/+3 | |
2021-03-08 | Add option for writing terse output without newlines | David Robillard | 1 | -2/+3 | |
2021-03-08 | Handle read errors more precisely | David Robillard | 1 | -1/+2 | |
2021-03-08 | Use simpler names for statement flags | David Robillard | 1 | -5/+5 | |
2021-03-08 | Simplify streaming API and improve pretty printing | David Robillard | 1 | -8/+5 | |
This removes the obligation from the caller to correctly maintain flags to describe the current anonymous context, instead making the writer handle this itself as much as possible. Flags remain for the cases the writer can not infer from context: the start of anonymous subject and object nodes. | |||||
2021-03-08 | Cache commonly used nodes in the world | David Robillard | 1 | -0/+11 | |
2021-03-08 | Add SerdNodes class for storing a cache of nodes | David Robillard | 1 | -0/+60 | |
2021-03-08 | Add serd_env_copy() and serd_env_equals() | David Robillard | 1 | -0/+10 | |
2021-03-08 | Separate ByteSink from Writer | David Robillard | 1 | -2/+1 | |
2021-03-08 | Expose SerdByteSink in public API | David Robillard | 1 | -0/+38 | |
2021-03-08 | Simplify writer style options | David Robillard | 1 | -5/+4 | |
2021-03-08 | Replace multiple stream callbacks with SerdEvent | David Robillard | 1 | -46/+65 | |
This makes plumbing easier since everything goes through the same "stream" and only one callback is required to handling everything. It's also more easily extensible in case more event types need to be added in the future. | |||||
2021-03-08 | Add SerdStatement | David Robillard | 1 | -6/+51 | |
2021-03-08 | Add SerdCursor | David Robillard | 1 | -9/+72 | |
2021-03-08 | Remove serd_reader_set_default_graph() | David Robillard | 1 | -12/+0 | |
2021-03-08 | Move SerdField to public API | David Robillard | 1 | -0/+8 | |
2021-03-08 | Simplify SerdEnv API | David Robillard | 1 | -18/+8 | |
2021-03-08 | Add serd_world_get_blank() | David Robillard | 1 | -0/+10 | |
2021-03-08 | Add SerdWorld for shared library state | David Robillard | 1 | -26/+46 | |
2021-03-08 | Add numeric node construction and access API | David Robillard | 1 | -15/+48 | |
2021-03-08 | Add serd_new_float() and serd_new_double() | David Robillard | 1 | -1/+31 | |
2021-03-08 | Add serd_new_boolean() | David Robillard | 1 | -0/+5 | |
2021-03-08 | WIP: Use exess for reading and writing numeric and binary literals | David Robillard | 1 | -14/+4 | |
2021-03-08 | Simplify literal construction API | David Robillard | 1 | -5/+14 | |
2021-03-08 | Expand datatype of literal nodes in serd_env_expand_node | David Robillard | 1 | -1/+5 | |
2021-03-08 | Move syntax name/extension utilities to public API | David Robillard | 1 | -0/+36 | |
2021-03-08 | Use a fixed-size reader stack | David Robillard | 1 | -2/+5 | |
This improves performance, and makes the reader more suitable for embedded or network-facing applications, at the cost of requiring the user to specify a maximum stack size. | |||||
2021-03-07 | Simplify reader interface | David Robillard | 1 | -11/+14 | |
2021-03-07 | Add SerdSink interface and hide implementations | David Robillard | 1 | -48/+91 | |
2021-03-07 | Use consistent naming for function types | David Robillard | 1 | -19/+19 | |
2021-03-07 | Bring read/write interface closer to C standard | David Robillard | 1 | -32/+33 | |
2021-03-07 | Simplify reader interface | David Robillard | 1 | -38/+22 | |
2021-03-07 | Set datatypes on integer, decimal, and base64 nodes | David Robillard | 1 | -4/+16 | |
2021-03-07 | Simplify node construction API | David Robillard | 1 | -40/+38 | |
2021-03-07 | Simplify URI API and implementation | David Robillard | 1 | -82/+90 | |
2021-03-07 | Add serd_node_uri_view() | David Robillard | 1 | -0/+15 | |
2021-03-07 | Add serd_node_string_view() | David Robillard | 1 | -0/+10 | |