aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2021-03-09WIP: Validationserd1-mesonDavid Robillard10-646/+1760
2021-03-08WIP: Simplify node constructionDavid Robillard5-130/+23
2021-03-08WIP: expanderDavid Robillard1-0/+88
2021-03-08WIP: Add statement filteringDavid Robillard2-3/+163
2021-03-08Add support for converting literals to canonical formDavid Robillard5-6/+216
2021-03-08Add validation to command line interfaceDavid Robillard2-4/+14
2021-03-08Add model validationDavid Robillard2-0/+866
2021-03-08Add modelDavid Robillard12-3/+1637
2021-03-08Fix various warnings and conversion issuesDavid Robillard5-20/+18
2021-03-08WIP: Add extensible logging APIDavid Robillard8-72/+257
2021-03-08Add serd_node_compare()David Robillard1-0/+25
2021-03-08Expand URIs in readerDavid Robillard7-63/+172
2021-03-08WIP: Add serd_node_from_syntax() and serd_node_to_syntax()David Robillard5-0/+127
2021-03-08Add SERD_READ_EXACT_BLANKS flagDavid Robillard1-1/+1
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 Robillard7-5/+97
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 Robillard9-209/+200
2021-03-08Add support for reading multiple files at onceDavid Robillard1-29/+98
2021-03-08Simplify handling of input string argumentsDavid Robillard1-10/+11
2021-03-08Add input base URI optionDavid Robillard1-6/+11
2021-03-08WIP: Make Writer always write to a ByteSinkDavid Robillard6-127/+132
2021-03-08Fix crash when attempting to read before startingDavid Robillard1-0/+4
2021-03-08Make serd_uri_string_length() precise and add it to public APIDavid Robillard2-22/+46
2021-03-08Add serd_new_real_file_uri()David Robillard1-0/+47
2021-03-08Use a manual type-safe stack in SerdWriterDavid Robillard1-31/+24
This fixes alignment issues on ARM. Since this stack is just for WriteContext which has a fixed size, using SerdStack here just made things more confusing anyway.
2021-03-08Emit reader errors on stack overflows in string literalsDavid Robillard1-1/+9
2021-03-08Simplify ByteSource implementationDavid Robillard2-30/+20
2021-03-08WIP: Make serd_env_expand() always return a node if it is not relativeDavid Robillard2-9/+25
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 it possible to allocate nodes with CURIE datatypesDavid Robillard3-7/+10
2021-03-08Remove double allocation in serd_env_set_prefix()David Robillard1-6/+7
2021-03-08Remove double allocations in serd_env_expand()David Robillard3-23/+89
2021-03-08Move local URI utility functionsDavid Robillard1-28/+28
2021-03-08Split up node expansion codeDavid Robillard1-32/+53
2021-03-08Clean up Env tests and behaviourDavid Robillard1-7/+7
2021-03-08Make const Env functions tolerant of NULLDavid Robillard1-1/+9
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-08Split up serd_internal.hDavid Robillard11-17/+34
2021-03-08Add empty syntax type for suppressing outputDavid Robillard3-9/+20
2021-03-08Replace serd_reader_set_strict() with SerdReaderFlagsDavid Robillard3-19/+13
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 Robillard3-177/+259
2021-03-08Align node allocationsDavid Robillard6-8/+46
2021-03-08Add support for writing terse collectionsDavid Robillard1-12/+23
2021-03-08Tolerate lack of predicate when context is poppedDavid Robillard1-1/+2
2021-03-08Reset writer to empty when finished to avoid spurious blank linesDavid Robillard1-0/+1
2021-03-08Pass context flags to write_sep()David Robillard1-22/+24
2021-03-08Add initial flags to write contextDavid Robillard1-21/+24
2021-03-08Simplify internal writer context APIDavid Robillard1-31/+31
2021-03-08Strengthen writer statement preconditionsDavid Robillard1-1/+3
2021-03-08Add option for writing terse output without newlinesDavid Robillard2-25/+27
2021-03-08Factor out writing top level separatorDavid Robillard1-7/+10
2021-03-08Support reading lone lists in lax modeDavid Robillard1-1/+1
This allows parsing documents like "(42) ."
2021-03-08WIP: Fix reading from socket-like streamsDavid Robillard1-0/+1