| Crates.io | pretty_rdf |
| lib.rs | pretty_rdf |
| version | 0.8.0 |
| created_at | 2021-04-17 20:22:29.522494+00 |
| updated_at | 2024-06-18 16:06:25.05332+00 |
| description | RDF/XML Pretty Formatting |
| homepage | |
| repository | https://github.com/phillord/pretty_rdf |
| max_upload_size | |
| id | 385920 |
| size | 81,592 |
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>