#rdf #linked-data #semantic-web

sophia_iri

A Rust toolkit for RDF and Linked Data - IRI management

4 releases

0.7.0 Jul 22, 2021
0.6.2 Aug 14, 2020
0.6.1 Jul 17, 2020
0.6.0 Jul 16, 2020

#201 in Web programming

Download history 115/week @ 2021-07-04 127/week @ 2021-07-11 124/week @ 2021-07-18 129/week @ 2021-07-25 80/week @ 2021-08-01 136/week @ 2021-08-08 308/week @ 2021-08-15 230/week @ 2021-08-22 143/week @ 2021-08-29 132/week @ 2021-09-05 182/week @ 2021-09-12 90/week @ 2021-09-19 189/week @ 2021-09-26 85/week @ 2021-10-03 100/week @ 2021-10-10 166/week @ 2021-10-17

463 downloads per month
Used in 14 crates (6 directly)

CECILL-B

45KB
1K SLoC

Sophia

A Rust toolkit for RDF and Linked Data.

Build Status Latest Version Coverage Status

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_term defines implementations of the TTerm 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_xml provides parsers and serializers for RDF/XML.
  • sophia_jsonld provides preliminary support for JSON-LD.
  • sophia_indexed and sophia_rio are lower-level crates, used by the ones above.

and finally:

  • sophia is the “all-inclusive” crate, re-exporting symbols from all the crates above.

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.4–2.1MB
~58K SLoC

`