10 releases (breaking)

0.8.0 Jun 18, 2024
0.6.0 Apr 17, 2024
0.5.0 Mar 27, 2024
0.3.0 Jan 30, 2023
0.1.0 Apr 17, 2021

#1199 in Encoding

Download history 22/week @ 2025-05-21 50/week @ 2025-06-18 32/week @ 2025-06-25 325/week @ 2025-07-02 13/week @ 2025-07-09 17/week @ 2025-07-16 24/week @ 2025-07-23 3/week @ 2025-07-30 37/week @ 2025-08-06 34/week @ 2025-08-13 21/week @ 2025-08-20 637/week @ 2025-08-27 163/week @ 2025-09-03

877 downloads per month
Used in 5 crates (2 directly)

LGPL-3.0

82KB
2K SLoC

Pretty RDF/XML

This library allows writing of XML RDF. It is similar to the Rio writer, however, unlike Rio, it is aimed at producing a readable syntax by taking the various shortcuts that the RDF specification provides for. So, for instance, this longer piece of RDF:

<rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar">
  <ex:editor>
    <rdf:Description>
      <ex:homePage>
        <rdf:Description rdf:about="http://purl.org/net/dajobe/">
        </rdf:Description>
      </ex:homePage>
    </rdf:Description>
  </ex:editor>
</rdf:Description>

<rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar">
  <ex:editor>
    <rdf:Description>
      <ex:fullName>Dave Beckett</ex:fullName>
    </rdf:Description>
  </ex:editor>
</rdf:Description>

<rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar">
  <dc:title>RDF 1.2 XML Syntax</dc:title>
</rdf:Description>

will be shrunk using multiple property elements to this:

<rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar">
  <ex:editor>
    <rdf:Description>
      <ex:homePage>
        <rdf:Description rdf:about="http://purl.org/net/dajobe/">
        </rdf:Description>
      </ex:homePage>
      <ex:fullName>Dave Beckett</ex:fullName>
    </rdf:Description>
  </ex:editor>
  <dc:title>RDF 1.2 XML Syntax</dc:title>
</rdf:Description>

Dependencies

~2.5MB
~41K SLoC