A Rust toolkit for RDF and Linked Data.
It comprises the following crates:
sophia_api
defines a generic API for RDF and linked data,
as a set of core traits and types;
more precisely, it provides traits for describingsophia_iri
provides functions, types and traits for validating and resolving IRIs.sophia_term
defines various implementations of the Term
trait from sophia_api
.sophia_inmem
defines in-memory implementations of the Graph
and Dataset
traits from sophia_api
.sophia_turtle
provides parsers and serializers for the Turtle-family of concrete syntaxes.sophia_jsonld
provides parsers and serializers for JSON-LD.sophia_xml
provides parsers and serializers for RDF/XML.sophia_rio
is a lower-level crate, used by the ones above.sophia_c14n
implements RDF canonicalization.sophia_isomorphism
provides functions to determine if two graphs or datasets are isomorphic.sophia_sparql
] provides a (currently partial) implementation of the SPARQL 1.1 Query Language.sophia_sparql_client
provides a client for the SPARQL 1.1 Protocol.sophia_resource
provides a resource-centric API.sophia
re-exports symbols from all the crates above, with the following provisio:sophia_jsonld
is only available with the jsonld
featuresophia_sparql
is only available with the sparql
featuresophia_sparql_client
is only available with the http_client
featuresophia_xml
is only available with the xml
featureIn addition to the API documentation, a high-level user documentation is available (although not quite complete yet).
CECILL-B (compatible with BSD)
When using Sophia, please use the following citation:
Champin, P.-A. (2020) ‘Sophia: A Linked Data and Semantic Web toolkit for Rust’, in Wilde, E. and Amundsen, M. (eds). The Web Conference 2020: Developers Track, Taipei, TW. Available at: https://www2020devtrack.github.io/site/schedule.
Bibtex:
@misc{champin_sophia_2020,
title = {{Sophia: A Linked Data and Semantic Web toolkit for Rust},
author = {Champin, Pierre-Antoine},
howpublished = {{The Web Conference 2020: Developers Track}},
address = {Taipei, TW},
editor = {Wilde, Erik and Amundsen, Mike},
month = apr,
year = {2020},
language = {en},
url = {https://www2020devtrack.github.io/site/schedule}
}
The following third-party crates are using or extending Sophia
hdt
provides an implementation of Sophia's traits based on the HDT format.manas
is a modular framework for implementing Solid compatible serversnanopub
is a toolkit for managing nanopublicationsAn outdated comparison of Sophia with other RDF libraries is still available here.