7 releases

0.8.0-alpha.0 Feb 10, 2023
0.7.2 Feb 1, 2022
0.7.1 Dec 21, 2021
0.7.0 Jul 22, 2021
0.6.1 Jul 17, 2020

#507 in Web programming

Download history 83/week @ 2022-11-27 73/week @ 2022-12-04 106/week @ 2022-12-11 145/week @ 2022-12-18 104/week @ 2022-12-25 135/week @ 2023-01-01 245/week @ 2023-01-08 182/week @ 2023-01-15 284/week @ 2023-01-22 161/week @ 2023-01-29 181/week @ 2023-02-05 272/week @ 2023-02-12 204/week @ 2023-02-19 195/week @ 2023-02-26 221/week @ 2023-03-05 86/week @ 2023-03-12

715 downloads per month
Used in 16 crates (7 directly)

CECILL-B

60KB
1K SLoC

Sophia

A Rust toolkit for RDF and Linked Data.

Actions Status Latest Version Documentation

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 describing
    • terms, triples and quads,
    • graphs and datasets,
    • parsers and serializers
  • sophia_iri provides functions, types and traits for validating and resolving IRIs.
  • 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_xml provides parsers and serializers for RDF/XML.
  • sophia_jsonld provides preliminary support for JSON-LD.
  • sophia_c14n implements RDF canonicalization.
  • sophia_rio is a lower-level crate, used by the ones above.

and finally:

  • sophia is the “all-inclusive” crate, re-exporting symbols from all the crates above. (actually, sophia_xml is only available if the xml feature is enabled)

Licence

CECILL-B (compatible with BSD)

Testing

The test suite depends on the [the JSON-LD test-suite which is included as a git submodule. In order to run all the tests, you need to execute the following commands:

$ git submodule init
$ git submodule update

Citation

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}
}

History

An outdated comparison of Sophia with other RDF libraries is still available here.

Dependencies

~1.6–2.4MB
~64K SLoC