aboutsummaryrefslogtreecommitdiffstats
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2021-03-08Add modelDavid Robillard1-1/+419
2021-03-08WIP: Add extensible logging APIDavid Robillard1-23/+109
2021-03-08Add serd_node_compare()David Robillard1-0/+12
2021-03-08Expand URIs in readerDavid Robillard1-7/+11
2021-03-08WIP: Add serd_node_from_syntax() and serd_node_to_syntax()David Robillard1-0/+38
2021-03-08Add SERD_READ_EXACT_BLANKS flagDavid Robillard1-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-08Add support for parsing variablesDavid Robillard1-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-08WIP: Make Reader always read from a ByteSourceDavid Robillard1-32/+72
2021-03-08WIP: Make Writer always write to a ByteSinkDavid Robillard1-16/+42
2021-03-08Make serd_uri_string_length() precise and add it to public APIDavid Robillard1-1/+15
2021-03-08Add serd_new_real_file_uri()David Robillard1-0/+16
2021-03-08WIP: Make serd_env_expand() always return a node if it is not relativeDavid Robillard1-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-08Make const Env functions tolerant of NULLDavid Robillard1-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-08Add empty syntax type for suppressing outputDavid Robillard1-8/+9
2021-03-08Replace serd_reader_set_strict() with SerdReaderFlagsDavid Robillard1-13/+11
This makes reader options extensible and should hopefully prevent the need for grafting on more similar functions in the future.
2021-03-08Report writer errors and add strict write modeDavid Robillard1-2/+5
2021-03-08Add support for writing terse collectionsDavid Robillard1-1/+3
2021-03-08Add option for writing terse output without newlinesDavid Robillard1-2/+3
2021-03-08Handle read errors more preciselyDavid Robillard1-1/+2
2021-03-08Use simpler names for statement flagsDavid Robillard1-5/+5
2021-03-08Simplify streaming API and improve pretty printingDavid Robillard1-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-08Cache commonly used nodes in the worldDavid Robillard1-0/+11
2021-03-08Add SerdNodes class for storing a cache of nodesDavid Robillard1-0/+60
2021-03-08Add serd_env_copy() and serd_env_equals()David Robillard1-0/+10
2021-03-08Separate ByteSink from WriterDavid Robillard1-2/+1
2021-03-08Expose SerdByteSink in public APIDavid Robillard1-0/+38
2021-03-08Simplify writer style optionsDavid Robillard1-5/+4
2021-03-08Replace multiple stream callbacks with SerdEventDavid Robillard1-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-08Add SerdStatementDavid Robillard1-6/+51
2021-03-08Add SerdCursorDavid Robillard1-9/+72
2021-03-08Remove serd_reader_set_default_graph()David Robillard1-12/+0
2021-03-08Move SerdField to public APIDavid Robillard1-0/+8
2021-03-08Simplify SerdEnv APIDavid Robillard1-18/+8
2021-03-08Add serd_world_get_blank()David Robillard1-0/+10
2021-03-08Add SerdWorld for shared library stateDavid Robillard1-26/+46
2021-03-08Add numeric node construction and access APIDavid Robillard1-15/+48
2021-03-08Add serd_new_float() and serd_new_double()David Robillard1-1/+31
2021-03-08Add serd_new_boolean()David Robillard1-0/+5
2021-03-08WIP: Use exess for reading and writing numeric and binary literalsDavid Robillard1-14/+4
2021-03-08Simplify literal construction APIDavid Robillard1-5/+14
2021-03-08Expand datatype of literal nodes in serd_env_expand_nodeDavid Robillard1-1/+5
2021-03-08Move syntax name/extension utilities to public APIDavid Robillard1-0/+36
2021-03-08Use a fixed-size reader stackDavid Robillard1-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-07Simplify reader interfaceDavid Robillard1-11/+14
2021-03-07Add SerdSink interface and hide implementationsDavid Robillard1-48/+91
2021-03-07Use consistent naming for function typesDavid Robillard1-19/+19
2021-03-07Bring read/write interface closer to C standardDavid Robillard1-32/+33
2021-03-07Simplify reader interfaceDavid Robillard1-38/+22
2021-03-07Set datatypes on integer, decimal, and base64 nodesDavid Robillard1-4/+16
2021-03-07Simplify node construction APIDavid Robillard1-40/+38