RDF.ex v0.6.0 Release Notes

Release Date: 2019-04-06 // about 5 years ago
  • ⬆️ see here for ⬆️ upgrading notes to RDF.ex 0.6

    ➕ Added

    • RDF.PrefixMap
    • prefix management of RDF.Graphs:
      • the structure now has a prefixes field with an optional RDF.PrefixMap
      • new functions add_prefixes/2, delete_prefixes/2 and clear_prefixes/1
    • 🔧 configurable RDF.default_prefixes
    • RDF.Description.equal?/2, RDF.Graph.equal?/2, RDF.Dataset.equal?/2 and RDF.Data.equal?/2

    🔄 Changed

    • the constructor functions for RDF.Graphs and RDF.Datasets now take the graph name resp. dataset name through a name option, instead of the first argument
    • 🛠 RDF.Graph.new supports an additional prefixes argument to initialize the prefixes field
    • when RDF.Graph.add and RDF.Graph.put are called with another graph, its prefixes are merged
    • 🛠 RDF.Turtle.Decoder saves the prefixes now
    • 🛠 RDF.Turtle.Encoder now takes the prefixes to be serialized in the following order of precedence:
      • from the prefixes option (as before)
      • from the prefixes field of the given graph
      • from the RDF.default_prefixes
    • ⬇️ drop support for OTP < 20, since prefixes can consist of UTF characters which are not supported in atoms on these versions

    Compare v0.5.4...v0.6.0