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.Graph
s:- the structure now has a
prefixes
field with an optionalRDF.PrefixMap
- new functions
add_prefixes/2
,delete_prefixes/2
andclear_prefixes/1
- the structure now has a
- 🔧 configurable
RDF.default_prefixes
RDF.Description.equal?/2
,RDF.Graph.equal?/2
,RDF.Dataset.equal?/2
andRDF.Data.equal?/2
🔄 Changed
- the constructor functions for
RDF.Graph
s andRDF.Dataset
s now take the graph name resp. dataset name through aname
option, instead of the first argument - 🛠
RDF.Graph.new
supports an additionalprefixes
argument to initialize theprefixes
field - when
RDF.Graph.add
andRDF.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
- from the
- ⬇️ drop support for OTP < 20, since prefixes can consist of UTF characters which
are not supported in atoms on these versions