11 releases

0.9.0 Nov 21, 2024
0.8.0 Jan 8, 2024
0.8.0-alpha.3 Oct 24, 2023
0.7.2 Feb 1, 2022
0.5.3 Apr 26, 2020

#1787 in Parser implementations

Download history 375/week @ 2024-08-17 360/week @ 2024-08-24 669/week @ 2024-08-31 368/week @ 2024-09-07 384/week @ 2024-09-14 386/week @ 2024-09-21 374/week @ 2024-09-28 481/week @ 2024-10-05 293/week @ 2024-10-12 505/week @ 2024-10-19 242/week @ 2024-10-26 548/week @ 2024-11-02 368/week @ 2024-11-09 662/week @ 2024-11-16 499/week @ 2024-11-23 687/week @ 2024-11-30

2,298 downloads per month
Used in 3 crates (2 directly)

CECILL-B

590KB
12K SLoC

Sophia

A Rust toolkit for RDF and Linked Data.

Actions Status Latest Version Documentation

It comprises the following crates:

  • Core 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_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.
  • Parsers and serializers
    • 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.
  • Other
  • All-inclusive
    • sophia re-exports symbols from all the crates above, with the following provisio:
      • sophia_jsonld is only available with the jsonld feature
      • sophia_sparql is only available with the sparql feature
      • sophia_sparql_client is only available with the http_client feature
      • sophia_xml is only available with the xml feature

In addition to the API documentation, a high-level user documentation is available (although not quite complete yet).

Licence

CECILL-B (compatible with BSD)

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

Third-party crates

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 servers
  • nanopub is a toolkit for managing nanopublications

History

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

Dependencies

~12–25MB
~353K SLoC