- JSON-LD: JSON-LD 1.1 is now implemented and enabled by default.
- JavaScript: the
parsemethod that allows to parse a RDF file from a buffer, an iterator of buffers or and async iterator of buffers (including streams). oxrdf: theDataset.quads_for_patternmethod allowing to iterate only on quads matching a given pattern.oxjsonld: TheJsonLdParser.with_processing_modemethod to select the JSON-LD 1.0 or 1.1 processing mode.
- RocksDB fixes a panic when
ulimit -nis set to a very large number.
- RDF/XML: support of the current 1.2 draft behind the
rdf-12cargo feature (directional language strings and triple terms). - RDFC 1.0 canonicalization algorithm on the
GraphandDatasetcontainers.
oxrdf: the defaultUnstablecanonicalization algorithm has been changed for a variant of RDFC 1.0. It seems much faster in a lot of cases.- HTTP: always set
sd:endpointin the served service description (the value is guessed from the incoming request values). spareval: makeQueryTripleIter::newpublic.- JSON-LD: lots of internal changes in preparation of JSON-LD 1.1 support (might affect some edge cases of 1.0 parsing).
- SPARQL 1.2: support
VERSIONdeclaration.
- SPARQL: fixes parsing of
HAVINGwhen there are multiple conditions. - SPARQL: compute ordering values for
ORDER BYonly once (allowsORDER BY RAND()to work properly).
- SPARQL: fixes evaluation of RDF 1.2 annotation syntax (e.g.
SELECT * WHERE { ?s ?p ?o {| ?p2 ?o |}). - Bump RocksDB to 10.7.5 (requires a C++ 20 compiler).
- Built Linux Python wheels now require Glibc 2.28.
spargebra:standard-unicode-escapingfeature that unescape\uand\Usequences everywhere in the query, following to the SPARQL specification.spareval:QueryEvaluator.preparemethod that allows to prepare a query then execute it. Injecting variable bindings and customizing the query dataset is possible on the prepared query.FROMandFROM NAMEDclauses are taken into account by this API, opposite to the olderQueryEvaluator.executemethod.spareval:QueryEvaluator.prepare_delete_insertthat allows evaluating easily SPARQL UPDATE DELETE/INSERT operations.- CLI:
oxigraph loadnow has a--non-atomicoption to load data in a non-atomic way. Allows compaction to happen in the background during loading.
- NTriples/Turtle: fixes parsing of language tags with numbers like
es-419. - SPARQL: fixes evaluation of
SELECT * FROM NAMED <ex:> WHERE { GRAPH ?g {} }: all named graphs of the underlying store returned and not onlyex:. - SPARQL: make parsing fail on duplicated variable names in
VALUESlikeVALUES (?a ?a) {}. spareval:QueryEvaluator.executeandQueryEvaluator.explainare deprecated. Please useQueryEvaluator.prepareinstead.- bulk loader: avoid duplicated each file. It reduces the storage footprint by half in some cases.
- bulk loader: improve cleanup on failure and avoid some cases where files where left on disk.
This release is dedicated to the memory of Gregg Kellogg, author of multiple specifications implemented by Oxigraph and great inspiration.
- SPARQL: support double negation
!!when SPARQL 1.2 is enabled. - SPARQL: allow triple terms in the subject position in more places.
spargeo: change API to drop dependency onsparevaland `oxigraph.
spareval: aCancellationTokento easily cancel a running SPARQL query.- CLI:
--timeout-soption to thequerycommand to set a timeout for the query. oxttlandoxrdfio:split_file_for_parallel_parsingmethod to enable easier NTriples and NQuads parallel parsing from a file.oxigraph:parallel_load_from_fileandparallel_load_from_slicemethods to load RDF data from a file or a slice in parallel.
- JSON-LD: fixes parsing of aliased
@type oxigraph:bulk_loadermethod now takes amutreference and there is a newcommitmethod that is required to save the loaded data.- CLI and Python bindings: bulk loading data from a file and a buffer (in Python) is now done in parallel.
- Bump
randto 0.9 andgetrandomto 0.3.
spareval: exposeQueryEvaluator::evaluate_expressionto evaluate expressions
- Oxigraph:
Transactionhas now stronger lifetime bounds to ensure operations on a transaction are not running longer than the transaction itself. It also affects types likeQuadIterorGraphNameIterthat now carry a lifetime. - SPARQL: raise an error when blank nodes are shared between different INSERT DATA statements (follows SPARQL spec).
- SPARQL: Makes single DELETE/INSERT and LOAD statements slightly faster by not indexing the changes.
- Rust: bump MSRV to 1.87.
- RocksDB: bump to 10.5.1.
- Turtle: use the longest possible prefix during serialization.
- Improved error when opening an old RocksDB database in read-only
spareval: Add a lifetime toQueryResultsspareval: AllowQueryableDatasetto be bounded by a lifetime.spareval:QueryableDatasetis now implemented by&Datasetand not byDataset(allows avoiding a bunch of copies).
oxrdfio:RdfParser.split_slice_for_parallel_parsingto enable easier NTriples and NQuads parallel parsing.oxigraph:(BulkLoader|Store|Transaction).load_from_sliceto load serialized RDF data from a slice.oxigraph:SparqlEvaluatorfluent API to customize more easily SPARQL operations and prepare them. TheStore.queryandStore.updatemethods are deprecated andQueryOptionsandUpdateOptionstypes are removed.- SPARQL: support for
xsd:gYear,xsd:gMonth,xsd:gDay,xsd:gMonthDayandxsd:gYearMonthcast functions. - Python: add
prefixesandcustom_aggregate_functionsoptions toStore.queryandStore.updatemethods.
oxigraph: RemoveService,DefaultService,QueryResultsandQuerySolutionItertypes in favor ofspargebraones.
- Turtle: fixes parsing of blank nodes at the end of the files.
- Turtle/NTriples: fail on
"foo"^^rdf:langStringand"foo"^^rdf:dirLangString. - RocksDB: enable async I/O when RocksDB is built with it.
spareval:ServiceandDefaultServicetraits now take parameters by reference.oxigraph: theEvaluationErrortype is now replaced by theQueryEvaluationErrorandUpdateEvaluationErrortypes.
- Support for current W3C working drafts RDF 1.2 and SPARQL 1.2, hidden behind the
rdf-12orsparql-12features. RDF 1.2 includes triple terms using a slightly different syntax as RDF-star and directional language strings using the newLiteral.directionattribute. oxrdf: basicserdesupport behind theserdefeature.spargebra: aSparqlParserAPI allowing setting default prefixes.oxigraph: theStore.start_transactionmethod that returns a newTransactionobject. transactions can be committed with thecommitmethod or rolled back by just dropping theTransactionobject.- Python: the
lenientoption to theparseandloadmethod to skip some validations.
- RDF-star support is now dropped in favor of RDF 1.2.
The
rdf-starfeature is not available anymore but triple terms are supported usingrdf-12. RDF 1.2 does not support triple terms in the subject position anymore. Existing databases are automatically migrated on the first opening with Oxigraph 0.5 to keep most SPARQL queries working. However, serialization in N-Triples/Turtle/... has changed. - All deprecated Rust methods in the 0.4.x releases.
- Rust: support for Rust versions before 1.85.
- RocksDB: support of versions before 9.10.
oxrdf: theSubjectenum is now merged intoNamedOrBlankNode.spargebra:GroundSubjectis now merged intoNamedNode.spareval:ExpressionSubjectis now merged intoNamedOrBlankNode.oxigraph:Store.transactionis replaced byStore.start_transaction.- Python:
pyoxigraph.__package__andpyoxigraph.__author__constants.
oxrdf: deprecateLiteral::is_plain(not defined anymore in RDF 1.1 and 1.2).oxrdf: deprecateLiteral::destruct(no added value compared to regular assessors).oxttl/oxrdfxml/oxrdfio: renameunchecked()tolenient().oxigraphnow relies onoxhttp0.3. Some optional feature names have changed.oxigraph: the SERVICE setup API has changed. TheServiceHandlertrait now defines a single service with a given name whereas theDefaultServiceHandlertrait set a default behavior for other service URLs.- RDF/XML: keep namespaces in
rdf:parseType="Literal"output. - RocksDB transactions do not rely anymore on
TransactionDBbut on the newWriteBatchWithIndexAPI. It means that some write-write conflicts are not detected anymore (e.g., if a graph is dropped by a transaction while a concurrent one adds a triple to the same graph) but significantly increases update speed and enables things like efficientStore.clearimplementation. - Bulk loading is now atomic: if it fails no triple will be added to the database.
- Bumps to RocksDB 10.3.0 and fixes a compilation issue with GCC 13+.
oxjsonldcrate with JSON-LD 1.0 parsing and serialization. It is exposed in all APIs (Rust, Python, JS, CLI and HTTP server). A faster Streaming JSON-LD parsing is also available if thehttp://www.w3.org/ns/json-ld#streamingprofile is enabled.oxigraphbinary is now distributed on Pypi.
- Linux pre-built binaries now require at least Ubuntu 22.04.
- CLI:
convertmethodlenientoption now works properly. - RDF/XML: reduces copies inside the parser.
- RDF/XML: do not serialize triples with reserved syntax terms.
- Turtle: improve some error messages.
- N-Triples: improve error recovery by always restarting at the next line.
- Upgrades to RocksDB 10.2.1.
- SPARQL: Fixes a bug that made
GROUP_CONCAT(..., SEPARATOR="...")always assumeDISTINCT. oxrdfxml: FixesTokioAsyncWriterRdfXmlSerializername.
- SPARQL: Fixes a bug in
sameTermimplementation onxsd:decimal. - Turtle: fixes a parsing ambiguity when a file ends with an integer then a concatenated dot eg.
11..
- SPARQL:
GRAPH ?g {}now properly returns all named graph in the queried dataset. - SPARQL:
ASK { OPTIONAL { X }}now properly returns true even ifXraises an error. sparopt: breaking 0.2 release because of the introduction of aGraphalgebra node to supportGRAPH ?g {}syntax.
sparevalcrate that provides a stand-alone SPARQL evaluator without dependency on Oxigraph storage systems.- Rust/Python: the API now allows to substitute variables with value before evaluating a query. Substitution follows RDF-dev SEP-0007.
- Bump RocksDB to 9.10.0.
- SPARQL: support for the 'q' regular expression option.
- Turtle: do not buffer everything if there is no line jump in the file.
- RDF/XML: fixes decoding of escaped whitespaces.
- Bump RocksDB to 9.9.3.
- Allow compilation on zkvm by removing the dependency on
std::timefor this platform.
- Integrates geosparql in the CLI Docker image and the JS bindings.
- Python: support for 3.13 free-threaded builds.
- Fixes segfaults on
Storedrop when using the memory backend on large datasets (drop was doing too many recursive call leading to a stack overflow). - Upgrades RocksDB to 9.7.4.
- Allows
thiserror2.0 andgeo0.29.
spargeocrate providing GeoSPARQL simple features query functions. They are enabled by default in Oxigraph CLI and Oxigraph Python bindings.- Turtle, TriG and RDF/XML: allow to set a base IRI during serialization.
- Python: exposes prefixes and base IRI after parsing.
- Python: allows to give to
Literalconstructor aint,floatorbool.
- SPARQL XML query results: escape whitespaces at the extremities of values to make sure they are not trimmed.
- Turtle: fixes support of empty local name.
- N3: properly inject the base IRI before parsing.
- RDF/XML do not return invalid prefixes after parsing.
- RDF/XML: properly deduplicate prefixes during serialization and fixes prefix conflicts.
- JS: add
default_graphandnamed_graphsquery options to set the default and named graphs. - HTTP server: return SPARQL service description on GET requests.
- NTriples/NQuads error recovery: do not consider the predicate as a possible subject if the subject is invalid.
- Turtle: prevent line jump in single quoted string (but not in unchecked/lenient mode).
- Turtle: forbid invalid \u+123 escape sequences.
- RDF/XML: only ignore possible literal values composed of whitespaces if an other object value is present.
- SPARQL: fixes regex function evaluation when the regex is not set to a literal.
- SPARQL: ignore errors in joins if the other side of the join returns no results (the output would be no results anyway if the errors are fixed).
- SPARQL: make ASK return true if the inner query is returning a valid tuple even if the inner query is also returning errors (fixing these errors would not change the ASK output).
- SPARQL optimizer: do not attempt to optimize SERVICE (keep them, do not push filter in them...). This was leading to a lot of subtle behavior changes.
- oxRDF parser: allow spaces between literal value and langtag/datatype, unicode escapes in URIs.
- SPARQL: fixes evaluation of
GRAPH ?g { ?s <p1>/<p2> ?o }property paths with?gand?sunbound and?obound.
- Rust:
Triple::from_strandQuad::from_str.
- SPARQL: fixes evaluation of
GRAPH ?g { ?s !(...) ?o }property paths with?gand?sunbound and?obound. - NTriples/NQuads: properly mandate that lines must contain at most a single triple/quad.
- Turtle-like formats: do not allow the empty blank node identifier.
- Rust: Big renaming in parsers and serializers to get an hopefully nicer API:
- Use
Parsersuffix instead ofReaderfor parsers. - Use
Writersuffix instead ofSerializerfor serializers. - Rename
FromReadtoReader,FromTokioAsyncReadtoTokioAsyncReader,FromSlicetoSlice,ToWritetoWriterandToTokioAsyncWritetoTokioAsyncWriter. - Rename
read_nexttoparse_next. - Rename
from_readtofor_reader,to_writetofor_writer,from_tokio_async_readtofor_tokio_async_reader,to_tokio_async_writetofor_tokio_async_writer,from_slicetofor_slice.
- Use
- CLI: Allows to set
default-graph-uriquery argument even if the--union-default-graphCLI option is set.
- CLI:
union-default-graphoption to theserveandquerycommands to use by default the union of all graphs as the default graph in SPARQL queries.
- RocksDB build: link with the atomic library on armv5te and riscv64gc
- CLI build: do not generate man pages for help commands.
- oxttl, oxrdfxml, sparesults and oxrdfio: new
parse_slicemethod to parse a byte slice directly. - oxttl N-Triples, N-Quads and Turtle: new
split_slice_for_parallel_parsingmethod that splits a slice into chunks that can be parsed in parallel. - Python: support for custom SPARQL functions.
- CLI: man pages and shell autocompletion files are now automatically generated on build.
- The storage "secondary" mode. It was quite buggy, especially with RocksDB 9. If you need it, please reach out.
- Upgrades Rust MSV to 1.75.
- Bumps RocksDB to 9.5.2.
- IRI: ipvFuture are now allowed and some characters are now disallowed in some places to follow RFC 3987.
- sparesults:
parse_andserialize_functions now take the parser/serializer by value but the parsers and serializers are nowClone. - Release builds abort instead of unwind on panics.
- Turtle-like languages: escaped UTF-16 surrogates are now supported in unchecked/lenient mode.
- SPARQL: fixes parsing of
CONSTRUCTqueries when a dot directly follows a semicolon. - SPARQL: avoids to return duplicated triples in
CONSTRUCTresponse (the deduplication is only partial, some duplicates may still be returned). - JS: better TypeScript types now written by hand.
- JS: allow any
Iteratorimplementation inStoreconstructor. - Python:
Store.bulk_loadnow properly uses the bulk loader. - Python: improves the way the GIL is released. Might fix some weird bugs.
- HTTP: increases max SPARQL body size to 128MB.
- JS:
Store.queryhas now aresults_formatoption to select the format in which the results should be returned. When enabled the return type will be a string.
- Default in memory storage is now a brand new implementation based on hash sets and linked list. See description in the wiki.
It provides proper transaction rollbacks and allows concurrent reads while a write transaction is happening.
It is now used when a
Storeis created without an underlying storage directory. - SPARQL:
DESCRIBEnow implements Concise Bounded Description. - SPARQL: avoids join reordering inside of
SERVICEcalls. - SPARQL: fixes parsing of
DESCRIBEquery when there is a space between the IRI afterFROMand theWHEREkeyword. - Uses the "fx hash" from Firefox and rustc in the hash maps to make hashing faster.
- RDF/XML: if
uncheckedis enabled,rdf:IDdistinctness won't be validated. - Python: uses Python 0.21 bindings.
- JS: The
loadanddumpmethod second argument is now an object with options. The old API is kept for backward compatibility and prints warnings. - CLI: removes dependencies on escargot.
- CLI: uses
@zazuko/yasquiinstead of@triply/yasquiand vendors the JS and CSS in the built binary.
- Fixes compatibility with OxIRI 0.2.3.
- Python:
Datasetclass
- Rust:
Dataset::canonicalizeandGraph::canonicalizetakes for input aCanonicalizationAlgorithmto set which algorithm to use. - Upgrades RocksDB to 9.0.0
- JS: Drops NodeJS 12-16 and older web browsers (Edge before Chromium...) support.
- Rust:
From<spargebra::UpdateonUpdate. sparesults: Tokio Async readers for SPARQL query results (XML, JSON and TSV).oxrdf:Term::from_termsconstructor.- JS: options to set query and update base IRI and query union default graph.
- Uses RocksDB atomic multi-columns flush.
- Rust: RocksDB is optional but enabled by default.
- Upgrades RocksDB to 8.11.3.
- Rust:
oxigraphcrate has been moved tolib/oxigraph. - Rust:
QueryResults::writereturns theWriteimpl and not(). - Rust: use
thierrorfor errors. - Rust: rename
oxrdfio::{Parse,Syntax}Errortooxrdfio::Rdf{Parse,Syntax}Error,oxrdfxml::{Parse,Syntax}Errortooxrdfxml::RdfXml{Parse,Syntax}Error,oxttl::{Parse,Syntax}Errortooxttl::Turtle{Parse,Syntax}Error,sparesults::{Parse,Syntax}Errortosparesults::QueryResults{Parse,Syntax}Errorandspargebra::SyntaxErrortospargebra::SparqlSyntaxError.
oxttl: expose base IRIs.oxttl: allows to inject prefixes for serialization.oxrdf:vocab::geosparql::WKT_LITERAL.
- Turtle: Fixes parsing bug with escaped dot at the end of local name.
oxttl: Changesprefixesgetter return type.- JS: simplify build.
- Python: uses rustls by default all platforms that are not Windows/macOS/iOS/WASM.
- Strips debug info of the Rust std library in release build.
- i686 linux support
- Docker: fixes Docker image Glib version error.
- Docker: tags now use semver e.g.
0.3.22and notv0.3.22. Preversions are also not taggedlatestanymore. - Python:
QuerySolutionis now thread safe.
sparoptcrate: A new still quite naive query optimizer.oxttlcrate: A N-Triples/N-Quads/Turtle/TriG/N3 parser and serializer compatible with Tokio.oxrdfxmlcrate: A RDF/XML parser and serializer compatible with Tokio.oxrdfiocrate: A stand-alone crate with oxigraph I/O related APIs.- Rust: SPARQL results I/O is now exposed in the
oxigraphcrate (oxigraph::sparql::resultsmodule). - Rust: It is now possible to dynamically link rocksdb with the
rocksdb-pkg-configfeature. - Python: error location is now included in some
SyntaxErrorexceptions. - Python: the file type can be guessed from the file path extension during parsing and serialization.
- Python: the serialization method returns a
bytesvalue if no output-related argument is given. - Python: SPARQL query results I/O is now exposed (
parse_query_resultsfunction and.serializemethod). - Python:
RdfFormatandQueryResultsFormatenum to encode supported formats. - CLI: a
convertcommand to convert RDF file between different formats.
- Rust: automated flush at the end of serialization. This should be done explicitly now.
- oxsdatatypes: Deprecated methods.
- Python: 3.7 and Musl linux 1.1 support.
- Python:
GraphName.value.
- SPARQL: a digit after
.is now required forxsd:decimal. - SPARQL: calendar subtraction returns
xsd:dayTimeDurationand notxsd:duration. - SPARQL: Unicode escapes (
\uand\U) are now only supported in IRIs and strings and not everywhere. - Literal serialization now produces canonical N-Triples according to the RDF 1.2 and RDF Dataset Canonicalization drafts
- Rust: MSRV is now 1.70.
- Rust Makes
GraphNameimplementDefault. - Rust:
wasm32-unknown-unknowndoes not assumes JS platform by default. Enable thejsfeature for that. - Rust: Parsers take
Readand notBufReadfor input. - Rust:
GraphFormatandDatasetFormathave been merged intoRdfFormat. - Rust:
GraphParserandDatasetParserhave been merged intoRdfParser. - Rust:
GraphSerializerandDatasetSerializerhave been merged intoRdfSerializer. - Rust: query results are now
SendandSync. - Rust:
Store.load_graphandStore.load_datasethave been merged into aload_from_readmethod. - Rust:
Store.dump_graphandStore.dump_datasethave been renamed todump_graph_to_writeanddump_to_write. - Rust:
BulkLoader.set_*methods have been renamed toBulkLoader.with_*. - oxsdatatypes: pass by-values instead of by-reference parameters when relevant.
- oxsdatatypes: error types have been redesigned.
- oxsdatatypes: return an error when building not serializable duration (year-month and day-time of opposite signs).
- sparesults: renames some methods to move closer to the new oxrdfio crate.
- Python: raise
OSErrorinstead ofIOErroron OS errors. - Python: the
mime_typeparameter have been renamed toformat. - Python: boolean SPARQL results are now encoded with a
QueryBooleanclass and not a simplebool. - Python: a
pathparameter has been added to all I/O method to read from a file. The existinginputparameter now considerstrvalues to be a serialization to parse. - JS: the
mime_typeparameter have been renamed toformat. - CLI: the
oxigraph_serverbinary has been renamed tooxigraph. - CLI: the
--locationargument is now part of sub-commands where it is relevant.oxigraph_server --location foo serveis not possible anymore. One need to writeoxigraph serve --location foo. - CLI: is is now possible to upload gzip encoded files to the HTTP API with the
Content-Encoding: gzipheader.
- Allows to compile with more recent
bindgenandcc - Fixes compatibility with
spin_no_stdfeature oflazy_static
- Bulk loader: do not fail when loading empty files.
- Python: fixes source distribution.
- Upgrades RocksDB to 7.8.1.
- SPARQL: fixes
STRevaluation on small IRI (less than 16 bytes) that was broken. - SPARQL update: fixes
WHEREclause evaluation that was generating too many solutions in some cases. - Upgrades RocksDB to 8.7.1.
- Python: allows to give
pathlib.Pathargument when a path is expected. - Cargo.toml: add a documentation field to link to docs.rs documentation.
- Upgrades RocksDB to 8.3.2.
- SPARQL: fixes evaluation of
||when all alternatives arefalse. The results must befalseand not an error. - SPARQL:
xsd:durationit is now possible to properly parse and serialize all numbers that can be internally represented by the encoding used by Oxigraph. - Python: fixes
Store.contains_named_graphreturn type annotation.
- SPARQL: support of
xsd:durationto SPARQLSUMaggregate function. - Server: support for systemd "notify" service option.
- Server: uses the target graph name as base URI when
POSTing andPUTing data. - Python:
Store.contains_named_graphmethod.
- SPARQL:
xsd:decimalmultiplication and division have been improved to avoid raising overflow because of internal operations in some cases. - SPARQL:
xsd:decimalparser is now able to properly parse all numbers that can be internally represented by the encoding used by Oxigraph. - SPARQL:
xsd:decimalavoids bad overflow on unary-operator. - SPARQL: reduces loss of precision when casting
xsd:decimaltoxsd:floatorxsd:double. - SPARQL: improves a bit the AST in case of a lot of
&&,||orINoperators. - SPARQL: fixes some optimization bugs around
MINUSinsideOPTIONAL. - SPARQL: makes for loop join choice instead of hash join a bit more aggressive.
- Avoids random crashes when building RocksDB for aarch64.
- Python: fixes support of text I/O with not-ASCII char.
- Python: upgrades PyO3 to 0.19.
spargebra:GroundTermPattern::Tripleis now properly gated behind the"rdf-star"feature.oxsdatatypes: Deprecatesis_naanthat is renamed tois_nan(we like bread but prefer numbers).oxsdatatypes: Addschecked_negmethods on numerical types.oxsdatatypes: Dropsnomdependency and uses hand-written parsers instead.
- Fixes flush and compaction on the GSPO index. It might improve Oxigraph performances and storage space.
- SPARQL: fixes some optimizations in presence quoted triples with nested variables.
- SPARQL profiler: adds EXISTS operation to the explanation and profiling tree.
- Upgrades RocksDB to 8.1.1.
- Rust: adds
Store.explain_query_optmethod that allows to get an explanation of the evaluation with profiling statistics. - Server: adds explanation and profiling to the
queryaction (--explain,--explain-fileand--statsoptions). - Python: implements the
__match_args__attribute on terms (literals, triples, quads...) to allowmatchoperator usage. - Server: adds the
--corsoption to theserveactions to allow cross-origin resource sharing.
- SPARQL: fixes evaluation of empty aggregation without GROUP BY: aggregators now return their default value (0 for COUNT...) and not an empty row.
- SPARQL: fixes parsing of decimal with more than 19 digits in the fractional part.
- Server docker image: switch to the smaller distroless base images.
- Bulk loader: by default only uses 2 concurrent threads and around 2GB of RAM.
- Server load: progress is now printed to stderr much more regularly.
- Read only and secondary RocksDB storage. Allows to open the data as read-only or to follow a primary instance.
- Server: adds multiple commands:
serve-secondaryandserve-read-onlyto serve the HTTP server in secondary and read-only modes.dumpto dump the database content to a file.queryandupdateto execute SPARQL query and updates.backupto do a database backup.optimizeto optimize the database storage.
- Server: adds
formatandgraphoptions to theloadcommand in order to select the loaded data format and the target graph. - Python:
Store.extendandStore.bulk_extendmethods. - Python: allows to pickle basic data model classes.
- Upgrades RocksDB to 8.0.0.
- Server: listening to localhost now properly listen to both IPv4 and IPv6.
- RDF/XML and XML parser results: avoid an ever growing buffer.
- JSON SPARQL results: allows the "head" key to be at the end of the document.
- TSV SPARQL results: properly quote
\tand print trailing line jumps. Term::from_str: fixes parsing of blank nodes in object position of quoted triples.QuerySolution: implementsEqandDebug.- JS: Reduces WASM build size.
- OxRDF: fixes
GraphandDatasetserialization to output proper N-Triples and N-Quads.
- Fixes serialization of times with a decimal number of seconds lower than 10 (now
01:01:01.01and not01:01:1.01). - Turtle and TriG: fixes parsing for prefixes named after keywords (
prefix,base,graph,trueandfalse).
From<NamedOrBlankNode>forGraphName(and similarly for*Ref).- Prebuilt Python wheels for Linux with musl libc.
- Fixes TriG serialization.
QueryDatasetis now properly exposed in the public Rust API.
- SPARQL: Implementation of the
LATERALoperator following SPARQL SEP-0006. Support is behind thesep-0006feature inspargebraand enabled by default in Oxigraph. - SPARQL: Implementation of the
ADJUSTfunction following SPARQL SEP-0002. Support is behind thesep-0002feature inspargebraand enabled by default in Oxigraph. - Rust: There is a new stand-alone crate
oxsdatatypesimplementing Rust structs for the common XML schema datatypes. It was part of the Oxigraph crate and it might be useful for other SPARQL or XPath implementations. - Rust: The
oxigraphcrate can now be compiled forwasm32-wasiwith the basic in-memory backend but without RocksDB.
- SPARQL: The property path evaluator was sometime emitting duplicates when evaluating disjunctive patterns (
a|b). It is now fixed. - SPARQL: If written explicitly in the SPARQL query, the regular expressions are now compiled once and not for each row.
- SPARQL: Property path evaluation with both start and end variables bound has been optimized.
- SPARQL: Casts to
xsd:decimalfromxsd:floatandxsd:doublenow properly fails on overflow instead of overflowing the internal 128-bits representation. This follows XPath casting rules. - Rust: The minimal supported Rust version is set at 1.60 and enforced using the CI.
- Python: Local builds will now target the specific Python version instead of abi3. abi3 wheels are still released on Pypi alongside new Python-version specific builds for Linux+GNU.
- SPARQL: Fixes a panic when the estimated upper bound of the results size was overflowing a
usize. - Python: Uses
typing.IOin Python stubs instead of narrower interfaces. - Upgrades RocksDB to 7.9.2,
quick-xmlto 0.27 andpyo3to 0.18.
- SPARQL: Property path with unbound graph are now evaluated.
For example,
SELECT * WHERE { GRAPH ?g { ?s ex:p+ ?o } }now works. - SPARQL: The query optimizer is now fuzzed for better testing.
- SPARQL: Evaluation of zero-length paths with both start and end unbounded now return only terms defined in the current graph but not terms only defined in the query.
For example, in
SELECT * WHERE { VALUES ?s { 1 } { ?s ex:p? ?o } }the literal1won't be returned anymore if not in the queried graph. - Python: type stubs are now compatible with Python 3.7 and Mypy strict mode.
- RDF/XML: allows entities declared using other entities.
- Upgrades
quick-xmlto 0.26.
- Server: The
/storeendpoints now has ano_transactionHTTP option forPOSTandPUTrequest to get better performances at the cost of transactional guarantees. - Server: The
/storeendpoints now has alenientHTTP option forPOSTandPUTrequest to ignore syntax errors (requires theno_transactionoption). - Server: allows path that are not valid UTF-8 in file path CLI arguments.
- Rust:
From<spargebra::Query>tooxigraph::Query(thanks to @hobofan).
- SPARQL:
NOW()function properly returns the current time and not 1970-01-01 - SPARQL: fixes serialization of SPARQL queries (property path and STRSTARTS function).
- SPARQL: slightly optimize aggregates by avoiding an unneeded projection.
- SPARQL: the parser now cleanly fails if invalid
VALUESclauses are provided. - SPARQL: In DELETE/INSERT UPDATE the currently written values can't be read anymore ("Halloween problem").
oxrdf: makes Clippy run without warnings whenrdf-staris disable.- Python: makes type annotations compatible with Python 3.7.
- Python: makes sure the parameter default value is always included in the type annotation.
- Python: avoid uploading debug wheels to pypi.
- Python type stubs are now generated and distributed alongside wheels.
- SPARQL: Fixes evaluation of sub queries in which some variables might not be always bound.
- Python: Uses https://pyoxigraph.readthedocs.io instead of https://oxigraph.org/pyoxigraph/ to store pyoxigraph documentation.
- Server: Migration to Clap v4. Slight changes to the console textual outputs.
- Server: Makes sure body is always sent for all HTTP response codes that are not explicitly to not do that according to the HTTP specification.
- Python: Adds support of reading from
io.TextIOBase.
- Fixes a bug in the SPARQL parser with nested anonymous blank nodes (
[]). - Migrates the Python documentation skin to Furo.
- Allows multiple value to be given to
oxigraph_server--fileparameter. - Limits parallelism of
oxigraph_serverfile loader to avoid stack overflows.
QueryResults::with_http_redirection_limitthat allows to set a limit on the number of HTTP redirection followed (0by default).
- Fixes a bug in SPARQL parser that was always enabling the
SILENToption of theSERVICEoperator. - Allows unknown keys in the objects present in the SPARQL JSON query results. It allows to parse e.g. Virtuoso query results.
- Allows
"typed-literal"as an alias of"literal"in SPARQL JSON query results. - Improves the HTTP client error reporting: no silent failures on 4XX and 5XX responses.
- Upgrades RocksDB to 7.3.1.
- Upgrades quick-xml to 0.23.
- Fixes a bug in the server bulk loader that crashed on very small files.
- Upgrades RocksDB to v7.1.
- Removes some dead code in the bulk loader.
- The default git branch is now
mainand notmaster(thanks to @nyurik). - Upgrades RocksDB to v7.0.4.
- Limits the number of bulk loader threads to at most 4 (allows bigger BTree chunks and a better data layout).
- Limits the number of files opened by RocksDB to the soft file descriptor limit minus 48.
- Fixes compilation on ARM.
- Moves some lints from errors to warnings in order to avoid compilation failures on different Rust versions.
- The bulk loader now checks available memory and tries to increase its batch size to make use of it.
- The Bulk loader provides now a
--lenientoption to keep loading a file even if invalid data is found (works only with N-Triples and N-Quads). This behavior can be customised in the Rust API using theBulkLoader::on_parse_errormethod.
- Rocksdb has been upgrade to 7.0.2. It now requires a C++17 compatible compiler. This required dropping support of macOS 10.9 to 10.13.
- JS: Oxigraph NPM package is now also supporting web browsers and WebPack.
- JS: RDF term related classes now overrides the
toStringmethod. - Python: It is now possible to directly give a file path to the
parse,serialize,Store.load,Store.bulk_loadandStore.dumpfunctions. - Python: New
Store.clear_graph,Store.clear,Store.optimizeandStore.flushmethods.
sophia_apitraits implementation following a request of Sophia maintainer.
- SPARQL: fixes evaluation of SPARQL queries with no results but an
ORDER BYclause. There should be no group in the output instead of one empty group. This behavior has been changed following this discussion. - SPARQL: fixes SPARQL-star evaluation of nested triples with both variables and constants.
- SPARQL: if results are sorted, literals are now ordered by value, then datatype, then language tag. This ordering is considered as "implementation defined" by the SPARQL specification and is very likely to change in the future.
- Python: all costly methods now release the python GIL allowing multithreaded usages of pyoxigraph.
- Rust: SPARQL results writer now flushes the buffer at the end of the results writes. This makes their API less error-prone.
- Rust: the bulk loader API has been rewritten to allow hooking a progress indicator and set parallelism limit.
- Server: it is now possible to bulk load gzipped files.
- Fixes a bug in the
bulk_load_datasetmethod that was creating an invalid database. - Server: Takes into account also URL query parameters if the send SPARQL request body is using form-urlencoded.
- Upgrades RocksDB to v0.28.2.
- Generate clean python sdist files compiling Oxigraph from scratch with the proper
Cargo.lock. - Do not push beta releases to homebrew and python stable documentation.
- Moves RocksDB binding directory to
oxrocksdb-sys.
- Fixes release on crates.io of the RocksDB bindings.
- RDF-star support.
Tripleis now a possibleTerm. Serialization formats and SPARQL support have been updated to match the latest version of the specification draft. - Fast data bulk load with the
Storebulk_load_datasetandbulk_load_graphmethods and a special command-line option of the server. - It is now possible to quickly backup the database using the
backupmethod. - Rust:
*Syntax::from_extensionto easy guess a graph/dataset/sparql result format from a file extension. - Rust: Custom SPARQL functions are now supported using
QueryOptions::with_custom_function. - Rust: Simple in-memory graph (
Graph) and dataset (Dataset) data structures with canonicalization. - Nightly build of the server binary and docker image, and of pyoxigraph wheels.
Storeoperations are now transactional using the "repeatable read" isolation level: the store only exposes changes that have been "committed" (i.e. no partial writes) and the exposed state does not change for the complete duration of a read operation (e.g. a SPARQL query) or a read/write operation (e.g. a SPARQL update). theStoretransactionmethod now allows to do read/write transactions. -RDF-star <https://w3c.github.io/rdf-star/cg-spec/2021-12-17.html>_ is now supported (including serialization formats and SPARQL-star). :py:class:.Triplecan now be used in :py:attr:.Triple.object, :py:attr:.Triple.object, :py:attr:.Quad.subjectand :py:attr:.Quad.object.
- SPARQL: It is now possible to compare
rdf:langStringliterals with the same language tag. - SPARQL: The parser now validates more carefully the inputs following the SPARQL specification and test suite.
- SPARQL: Variable scoping was buggy with "FILTER EXISTS". It is now fixed.
- Rust: RDF model, SPARQL parser and SPARQL result parsers have been moved to stand-alone reusable libraries.
- Rust: HTTPS is not supported by default with the
http_clientoption. You need to enable thenative-tlsor therustlsfeature of theoxhttpcrate to enable a TLS layer. - Rust: The error types have been cleaned.
Most of the
Storemethods now return aStorageErrorthat is more descriptive than the previousstd::io::Error. The new error type all implementsInto<std::io::Error>for easy conversion. - Rust: There is now a
Subjectstruct that is the union ofNamedNode,BlankNodeandTriple. It is The used type of thesubjectfield of theTripleandQuadstructs. - Rust: The SPARQL algebra is not anymore publicly exposed in the
oxigraphcrate. The newoxalgebracrate exposes it. - Rust:
UpdateOptionsAPI have been rewritten. It can now be built usingFrom<QueryOptions>orDefault. - Server: The command-line API has been redesign. See the server README for more information.
- Server: The HTTP implementation is now provided by
oxhttp. - Server: The HTTP response bodies are now generated on the fly instead of being buffered.
- Python: The
SledStoreandMemoryStoreclasses have been removed in favor of theStoreclass. - JS: The
MemoryStoreclass has been renamed toStore. - JS: The RDF/JS
DataFactoryinterface is now implemented by theoxigraphmodule itself and theMemoryStore.dataFactoryproperty has been removed. - The implementation of SPARQL evaluation has been improved for better performances (especially joins).
- The TLS implementation used in SPARQL HTTP calls is now rustls and not native-tls. The host system certificate registry is still used.
- Spargebra: The basic RDF terms are now the ones of the
oxrdfcrate.
SledStoreandMemoryStore. There is only theRocksDbStoreanymore that is renamed toStore.oxigraph_wikibaseis now stored in its own repository.- Rust:
Fromimplementations betweenoxigraphterms andrio_apiterms.
Many thanks to Thad Guidry, James Overton and Jeremiah who sponsored the project during the development of this version.
- SPARQL 1.1 Query Results JSON Format parser.
- Python wheels for macOS are now universal2 binaries.
- The
Cargo.lockfile is now provided with releases to avoid compilation failures because of changes in dependencies. - Uses clap instead of argh for the server arguments parsing.
- Upgrades PyO3 to v0.14.
- The HTTP server allows to query the union of all graphs using the
union-default-graphquery parameter and to use the union graph for updateWHEREclauses using theusing-union-graphparameter. - Exposes Sled flush operation (useful for platforms without auto-flush like Windows or Android).
- Fixes a possible out of bound panic in SPARQL query evaluation.
- Upgrades RocksDB to 6.17.3.
- Server: Fixes HTTP content negotiation (charset constraints, failure to properly handle
*/*...). - Makes Clippy 1.51 happy.
- Support of XML entities to the RDF/XML parser
- Serve: Allows unsupported query parameters in HTTP SPARQL requests.
- Fixes WASM compilation bug and optimises WASM release packages.
- Fixes named graph creation inside of a SledStore transaction.
- Fixes
pyoxigraphbuild by enforcing a givenmaturinversion. - Adds code to build Python wheels for MacOS and Windows.
- SPARQL 1.1 Update support for Rust, Python and JavaScript. All store-like classes now provide an
updatemethod. - SPARQL 1.1 Query Results CSV and TSV Formats serializers and TSV format parser.
- SPARQL 1.1 Graph Store HTTP Protocol partial support in
oxigraph_server. This protocol is accessible under the/storepath. - The SPARQL Query and Update algebra is now public.
- The stores are now "graph aware" i.e. it is possible to create and keep empty named graphs.
- A simple built-in HTTP client. In the Rust library, is disabled by default behind the
http_clientfeature. It powers SPARQL federation and SPARQL UPDATELOADoperations. std::str::FromStrimplementations toNamedNode,BlankNode,Literal,TermandVariableallowing to easily parse Turtle/SPARQL serialization of these terms.- Optional Sled storage for
oxigraph_server.
- The
default_graph_urisandnamed_graph_urisparameters frompyoxigraphquerymethods. - Python 3.5 support.
(Memory|RocksDB|Sled)Store::prepare_querymethods. It is possible to cache SPARQL query parsing using theQuery::parsefunction and give the parsed query to thequerymethod.
- Loading data into
oxigraph_serveris now possible using/storeand not anymore using/. For example, you should use nowcurl -f -X POST -H 'Content-Type:application/n-quads' --data-binary "@MY_FILE.nq" http://localhost:7878/storeto add the N-Quads file MY_FILE.nt to the server dataset. - Fixes evaluation of
MONTH()andDAY()functions on thexsd:datevalues. Variable::newnow validates the variable name.(Memory|RocksDB|Sled)Store::querydoes not have an option parameter anymore. There is now a newquery_optmethod that allows giving options.xsd:booleanSPARQL function now properly follows XPath specification.- Fixes SPARQL
DESCRIBEevaluation.
The disk data format has been changed between Oxigraph 0.1 (version 0) and Oxigraph 0.2 (version 1). Data is automatically migrated from the version 0 format to the version 1 format when opened with Oxigraph 0.2.
- The
"sophia"feature implementing thesophia_apitraits on Oxigraph terms and stores. - Explicit types for quads iterators returned by stores.
QueryOptions::with_default_graphnow takes animpl Into<GraphName>instead of animpl Into<NamedNode>.QueryOptions::with_named_graphnow takes animpl Into<NamedOrBlankNode>instead of animpl Into<NamedNode>.pyoxigraphquerymethods now takes two new parameters,default_graphandnamed_graphs.default_graph_urisandnamed_graph_urisparameters are deprecated.- Fixes a bug in
xsd:gYearparsing.
QueryOptionsnow allows settings the query dataset graph URIs (the SPARQL protocoldefault-graph-uriandnamed-graph-uriparameters).pyoxigraphstorequerymethods allows to provide the dataset graph URIs. It also provides an option to use all graph names as the default graph.- "default graph as union option" now works with FROM NAMED.
pyoxigraphnow exposes and documentsVariable,QuerySolution,QuerySolutionsandQueryTriples
oxigraphRust library with SPARQL 1.1 query support and memory, Sled and RocksDB stores.oxigraph_serverstandalone SPARQL server.oxigraph_wikibasestandalone SPARQL server loading data from a Wikibase instance.pyoxigraphPython library based on Oxigraph.oxigraphNodeJS library based on Oxigraph.