Skip to content

Releases: ruby-rdf/rdf

Release 3.1.13

06 Mar 20:59

Choose a tag to compare

  • In CLI Reuse prefixes established when reading when serializing.
  • Update enabled methods defined for Query::Solution to include public_methods, and method`.
    • Note overridden instance methods and deprecate their usage.

Release 3.1.12

16 Feb 22:43

Choose a tag to compare

Normalize existential accessors (e.g. #statement?) to take both 0-ary and 1-ary variations.

  • #term?
  • #statement?
  • #variable?
  • #graph?

Release 3.1.11

16 Feb 00:38

Choose a tag to compare

  • 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#properties to use an empty hash with a default_proc which does the magical lookup from attributes.
  • Add noDoc option to Vocabulary writer to eliminate the Yard documentation.

Release 3.1.10

02 Feb 21:45

Choose a tag to compare

  • Add Term#terms and Statement#terms which 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

04 Jan 01:20

Choose a tag to compare

  • 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

25 Dec 20:49

Choose a tag to compare

  • Update RDF* mode:
    • Eliminate PG mode, rdfstar is not boolean valued.
    • Change CLI from --rdf-star to --rdfstar.
    • Update RDF* spec reference.
  • 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.config for configuring cache sizes. Allows a general size, URI and Node specific cache sizes to be configured at startup time. Fixes #256.
  • Add wrap_transaction keyword parameter to RDF::List#initialize. For #417.
  • Update faraday and faraday_middleware to ~>1.x.

Release 3.1.7

16 Nov 00:00

Choose a tag to compare

  • 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#relativize based on JSON-LD Context#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::Vocabulary class instead of the actual vocab

3.1.6

05 Sep 00:22

Choose a tag to compare

For RDF::List:

  • fix graph used to insert values into a list when not provided.
  • use self.class, rather than RDF::List to 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_base as an alias of #to_s.
  • Deprecate Query::Pattern#variable_names.
  • Add #var_values and Query::Pattern#var_values to 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, #ceil to return integers along with RDF::Literal::Double variations. Previously, they returned the same type.
  • Add RDF::Literal::Numberic#** and RDF::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

06 Aug 19:26

Choose a tag to compare

  • 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

01 Jul 17:50

Choose a tag to compare

  • 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.