Skip to content

Commit

Permalink
Release 1.1.9:
Browse files Browse the repository at this point in the history
* Until rest-client-components is updated, limit rest-client to < 1.8
* Exclude anything including the CSVW namespace context from matching in `Format.detect` so that JSON-LD doesn't greedily process something that CSVW should.
* Use the jsonlint gem (if installed) to check for validation errors. Reader always turns JsonLdError exceptions into RDF::ReaderError.
* Make API consistently return either result of yield, or the result. This allows a better flow when blocks are used and the results come from the evaluated block.
* Update flatten and frame algorithms based on pyLd implementation.
* Remove deprecated `#write_graph` method.
  • Loading branch information
gkellogg committed Aug 6, 2015
2 parents 6bbd621 + 5770026 commit 51b91e7
Show file tree
Hide file tree
Showing 23 changed files with 636 additions and 570 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ rvm:
- 2.1
- 2.2
- jruby
- rbx-2
cache: bundler
sudo: false
matrix:
allow_failures:
- rvm: 2.2
- rvm: 2.2
- rbx-2

7 changes: 7 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,19 @@ source "https://rubygems.org"
gemspec
gem 'rdf', git: "git://github.com/ruby-rdf/rdf.git", branch: "develop"
gem 'rdf-spec', git: "git://github.com/ruby-rdf/rdf-spec.git", branch: "develop"
gem 'jsonlint', git: "git://github.com/dougbarth/jsonlint.git", platforms: [:rbx, :mri]

group :development do
gem 'rdf-turtle', git: "git://github.com/ruby-rdf/rdf-turtle.git", branch: "develop"
gem 'rdf-trig', git: "git://github.com/ruby-rdf/rdf-trig.git", branch: "develop"
end

group :development, :test do
gem 'simplecov', require: false
gem 'coveralls', require: false
gem 'psych', :platforms => [:mri, :rbx]
end

group :debug do
gem "wirble"
gem "linkeddata"
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@

[![Gem Version](https://badge.fury.io/rb/json-ld.png)](http://badge.fury.io/rb/json-ld)
[![Build Status](https://secure.travis-ci.org/ruby-rdf/json-ld.png?branch=master)](http://travis-ci.org/ruby-rdf/json-ld)
[![Coverage Status](https://coveralls.io/repos/ruby-rdf/json-ld/badge.svg)](https://coveralls.io/r/ruby-rdf/json-ld)

## Features

JSON::LD parses and serializes [JSON-LD][] into [RDF][] and implements expansion, compaction and framing API interfaces.

JSON::LD can now be used to create a _context_ from an RDFS/OWL definition, and optionally include a JSON-LD representation of the ontology itself. This is currently accessed through the `script/gen_context` script.

If the [jsonlint][] gem is installed, it will be used when validating an input document.

Install with `gem install json-ld`

### JSON-LD Streaming Profile
Expand Down Expand Up @@ -301,3 +304,4 @@ see <http://unlicense.org/> or the accompanying {file:UNLICENSE} file.
[JSON-LD API]: http://www.w3.org/TR/json-ld-api/ "JSON-LD 1.0 Processing Algorithms and API"
[JSON-LD Framing]: http://json-ld.org/spec/latest/json-ld-framing/ "JSON-LD Framing 1.0"
[Promises]: http://dom.spec.whatwg.org/#promises
[jsonlint]: https://rubygems.org/gems/jsonlint
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.8
1.1.9
15 changes: 8 additions & 7 deletions json-ld.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,18 @@ Gem::Specification.new do |gem|
gem.required_ruby_version = '>= 1.9.2'
gem.requirements = []
gem.add_runtime_dependency 'rdf', '~> 1.1', '>= 1.1.7'
gem.add_development_dependency 'yard' , '~> 0.8'
gem.add_development_dependency 'jsonlint', '~> 0.1.0' unless RUBY_ENGINE == "jruby"
gem.add_development_dependency "rack-cache", '~> 1.2'
gem.add_development_dependency "rest-client", '~> 1.7'
gem.add_development_dependency "rest-client-components", '~> 1.3'
gem.add_development_dependency 'rspec', '~> 3.0'
gem.add_development_dependency 'rspec-its', '~> 1.0'
gem.add_development_dependency "rest-client", '~> 1.8'
gem.add_development_dependency "rest-client-components", '~> 1.4'
gem.add_development_dependency 'rdf-isomorphic', '~> 1.1'
gem.add_development_dependency 'rdf-spec', '~> 1.1'
gem.add_development_dependency 'rdf-turtle', '~> 1.1'
gem.add_development_dependency 'rdf-trig', '~> 1.1'
gem.add_development_dependency 'rdf-isomorphic', '~> 1.1'
gem.add_development_dependency 'rdf-turtle', '~> 1.1'
gem.add_development_dependency 'rdf-xsd', '~> 1.1'
gem.add_development_dependency 'rspec', '~> 3.0'
gem.add_development_dependency 'rspec-its', '~> 1.0'
gem.add_development_dependency 'yard' , '~> 0.8'

gem.post_install_message = nil
end

0 comments on commit 51b91e7

Please sign in to comment.