aboutsummaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2020-10-27WIP: Add C++ bindingsDavid Robillard1-0/+828
2020-10-27WIP: Add serd_node_from_syntax() and serd_node_to_syntax()David Robillard2-2/+152
2020-10-27WIP: Make Reader always read from a ByteSourceDavid Robillard4-41/+51
2020-10-27WIP: Make Writer always write to a ByteSinkDavid Robillard3-40/+39
2020-10-27Fix crash when attempting to read before startingDavid Robillard1-0/+3
2020-10-27Add support for parsing variablesDavid Robillard8-2/+65
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.
2020-10-27Normalise away rdf:langString datatypeDavid Robillard2-0/+3
Depending on how you read the specifications, a rdf:langString isn't identical to an xsd:string, but an rdf:langString must have a non-empty language tag so having this datatype doesn't really make any sense anyway.
2020-10-27Add support for basic literal normalisationDavid Robillard3-0/+160
2020-10-27Make serd_env_expand() always return a node if it is not relativeDavid Robillard1-34/+152
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.
2020-10-27Clean up Env tests and behaviourDavid Robillard1-77/+184
2020-10-27Make 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.
2020-10-27Replace multiple stream callbacks with SerdEventDavid Robillard4-23/+55
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.
2020-10-27Remove old floating point testsDavid Robillard1-96/+0
2020-10-27Add precise floating point parsingDavid Robillard3-22/+439
2020-10-27Add precise decimal digit generationDavid Robillard2-3/+51
2020-10-27Add minimal big integer implementationDavid Robillard1-0/+930
This is needed for floating point decimal conversion.
2020-10-27Add minimal soft floating point implementationDavid Robillard2-0/+175
2020-10-27Add faster decimal digit counting functionDavid Robillard1-0/+55
2020-10-27Add integer and bit math utilitiesDavid Robillard1-0/+64
2020-10-27Add validation to command line interfaceDavid Robillard32-0/+723
2020-10-27Add support for reading multiple files at onceDavid Robillard3-0/+12
2020-10-27Add test for failure while writing a list from a modelDavid Robillard1-0/+68
2020-10-27Replace serd_reader_set_strict() with SerdReaderFlagsDavid Robillard3-7/+9
This makes reader options extensible and should hopefully prevent the need for grafting on more similar functions in the future.
2020-10-27Report writer errors and add strict write modeDavid Robillard1-1/+38
2020-10-27Align nodes with posix_memalign if possibleDavid Robillard1-13/+15
2020-10-27Add support for writing terse collectionsDavid Robillard6-0/+163
2020-10-27Fix various warnings and conversion issuesDavid Robillard2-12/+26
2020-10-27Add serd_new_boolean()David Robillard1-0/+17
2020-10-27Handle read errors more preciselyDavid Robillard1-1/+1
2020-10-27Add model validationDavid Robillard1-1/+1
2020-10-27Add modelDavid Robillard4-0/+1006
2020-10-27Add function to SerdSink for freeing opaque handleDavid Robillard4-6/+6
This can be used to associate dynamically allocated data with a sink and have it managed along with the sink's lifetime.
2020-10-27Use public sink interface in readerDavid Robillard1-0/+1
2020-10-27Clean up and expose base64 implementationDavid Robillard2-6/+128
2020-10-27Remove serd_env_foreach()David Robillard1-2/+4
This is not particularly useful except to write prefixes, which is what serd_env_write_prefixes is for, and the name implies that namespace prefixes are the only thing in an Env, which will be problematic in the future.
2020-10-27Simplify reader test sinkDavid Robillard1-34/+29
2020-10-27Add stack overflow testsDavid Robillard1-0/+69
2020-10-27Ensure serd_new_resolved_uri returns an absolute URI or NULLDavid Robillard1-1/+3
2020-10-27Simplify 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.
2020-10-27Add SerdNodes class for storing a cache of nodesDavid Robillard2-0/+93
2020-10-27Add serd_env_copy() and serd_env_equals()David Robillard1-0/+19
2020-10-27Separate ByteSink from WriterDavid Robillard1-3/+11
2020-10-27Expose SerdByteSink in public APIDavid Robillard1-0/+1
2020-10-27Remove serd_reader_set_default_graph()David Robillard1-9/+2
2020-10-27Add rooted URI resolution testDavid Robillard1-1/+2
2020-10-27Separate style enum from style flags typesDavid Robillard1-2/+2
2020-10-27Make SerdSink opaqueDavid Robillard3-16/+33
2020-10-27Simplify SerdEnv APIDavid Robillard1-24/+29
2020-10-27Add SerdCursor to public APIDavid Robillard4-2/+64
2020-10-27Remove escape parameter from serd_new_file_uriDavid Robillard1-9/+6
Since characters are escaped because they are not valid characters in a URI, any use of this function without escaping is problematic at best.