Releases: ruby-rdf/rdf
Releases · ruby-rdf/rdf
Release 3.1.13
- In CLI Reuse prefixes established when reading when serializing.
- Update enabled methods defined for Query::Solution to include
public_methods, andmethod`.- Note overridden instance methods and deprecate their usage.
Release 3.1.12
Normalize existential accessors (e.g. #statement?) to take both 0-ary and 1-ary variations.
#term?#statement?#variable?#graph?
Release 3.1.11
- Favor absolute URIs for term attributes and properties, but allow pnames transitionally.
- Update local vocabularies to use absolute URIs in property values and keys.
- Change
Term#propertiesto use an empty hash with a default_proc which does the magical lookup from attributes. - Add
noDocoption to Vocabulary writer to eliminate the Yard documentation.
Release 3.1.10
- Add
Term#termsandStatement#termswhich returns an array including itself, and array including the non-nil non-statement terms, respectively. - Rename
#has_foo?methods as simply#foo?to go with Ruby style. Old accessors remain as aliases. In some cases (statement?,term?) these were already in use, so now are overloaded.
Release 3.1.9
- Use an RDF::OrderedRepo in CLI if the ordered option is provided and the gem is loaded; otherwise, use an extended Array.
- Include shacl and shex gems in CLI formats tried.
Release 3.1.8
- Update RDF* mode:
- Eliminate PG mode,
rdfstaris not boolean valued. - Change CLI from
--rdf-starto--rdfstar. - Update RDF* spec reference.
- Eliminate PG mode,
- Allow the CLI repository to be set per command. (Required for N3 reasoning).
- Skip some exponentiation tests in JRuby.
- Enable CI on all ruby versions on GitHub Actions.
- Create
RDF.configfor configuring cache sizes. Allows a general size, URI and Node specific cache sizes to be configured at startup time. Fixes #256. - Add
wrap_transactionkeyword parameter toRDF::List#initialize. For #417. - Update faraday and faraday_middleware to ~>1.x.
Release 3.1.7
- Fix decimal and double #round method to round towards positive for negative numbers, as called for in XPath function.
- Update the public domain dedication information to indicate that it applies to all repositories in the organization, and requested on a PR.
- Update
URI#relativizebased on JSON-LDContext#remove_base. This covers more cases where the base URI can be used. - Fix the graph passed to new terms
- It always passed the
RDF::Vocabularyclass instead of the actual vocab
- It always passed the
3.1.6
For RDF::List:
- fix graph used to insert values into a list when not provided.
- use self.class, rather than
RDF::Listto allow it to be more easily subclassed. (for N3)
For RDF::Query:
- In
Query#optimize!partition required from optional patterns so that optional patterns always come last. - Add
Variable#to_baseas an alias of#to_s. - Deprecate
Query::Pattern#variable_names. - Add
#var_valuesandQuery::Pattern#var_valuesto return the appropriate value from a statement (including embedding) associated with that value.
This abstracts pattern matching to allow for embedded statements, and other things that can be used in a pattern (e.g., lists).
For RDF::Literal:
- Update
RDF::Literal::Decimal#round,#floor,#ceilto return integers along withRDF::Literal::Doublevariations. Previously, they returned the same type. - Add
RDF::Literal::Numberic#**andRDF::Literal::Numeric#%based on XPath definitions. - Add native support for Rational to xsd:double. Update
Literal::Numeric#**to use the type of the native result, rather than always double.
Other:
- Fix bug in vocabulary writer with
%()strings.
Release 3.1.5
- Without linkeddata loading, attempt to manually load all other serialization gems.
- Require 'rdf/cli' when used, rather than depend on autoload.
- Set the result encoding of CGI.encode to UTF-8.
- Add --ordered option to CGI to use an extended array instead of a repository to preserve order of triples.
- Use RDF::URI.parse instead of ::URI.parse when using NetHttpAdapter.
Release 3.1.4
- Explicitly require 'strscan' in ntriples/reader.
- Set log_statistics after level has been assigned.
- Use CGI.unescape instead of the deprecated URI.decode. Fixes #416.