Skip to main content

Module format

Module format 

Source
Expand description

RDF Format Support Module

Phase 3 of OxiGraph extraction: Complete format support for all major RDF serializations. Extracted and adapted from OxiGraph format libraries with OxiRS enhancements.

Provides unified parsing and serialization for:

  • Turtle (.ttl)
  • N-Triples (.nt)
  • N-Quads (.nq)
  • TriG (.trig)
  • RDF/XML (.rdf, .xml)
  • JSON-LD (.jsonld)
  • N3 (.n3)

Re-exports§

pub use error::FormatError;
pub use error::RdfParseError;
pub use error::RdfSyntaxError;
pub use error::TextPosition;
pub use format::RdfFormat;
pub use parser::QuadParseResult;
pub use parser::RdfParser;
pub use parser::ReaderQuadParser;
pub use parser::SliceQuadParser;
pub use serializer::QuadSerializeResult;
pub use serializer::RdfSerializer;
pub use serializer::WriterQuadSerializer;
pub use format::JsonLdProfile;
pub use format::JsonLdProfileSet;
pub use jsonld::JsonLdParser;
pub use jsonld::JsonLdSerializer;
pub use n3::N3Serializer;
pub use nquads::NQuadsSerializer;
pub use ntriples::NTriplesParser;
pub use ntriples::NTriplesSerializer;
pub use rdfxml::RdfXmlParser;
pub use rdfxml::RdfXmlSerializer;
pub use trig::TriGSerializer;
pub use turtle::TurtleParser;
pub use turtle::TurtleSerializer;
pub use w3c_tests::run_w3c_compliance_tests;
pub use w3c_tests::RdfComplianceStats;
pub use w3c_tests::RdfTestResult;
pub use w3c_tests::RdfTestStatus;
pub use w3c_tests::RdfTestType;
pub use w3c_tests::W3cRdfTestConfig;
pub use w3c_tests::W3cRdfTestSuiteRunner;

Modules§

error
Error handling for RDF format operations
format
RDF Format Enumeration and Detection
jsonld
JSON-LD Format Parser and Serializer
n3
N3 (Notation3) format serializer and parser
n3_lexer
N3/Turtle Lexer Implementation
nquads
N-Quads format serializer and parser
ntriples
N-Triples Format Parser and Serializer
parser
Unified RDF Parser Interface
rdfxml
RDF/XML Format Parser and Serializer
serializer
Unified RDF Serializer Interface
toolkit
Generic parsing toolkit for RDF formats
trig
TriG format serializer and parser
turtle
Turtle Format Parser and Serializer
turtle_grammar
Turtle Grammar Recognizer
w3c_tests
W3C RDF Format Compliance Test Suite

Structs§

FormatHandler
Unified RDF format handler combining parsing and serialization

Traits§

FormatDetection
Trait for format detection from content or metadata

Type Aliases§

FormatResult
Result type for format operations