Zero-Boilerplate RDF Mapping for Dart
Transform your Dart classes into RDF mappers with simple annotations. Type-safe, compile-time code generation with lossless mapping capabilities for seamless RDF integration.
Modern, type-safe RDF mapping with zero runtime overhead
Write business logic, not serialization code. Simple annotations generate complete mapping solutions.
Compile-time guarantees for your RDF mappings. Catch errors before they reach production.
Generated code with no runtime overhead. Smart regex patterns and efficient serialization.
First-class support for Schema.org vocabularies through rdf_vocabularies integration.
Custom mappers, IRI templates, context variables, and complex relationship handling.
Perfect round-trip serialization with @RdfUnmappedTriples. Preserve all RDF data, not just mapped properties.
Seamless integration with build_runner. Generate mappers as part of your build process.
Transform your Dart classes into powerful RDF mappers with just a few annotations. The generator handles all the complexity behind the scenes, including lossless mapping to preserve all RDF data during serialization and deserialization.
@RdfGlobalResource(
SchemaBook.classIri,
IriStrategy('https://example.org/books/{isbn}'),
)
class Book {
@RdfIriPart()
final String isbn;
@RdfProperty(SchemaBook.name)
final String title;
@RdfProperty(SchemaBook.author)
final String author;
@RdfProperty(SchemaBook.datePublished)
final DateTime published;
// Lossless mapping - preserve all RDF data
@RdfUnmappedTriples()
final RdfGraph unmappedTriples;
Book({
required this.isbn,
required this.title,
required this.author,
required this.published,
required this.unmappedTriples,
});
}
Latest Version
Type Safe
Runtime Overhead
Mapping Features
Part of a comprehensive suite of RDF tools for Dart
Core graph classes and serialization support for Turtle, JSON-LD, and N-Triples formats.
Runtime mapping system between Dart objects and RDF with powerful serialization capabilities.
Annotation definitions for configuring RDF mappings with flexible options.
Constants for common RDF vocabularies including Schema.org, FOAF, and Dublin Core.
RDF/XML format support for reading and writing XML-based RDF serializations.
Generate Dart constants for custom RDF vocabularies and ontologies.