RDF.ex follows the RDF specs and supports IRIs, an internationalized generalization of URIs, permitting a wider range of Unicode characters. They are represented with the
RDF.IRI structure and can be constructed either with
RDF.IRI.new!/1, the latter of which additionally validates, that the given IRI is actually a valid absolute IRI or raises an exception otherwise.
RDF module defines the alias functions
RDF.iri!/1 delegating to the resp.
Besides being a little shorter than
RDF.IRI.new and better
importable, their usage will automatically benefit from any future IRI creation optimizations and is therefore recommended over the original functions.
A literal IRI can also be written with the
But there's an even shorter notation for IRI literals.