aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2021-03-09WIP: Validationserd1-mesonDavid Robillard46-203/+528
2021-03-08WIP: Simplify node constructionDavid Robillard2-22/+0
2021-03-08WIP: Add statement filteringDavid Robillard2-0/+44
2021-03-08WIP: Test reading string EOF as chunkDavid Robillard1-1/+14
2021-03-08Add support for converting literals to canonical formDavid Robillard10-0/+237
2021-03-08Add validation to command line interfaceDavid Robillard36-65/+1118
2021-03-08Add model validationDavid Robillard1-1/+1
2021-03-08Add modelDavid Robillard7-0/+1179
2021-03-08Expand URIs in readerDavid Robillard3-8/+24
2021-03-08WIP: Add serd_node_from_syntax() and serd_node_to_syntax()David Robillard3-2/+156
2021-03-08Add support for parsing variablesDavid Robillard9-1/+72
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 Robillard4-39/+50
2021-03-08Add support for reading multiple files at onceDavid Robillard6-1/+74
2021-03-08Simplify handling of input string argumentsDavid Robillard1-0/+1
2021-03-08Add input base URI optionDavid Robillard2-6/+15
2021-03-08WIP: Make Writer always write to a ByteSinkDavid Robillard2-12/+21
2021-03-08Fix crash when attempting to read before startingDavid Robillard1-0/+3
2021-03-08Add serd_new_real_file_uri()David Robillard2-1/+29
2021-03-08Clean up file URI testsDavid Robillard1-9/+7
2021-03-08WIP: Make serd_env_expand() always return a node if it is not relativeDavid Robillard1-30/+161
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-08Remove double allocations in serd_env_expand()David Robillard1-1/+1
2021-03-08Clean up Env tests and behaviourDavid Robillard1-62/+178
2021-03-08Make const Env functions tolerant of NULLDavid Robillard1-0/+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 Robillard2-0/+35
2021-03-08Replace serd_reader_set_strict() with SerdReaderFlagsDavid Robillard3-16/+17
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 Robillard2-1/+38
2021-03-08Align node allocationsDavid Robillard1-13/+15
2021-03-08Add support for writing terse collectionsDavid Robillard8-2/+184
2021-03-08WIP: Write invalid characters in URIs with percent encodingDavid Robillard1-0/+2
2021-03-08Fix socket-like stream reading testDavid Robillard1-3/+5
2021-03-08Handle read errors more preciselyDavid Robillard1-1/+1
2021-03-08Add stack overflow testsDavid Robillard2-0/+69
2021-03-08Clean up env testDavid Robillard1-4/+4
2021-03-08Simplify streaming API and improve pretty printingDavid Robillard3-2/+98
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-08Add SerdNodes class for storing a cache of nodesDavid Robillard3-0/+95
2021-03-08Add serd_env_copy() and serd_env_equals()David Robillard1-0/+23
2021-03-08Separate ByteSink from WriterDavid Robillard1-3/+7
2021-03-08Expose SerdByteSink in public APIDavid Robillard1-0/+1
2021-03-08Simplify writer style optionsDavid Robillard2-14/+23
2021-03-08Replace multiple stream callbacks with SerdEventDavid Robillard3-41/+53
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 Robillard2-20/+10
2021-03-08Add SerdCursorDavid Robillard5-2/+65
2021-03-08Remove serd_reader_set_default_graph()David Robillard1-36/+23
2021-03-08Simplify SerdEnv APIDavid Robillard1-32/+28
2021-03-08Add serd_world_get_blank()David Robillard1-0/+18
2021-03-08Move error handling to worldDavid Robillard1-0/+2
2021-03-08Add SerdWorld for shared library stateDavid Robillard4-7/+26
2021-03-08Clean up nodes in reader/writer testsDavid Robillard1-12/+20
2021-03-08Add numeric node construction and access APIDavid Robillard1-22/+191
2021-03-08Add serd_new_boolean()David Robillard1-0/+21