Skip to content

Commit

Permalink
Finish 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Sep 1, 2023
2 parents 759bc39 + 65b04f2 commit 8c4a94b
Show file tree
Hide file tree
Showing 15 changed files with 251 additions and 131 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [2.7, '3.0', 3.1, 3.2, 3.2, ruby-head, jruby]
ruby: ['3.0', 3.1, 3.2, ruby-head, jruby]
steps:
- name: Clone repository
uses: actions/checkout@v3
Expand All @@ -33,6 +33,6 @@ jobs:
run: ruby --version; bundle exec rspec spec || $ALLOW_FAILURES
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@master
if: "matrix.ruby == '3.0'"
if: "matrix.ruby == '3.2'"
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
11 changes: 7 additions & 4 deletions Gemfile
Expand Up @@ -5,17 +5,20 @@ gemspec
gem "rdf", github: "ruby-rdf/rdf", branch: "develop"

group :development, :test do
gem 'json-ld', github: "ruby-rdf/json-ld", branch: "develop"
gem 'json-ld', github: "ruby-rdf/json-ld", branch: "develop"
gem 'rdf-isomorphic', github: "ruby-rdf/rdf-isomorphic", branch: "develop"
gem 'rdf-trig', github: "ruby-rdf/rdf-trig", branch: "develop"
gem 'rdf-spec', github: "ruby-rdf/rdf-spec", branch: "develop"
gem 'rdf-spec', github: "ruby-rdf/rdf-spec", branch: "develop"
gem 'rdf-trig', github: "ruby-rdf/rdf-trig", branch: "develop"
gem 'rdf-turtle', github: "ruby-rdf/rdf-turtle", branch: "develop"
gem "ebnf", github: "dryruby/ebnf", branch: "develop"
gem "sxp", github: "dryruby/sxp", branch: "develop"
end

group :debug do
gem "byebug", platforms: :mri
end

group :test do
gem 'simplecov', '~> 0.21', platforms: :mri
gem 'simplecov', '~> 0.22', platforms: :mri
gem 'simplecov-lcov', '~> 0.8', platforms: :mri
end
17 changes: 13 additions & 4 deletions README.md
Expand Up @@ -22,7 +22,7 @@ Algorithms implemented:
Install with `gem install rdf-normalize`

* 100% free and unencumbered [public domain](https://unlicense.org/) software.
* Compatible with Ruby >= 2.6.
* Compatible with Ruby >= 3.0.

## Usage

Expand All @@ -37,7 +37,14 @@ Full documentation available on [GitHub][Normalize doc]
require 'rdf/normalize'
require 'rdf/turtle'
g = RDF::Graph.load("etc/doap.ttl")
puts g.dump(:normalize)
puts g.dump(:normalize) # Can also use :canonicalize

### Normalizing an abstract Graph/Dataset
require 'rdf/normalize'
require 'rdf/turtle'
g = RDF::Graph.load("etc/doap.ttl")
g_canon = g.canonicalize # graph with URIs, literals, and blank nodes canonicalized.
puts g_canon.dump(:nquads) # Normalized, but not sorted

### Principle Classes
* {RDF::Normalize}
Expand All @@ -46,11 +53,13 @@ Full documentation available on [GitHub][Normalize doc]
* {RDF::Normalize::Writer}
* {RDF::Normalize::URGNA2012}
* {RDF::Normalize::RDFC10}
* {RDF::Canonicalize} – extends {RDF::Normalize}
* {RDF::Canonicalize::Format}

## Dependencies

* [Ruby](https://ruby-lang.org/) (>= 2.6)
* [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.2)
* [Ruby](https://ruby-lang.org/) (>= 3.0)
* [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.3)

## Installation

Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
0.6.1
0.7.0

0 comments on commit 8c4a94b

Please sign in to comment.