Yuri Astrakhan
ab0ee164fa
Experimental parse-display POC
...
It may be possible to eliminate a lot of `fmt::Display` code by using [parse-display](https://github.com/frozenlib/parse-display/tree/master?tab=readme-ov-file#parse-display ) crate. In the first iteration, it can replace many display traits for the simple cases of constants and formatted inner values. In the more advanced, it should be possible to format iterators, and if the issue I proposed get implemented, might even cover many of the `fmt_sse` functions.
Note that I made a few unit tests for the migration purposes - just to see that the result is identical. We may want to remove at least some of them later on as being too trivial.
One aspect that may need discussion:
`write!(f, "{value}")` is not the same as `value.fmt(f)` because the first case creates a new `Formatter` instance, whereas the second case reuses the one passed as an argument to `Display::fmt` function.
In some cases, it may break if formatter contains padding or number formatting configuration that will or won't be passed to the nested object. `parse-display` seem to always generate a new Formatter, but Oxigraph uses a lot of `.fmt` calls - which might actually be a bug.
11 months ago
Yuri Astrakhan
0400f04915
Error renaming
...
```
enum sparesults::error::ParseError -> QueryResultsParseError
struct sparesults::error::SyntaxError -> QueryResultsSyntaxError
Inlined inner
enum oxrdfxml::error::ParseError -> RdfXmlParseError
struct oxrdfxml::error::SyntaxError -> RdfXmlSyntaxError
enum oxttl::toolkit::error::ParseError -> TurtleParseError
struct oxttl::toolkit::error::SyntaxError -> TurtleSyntaxError
enum oxrdfio::error::ParseError -> RdfParseError
struct oxrdfio::error::SyntaxError -> RdfSyntaxError
struct spargebra::parser::ParseError -> SparqlSyntaxError
enum spargebra::parser::ParseErrorKind
Parser -> Syntax
```
11 months ago
Tpt
655ecd3e91
Convert error to thiserror
...
Co-authored-by: Yuri Astrakhan <yuriastrakhan@gmail.com>
11 months ago
Yuri Astrakhan
1c3f054836
Convert error to thiserror
...
This converts just one `SerializerError` to use `thiserror` crate, removing some code.
11 months ago
Yuri Astrakhan
a924df0e0a
Clean workspace dependency list and updates dependencies
11 months ago
Tpt
0b1aabfcdd
Moves main crate to lib/oxigraph and centralizes dependencies
11 months ago
Tpt
46d3ed3f99
Removes all debuginfo from release build
...
Smaller binaries, most of them where stripped out anyway
12 months ago
Tpt
42a66f62b9
Enables cargo semver-checks again
1 year ago
Tpt
a5781d1187
Releases v0.4.0-alpha.1
1 year ago
Tpt
025bd2afd2
Uses new cargo lint configuration system
1 year ago
Tpt
90b7b128f2
Upgrades MSRV to 1.70
1 year ago
Tpt
3c51dd31bc
Move back MSRV to 1.67 but keep Cargo.lock to 1.70
...
Allows to build on Debian unstable while using latest dependencies
1 year ago
Tpt
bdedcc47e3
Renames oxigraph-server to oxigraph(-cli)
1 year ago
Tpt
6611b491b1
Sets Rust minimum version to 1.70
1 year ago
Tpt
570f21748d
Cargo.toml: share some common fields in the workspace
1 year ago
Tpt
7cd383af79
Introduces OxRDF I/O stand-alone crate
1 year ago
Tpt
69d8ce6b4e
Migrates RDF/XML parser from Rio
2 years ago
Tpt
71b1768d28
New N3/Turtle/TriG/N-Triple/N-Quad parsers and serializers
...
- Compatible with async IO
- Turtle/TriG parser recovery on simple errors
2 years ago
Tpt
40b10cdabc
Adds a naive standalone query optimizer
...
This drops some left join optimizations
2 years ago
Tpt
57d39cad24
Makes Clippy happy
2 years ago
Tpt
df2233c51c
JS: Optimizes release builds for size
...
Makes the WASM file go from 2.6MB to 2.3MB
2 years ago
Tpt
f6e9ceccc1
Add back oxrocksdb-sys to the main workspace
...
Having it separated was failing fuzz tests for some unknown reason
This reverts commit d97eb9eb31
.
This reverts commit 4927b3148e
.
2 years ago
Tpt
d97eb9eb31
Properly exclude oxrocksdb-sys from the main workspace
2 years ago
Tpt
4927b3148e
Moves oxrocksdb-sys out of the workspace
...
It changes not very often and does not contain Rust code
2 years ago
Tpt
854e29ee38
Makes XSD datatypes a standalone crate
...
Allows other crates to reuse Oxigraph XSD datatypes implementation
2 years ago
Tpt
b7059d07e8
Adds very basic SPARQL evaluation fuzzer
2 years ago
Tpt
45031db791
Renames "rocksdb-sys" into "oxrocksdb-sys"
3 years ago
Tpt
850b8eddcf
Moves out of Oxigraph SPARQL results parser and serializers
3 years ago
Tpt
967dbacad7
Spargebra: Uses oxrdf terms
3 years ago
Tpt
f5545f1948
Makes Oxigraph model standalone as oxrdf
...
Allows to reuse it in other crates like spargebra
3 years ago
Tpt
04827a71f8
Removes Oxigraph Wikibase
...
Will be moved to its own repository
3 years ago
Tpt
3fd0332e32
Use our own Custom rocksdb bindings
...
Will allow exposing more C++ functions
3 years ago
Tpt
f76f0396e8
Adds back Oxigraph JS
3 years ago
Tpt
16194bbaa4
Uses a single codegen unit
4 years ago
Tpt
be4a5b0b6b
Moves SPARQL parser and algebra to an independent crate
4 years ago
Tpt
122db6a2c3
Drops Oxigraph JS
...
Not supported by Sled
4 years ago
Tpt
f74bc12a18
Adds basic Python bindings to Oxigraph
5 years ago
Tpt
c3ae01e701
Implements a crate for the testsuite, adds parser tests and a better isomorphism algorithm
5 years ago
Tpt
9060998f79
Beginning of a JavaScript API on top of Oxigraph
5 years ago
Tpt
1550acdc31
Adds a basic Wikibase loader
5 years ago
Tpt
9cc96a5155
Enables link time optimizations
5 years ago
Tpt
b9bd6e66d3
Drops Python module
...
Not usable for now
5 years ago
Tpt
e3be82e7e7
Adds a standalone SPARQL server
6 years ago
Tpt
e1409cc067
Adds beginning of Python bindings
6 years ago
Tpt
23387ab76e
Makes repository root directory a Cargo workspace
6 years ago
Tpt
aa7cd02629
Adds more doc
6 years ago
Tpt
70d2fab95d
Upgrades quick-xml to version 0.13
6 years ago
Tpt
9e88e27acf
Beginning of RDF/XML parser
...
Does not support all RDF/XML constructs yet
6 years ago
Tpt
642dd15131
Upgrades dependencies to latest versions
6 years ago
Tpt
439719732c
Adds method to get the size of a Graph or a Dataset
6 years ago