All Versions
20
Latest Version
Avg Release Cycle
62 days
Latest Release
2091 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v0.8.2 Changes
September 21, 2020โ Added
- the Turtle encoder can now produce partial Turtle documents with the
:onlyoption and any combination of the following values::triples,:directives,:base,:prefixes - ๐
the style of the Turtle directives produced by the Turtle encoder can be
switched to SPARQL style with the option
:directive_styleand the value:sparql - ๐ the most common conflict resolution strategies on
RDF.PrefixMap.merge/3can now be chosen directly with the atoms:ignoreand:overwrite - ๐
RDF.PrefixMap.prefixed_name/2to convert an IRI to a prefixed name RDF.PrefixMap.prefixed_name_to_iri/2to convert a prefixed name to an IRI
๐ Changed
- ๐ when serializing a
RDF.Datasetwith the Turtle encoder the prefixes of all of its graphs are used now
๐ Fixed
- โ adding an empty
RDF.Descriptionwith a subject to an emptyRDF.Graphresulted in an invalid non-empty graph (@pukkamustard)
- the Turtle encoder can now produce partial Turtle documents with the
-
v0.8.1 Changes
June 16, 2020โ Added
- ๐ query functions for basic graph pattern matching (incl. streaming-support)
-
v0.8.0 Changes
June 01, 2020๐ RDF literals and their datatypes were completely redesigned to support derived XSD datatypes and ๐ allow for defining custom datatypes. โก๏ธ For an introduction on how literals work now read the updated page on literals in the guide. โฌ๏ธ For more details on how to migrate from an earlier version read this wiki page.
โ Added
- a lot of new datatypes like
xsd:float,xsd:byteorxsd:anyURI-- all numeric XSD datatypes are now available; see this page of the API documentation for an up-to-date list of all supported and missing XSD datatypes - an implementation of XSD facet system now makes it easy to define own custom datatypes via restriction of the existing XSD datatypes
- โก๏ธ
RDF.Literal.update/2updates the value of aRDF.Literalwithout changing anything else, eg. the language or datatype
๐ Changed
- the
RDF.Literalstruct now consists entirely of a datatype-specific structs in theliteralfield, which besides being more memory-efficient (since literals no longer consist of all possible fields a literal might have), allows pattern matching now on the datatype of literals. - RDF XSD datatypes are now defined in the
RDF.XSDnamespace - alias constructor functions for the XSD datatypes are now defined on
RDF.XSD matches?,less_than?,greater_thanas higher level functions were removed from theRDF.Literal.Datatypemodulesless_than?,greater_than?now always return a boolean and no longernilwhen incomparable; you can still determine if two terms are comparable by checking ifcompare/2returnsnil- ๐ the
languageoption is not supported on theRDF.XSD.String.new/2constructor - the
languageoption onRDF.Literal.new/2is no longer ignored if it's empty (nilor""), so this either produces an invalidRDF.LangStringnow or, if anotherdatatypeis provided will fail with anArgumentError canonicalnow performs implicit coercions when passed plain Elixir values- the inspect format for literals was changed and is now much more informative and uniform, since you now always see the value, the lexical form and if the literal is valid
RDF.Namespace.resolve_term/1now returns ok or error tuples, but a new functionRDF.Namespace.resolve_term!/1with the old behaviour was added- ๐ Elixir versions < 1.8 are no longer supported
๐ Fixed
- numeric operations on invalid numeric literals no longer fail, but return
nilinstead - Datetimes preserve the original lexical form of the timezone when casting from a date
- โ BEAM error warnings when trying to use top-level modules as vocabulary terms
- a lot of new datatypes like
-
v0.7.1 Changes
March 11, 2020โ Added
- โ proper typespecs so that Dialyzer passes without warnings (@rustra)
๐ Fixed
RDF.XSD.Timedidn't handle 24h overflows with an offset correctly
-
v0.7.0 Changes
November 22, 2019โ Added
RDF.Diffdata structure for diffs between RDF graphs and descriptions- โก๏ธ
RDF.Description.update/4updates the objects of a predicate in a description with a custom update function - โก๏ธ
RDF.Graph.update/4updates the descriptions of a subject in a graph with a custom update function RDF.Description.take/2creates a description from another one by limiting its statements to a set of predicatesRDF.Graph.take/3creates a graph from another one by limiting its statements to a set of subjects and optionally also a set of predicates- ๐
RDF.Graph.clear/1removes the triples from a graph - ๐ง Mix formatter configuration for using
defvocabwithout parens
๐ Changed
RDF.Serialization.Writer.write_file/4which is the basis used by all thewrite_file/3andwrite_file!/3functions of all serialization format modules likeRDF.NTriples,RDF.Turtle,JSON.LDetc. now opens file in a different mode: it no longer opens them with the:utf8option. First, this by default slowed down the writing, but more importantly could lead to unexpected encoding issues. This is a breaking change: If your code relied on this file mode, you can get the old behaviour, by specifying thefile_modeon these functions accordingly as[:utf8, :write, :exclusive]. For example, to write a Turtle file with the old behaviour, you can do it like this:
RDF.Turtle.write_file!(some_data, some_path, file_mode: ~w[utf8 write exclusive]a) -
v0.6.2 Changes
September 08, 2019โ Added
- field
base_irionRDF.Graphstructure which can be set via newbase_irioption onRDF.Graph.newor the new functionsRDF.Graph.set_base_iri/2andRDF.Graph.clear_base_iri/1 - ๐
RDF.Graph.clear_metadata/1which clears the base IRI and the prefixes RDF.IRI.coerce_base/1which coerces base IRIs; as opposed toRDF.IRI.new/1it also accepts bareRDF.Vocabulary.Namespacemodules
๐ Changed
RDF.Turtle.Decodersaves the base IRI in theRDF.GraphnowRDF.Turtle.Encodernow takes the base IRI to be used during serialization in
the following order of precedence:- from the
baseoption or its new aliasbase_iri - from the
base_irifield of the given graph - from the
RDF.default_base_irireturning the one from the application configuration
- from the
RDF.PrefixMap.newandRDF.PrefixMap.addnow also accepts terms fromRDF.Vocabulary.Namespaces as namespaces
๐ Fixed
- Vocabulary namespace modules weren't always detected properly
- field
-
v0.6.1 Changes
July 15, 2019โ Added
RDF.IRI.to_string/1returns the string representation of anRDF.IRI
(implicitly resolving vocabulary namespace terms)RDF.Literal.matches?/3for XQuery regex pattern matchingRDF.Decimal.digit_count/1andRDF.Decimal.fraction_digit_count/1for
determining the number of digits of decimal literals
๐ Fixed
- ๐ language literals were not properly unescaped during Turtle parsing
RDF.Literal.new/1can take decimals and infers the datatypexsd:decimalcorrectlytrueandfalsewith capital letters are no longer validRDF.Booleans following the XSD specification; the same applies for booleans in Turtle+INFis no longer a validRDF.Double(positive infinity doesn't expect a sign)- ๐ slightly improve output of errors during parsing of Turtle, N-Triples and N-Quads
-
v0.6.0 Changes
April 06, 2019โฌ๏ธ see here for โฌ๏ธ upgrading notes to RDF.ex 0.6
โ Added
RDF.PrefixMap- prefix management of
RDF.Graphs:- the structure now has a
prefixesfield with an optionalRDF.PrefixMap - new functions
add_prefixes/2,delete_prefixes/2andclear_prefixes/1
- the structure now has a
- ๐ง configurable
RDF.default_prefixes RDF.Description.equal?/2,RDF.Graph.equal?/2,RDF.Dataset.equal?/2andRDF.Data.equal?/2
๐ Changed
- the constructor functions for
RDF.Graphs andRDF.Datasets now take the graph name resp. dataset name through anameoption, instead of the first argument - ๐
RDF.Graph.newsupports an additionalprefixesargument to initialize theprefixesfield - when
RDF.Graph.addandRDF.Graph.putare called with another graph, its prefixes are merged - ๐
RDF.Turtle.Decodersaves the prefixes now - ๐
RDF.Turtle.Encodernow takes the prefixes to be serialized in the following order of precedence:- from the
prefixesoption (as before) - from the
prefixesfield 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
-
v0.5.4 Changes
January 17, 2019๐ Fixed
- issue with Elixir 1.8
RDF.write_fileandRDF.write_file!delegators had wrong signatures
-
v0.5.3 Changes
November 11, 2018โ Added
RDF.Triple.valid?/1,RDF.Quad.valid?/1andRDF.Statement.valid?/1, which validate if a tuple is a valid RDF triple or RDF quad