Skip to content

Commit 7bd9064

Browse files
committed
Include shacl and shex gems in CLI formats tried.
1 parent 1e52830 commit 7bd9064

2 files changed

Lines changed: 20 additions & 4 deletions

File tree

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ group :debug do
2525
gem "redcarpet", platforms: :ruby
2626
gem "byebug", platforms: :mri
2727
gem 'guard-rspec'
28-
gem 'awesome_print', github: 'akshaymohite/awesome_print'
2928
end
3029

3130
group :test do

lib/rdf/cli.rb

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,26 @@
88
require 'linkeddata'
99
rescue LoadError
1010
# Silently load without linkeddata, but try some others
11-
%w(microdata ordered_repo n3 rdfa rdfxml reasoner tabular trig trix turtle vocab xsd json/ld ld/patch).each do |ser|
11+
%w(
12+
json/ld
13+
ld/patch
14+
rdf/microdata
15+
rdf/n3
16+
rdf/ordered_repo
17+
rdf/rdfa
18+
rdf/rdfxml
19+
rdf/reasoner
20+
rdf/tabular
21+
rdf/trig
22+
rdf/trix
23+
rdf/turtle
24+
rdf/vocab
25+
rdf/xsd
26+
shacl
27+
shex
28+
).each do |ser|
1229
begin
13-
require ser.include?('/') ? ser : "rdf/#{ser}"
30+
require ser
1431
rescue LoadError
1532
end
1633
end
@@ -457,7 +474,7 @@ def self.usage(options, cmd_opts: {}, banner: nil)
457474
# @param [Array<String>] args
458475
# @param [IO] output
459476
# @param [OptionParser] option_parser
460-
# @param [Hash{Symbol => Hash{Symbol => Array[String]}}] messages used for confeying non primary-output which is structured.
477+
# @param [Hash{Symbol => Hash{Symbol => Array[String]}}] messages used for conveying non primary-output which is structured.
461478
# @param [Hash{Symbol => Object}] options
462479
# @return [Boolean]
463480
def self.exec(args, output: $stdout, option_parser: nil, messages: {}, **options)

0 commit comments

Comments
 (0)