rdf_mapper_generator 0.2.1
rdf_mapper_generator: ^0.2.1 copied to clipboard
Generate type-safe RDF mappers from annotated Dart classes.
RDF Mapper Generator for Dart #
A code generation tool for creating type-safe, boilerplate-free RDF mappers in Dart. Automatically converts between Dart objects and RDF (Resource Description Framework) data by processing annotations from rdf_mapper_annotations. Supports global and local resources, IRI templates, custom type mappings, collections, and complex object graphs while maintaining high performance and type safety.
Overview #
rdf_mapper_generator provides the builder that takes classes annotated with the annotations from rdf_mapper_annotations and generates Mappers for use with rdf_mapper project.
Part of a Family of Projects #
This library is part of a comprehensive ecosystem for working with RDF in Dart:
- rdf_core - Core graph classes and serialization (Turtle, JSON-LD, N-Triples)
- rdf_mapper - Base mapping system between Dart objects and RDF
- rdf_mapper_generator - Code generator for this annotation library
- rdf_vocabularies - Constants for common RDF vocabularies (Schema.org, FOAF, etc.)
- rdf_xml - RDF/XML format support
- rdf_vocabulary_to_dart - Generate constants for custom vocabularies
π£οΈ Roadmap / Next Steps #
- Implement many more tests.
- Improve validation and error behaviour, make sure that wrongly used annotations will be answered with helpful messages instead of cryptic error behaviour
- Cleanup Codebase, get rid of all FIXME and TODO comments
π€ Contributing #
Contributions, bug reports, and feature requests are welcome!
- Fork the repo and submit a PR
- See CONTRIBUTING.md for guidelines
- Join the discussion in GitHub Issues
π€ AI Policy #
This project is proudly human-led and human-controlled, with all key decisions, design, and code reviews made by people. At the same time, it stands on the shoulders of LLM giants: generative AI tools are used throughout the development process to accelerate iteration, inspire new ideas, and improve documentation quality. We believe that combining human expertise with the best of AI leads to higher-quality, more innovative open source software.
Β© 2025 Klas KalaΓ. Licensed under the MIT License.