RDF.ex v0.6.2 Release Notes

Release Date: 2019-09-08 // over 4 years ago
  • โž• Added

    • field base_iri on RDF.Graph structure which can be set via new base_iri option on RDF.Graph.new or the new functions RDF.Graph.set_base_iri/2 and RDF.Graph.clear_base_iri/1
    • ๐Ÿ“‡ RDF.Graph.clear_metadata/1 which clears the base IRI and the prefixes
    • RDF.IRI.coerce_base/1 which coerces base IRIs; as opposed to RDF.IRI.new/1 it also accepts bare RDF.Vocabulary.Namespace modules

    ๐Ÿ”„ Changed

    • RDF.Turtle.Decoder saves the base IRI in the RDF.Graph now
    • RDF.Turtle.Encoder now takes the base IRI to be used during serialization in
      the following order of precedence:
      • from the base option or its new alias base_iri
      • from the base_iri field of the given graph
      • from the RDF.default_base_iri returning the one from the application configuration
    • RDF.PrefixMap.new and RDF.PrefixMap.add now also accepts terms from RDF.Vocabulary.Namespaces as namespaces

    ๐Ÿ›  Fixed

    • Vocabulary namespace modules weren't always detected properly

    Compare v0.6.1...v0.6.2