rdf_xml 0.4.1
rdf_xml: ^0.4.1 copied to clipboard
A rdf/xml decoder and encoder for https://pub.dev/packages/rdf_core .
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.4.1 - 2025-07-21 #
Added #
- New
BaseUriRequiredException
class for better error handling when base URI is missing - Comprehensive test coverage for relative URL decoding scenarios
- Better error messages with clear instructions for fixing base URI issues
- Comprehensive test coverage for URI relativization in serialization
- New
includeBaseDeclaration
option inRdfXmlEncoderOptions
to control xml:base attribute inclusion
Changed #
- Improved error handling for URI resolution with more specific exception types
- Enhanced error messages to include source context information
- Updated test imports to use public API instead of internal imports
Fixed #
- Better handling of relative URI resolution errors with clearer error messages
- Improved error context reporting in URI resolution failures
- Fixed URI relativization bug where IRIs equal to base URI generated "/" instead of empty string
0.3.0 - 2025-05-13 #
Changed #
- Updated to support breaking changes in rdf_core 0.8.1:
- Updated API from
parse
/serialize
todecode
/encode
- Updated from
RdfFormat
toRdfGraphCodec
- Changed from
withStandardFormats
towithStandardCodecs
- Updated from
withFormats
towithCodecs
- Updated API from
- Added global
rdfxml
codec instance for easier access (following dart:convert pattern) - Simplified API in examples and documentation to use direct
rdfxml.encode()
andrdfxml.decode()
calls - Restructured example files to demonstrate both direct usage and RdfCore integration
0.2.3 - 2025-05-07 #
Fixed #
- Improved handling of objects that are also subjects in RDF/XML parsing
- Fixed parsing issue identified through new test case
0.2.1 - 2025-05-06 #
Changed #
- rdf_core arrived at 0.7.x, make rdf_xml depend on the current minor version.
0.2.0 - 2025-05-06 #
Added #
- Comprehensive example files demonstrating basic usage, configuration options, and file handling
- Improved API documentation with more detailed explanations and usage examples
- Added robust roundtrip tests to ensure consistency between parsing and serialization
Changed #
- Updated landing page (doc/index.html) with correct code examples that match the current API
- Replaced deprecated API usage in documentation with current recommended patterns
- Regenerated API documentation to reflect the latest implementation
- Optimized namespace handling: only needed namespaces are now written in serialized output
- Improved overall code quality with various cleanups and refactorings
Fixed #
- Fixed serialization of nested BlankNodes
- Corrected literal parsing in collections
- Improved baseUri handling in the parser
- Fixed lang attribute handling when XML namespace was not properly declared
- Removed illogical serializer options that could lead to invalid output
- Various edge case fixes to improve robustness and correctness