RDFtk: IRI
This crate provides an implementation of the
IRI and URI specifications.
As with the rest of the RDFtk project the aim of this crate is usability over
optimization, and so it may perform more clones than necessary and parse more
slowly than could be the case. For the most part clients should use the IriRef
type that is an Arc reference and so can be reused without cloning the whole Iri
value.
Example
The most common use is the parsing of an IRI value from a string.
use ;
use FromStr;
let namespace = from_str.unwrap;
assert!;
let name = namespace.make_name.unwrap;
assert_eq!;
assert_eq!;
assert_eq!;
Changes
Version 0.3.1
- Feature: add new
compress_to_irirefmethod onIriPrefixMapalongside the existingcompressmethod. - Feature: make the
IriExtra::genidmethod gated ingenidfeature. - Test: checked the
no_stdcompatibility. - Documentation: minor fix-ups.
Version 0.3.0 BREAKING
- Refactor: aligned the API with the SPARQL grammar.
QNamerenamedLocalName,Namebecame separateNamespaceandName,- added
IriRefenum, - added
PrefixedNameenum.
- Test: added significant test cases and coverage target.
- test cases both in
tests/folder and in documentation, - specific tests in
tests/coveragefor weird cases, - property tests for the name parsers.
- test cases both in
- Documentation: complete public documentation.
Version 0.2.6
Preparation for 0.3.0.
Version 0.2.5
- Feature: added
From<QNameandFrom<&QName>forString.
Version 0.2.4
- Refactor: move the
QNametype into this package from core.
Version 0.2.3
- Feature: added
From<&Name>forString.
Version 0.2.2
- Feature: added new
Namestructure (andNameParseError) to validate the name component of an IRI representing a namespaced-name.- Added type
NameParserto encapsulate different name rules. - Added type
NameParseErrorfor errors generated by name parsers. - Altered return types of
IriExtra::splitandIriExtra::name. - Altered parameter type in
IriExtra::make_name.
- Added type
Version 0.2.1
- Build: cargo audit/outdated/udeps
Version 0.2.0
- Refactor: replaced own implementation of IRI with the
urlcrate.- Added trait
IriExtrato provide new methods to theurl::Urltype. - Added doc comments/tests for
IriExtra.
- Added trait
- Build: updated Rust edition from 2018 to 2021.
- Docs: run markuplint on
README.md.
Version 0.1.9
- Feature: added a feature to enable genid creation.
- Feature: made
IRIimplementPartialOrd+Ord, it can now be sorted. - Feature: added
PercentEncodingtrait for percent encoding components.
Version 0.1.8
- Fix: parser to fix some precedence rules.
- Docs: some documentation fixes.
Version 0.1.7
- Feature: added support for well-known IRIs to the Path and IRI types.
Version 0.1.6
- Style: applied a lot more warnings in lib.rs
- Style: applied more Clippy suggestions.
Version 0.1.5
- Style: applied all Clippy suggestions.
Version 0.1.4
- Test: more testing, and local coverage reporting.
- Fix: bug where separator missing in
UserInfo::to_string. - Fix: parsing bug
IpvFuture::from_str. - Feature: added
host,path_root,pathmethods toIriBuilder. - Feature: ahanges
with_new_queryandwith_new_fragmentonIRIto not takeOption. - Feature: added
blobknown value toScheme.
Version 0.1.3
- Test:
- Moved any tests out of the main code if they only use the public API.
- Added a set of files for gathering whole
IRIexamples. - Added proptest for
Scheme, will add for more.
- Fix: bug in
IRI::is_absolute, to ignore authority and take the fragment into account. - Feature: added
IRI::is_relative_reference.
Version 0.1.2
- Doc: mostly documentation additions.
- Test: adding test cases where possible.
- Feature: added helper functions and API shortcuts where they make sense.
- Feature: added
path_irianduuid_irifeatures.
Version 0.1.1
- Feature: added
IRIReftype.
Version 0.1.0
- First release.