Skip to content

Commit 3b8d680

Browse files
committed
Finish 0.5.0
2 parents ead66e2 + ca38b84 commit 3b8d680

38 files changed

+44405
-24673
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "spec/shexTest"]
22
path = spec/shexTest
3-
url = https://github.com/shexSpec/shexTest
3+
url = git@github.com:shexSpec/shexTest.git

Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ group :development, :test do
1010
gem 'ebnf', github: "gkellogg/ebnf", branch: "develop"
1111
gem 'linkeddata', github: "ruby-rdf/linkeddata", branch: "develop"
1212
gem 'sxp', github: "dryruby/sxp.rb", branch: "develop"
13-
#gem 'simplecov', require: false
14-
gem 'simplecov', github: 'colszowka/simplecov'
13+
gem 'simplecov', require: false
1514
gem 'coveralls', require: false
1615
gem 'earl-report'
1716
end

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The ShEx gem implements a [ShEx][ShExSpec] Shape Expression engine.
3838
(doap:name;doap:description|dc:title;dc:description)+;
3939
doap:category*;
4040
doap:developer IRI;
41-
doap:implements [<https://shexspec.github.io/spec/>]
41+
doap:implements [<http://shex.io/shex-semantics/>]
4242
}
4343
)
4444
graph = RDF::Graph.load("etc/doap.ttl")
@@ -109,26 +109,26 @@ The ShEx gem implements a [ShEx][ShExSpec] Shape Expression engine.
109109
]
110110
}
111111
],
112-
"min": 1, "max": "*"
112+
"min": 1, "max": -1
113113
},
114114
{
115115
"type": "TripleConstraint",
116116
"predicate": "http://usefulinc.com/ns/doap#category",
117117
"valueExpr": {"type": "NodeConstraint", "nodeKind": "iri"},
118-
"min": 0, "max": "*"
118+
"min": 0, "max": -1
119119
},
120120
{
121121
"type": "TripleConstraint",
122122
"predicate": "http://usefulinc.com/ns/doap#developer",
123123
"valueExpr": {"type": "NodeConstraint", "nodeKind": "iri"},
124-
"min": 1, "max": "*"
124+
"min": 1, "max": -1
125125
},
126126
{
127127
"type": "TripleConstraint",
128128
"predicate": "http://usefulinc.com/ns/doap#implements",
129129
"valueExpr": {
130130
"type": "NodeConstraint",
131-
"values": ["https://shexspec.github.io/spec/"]
131+
"values": ["http://shex.io/shex-semantics/"]
132132
}
133133
}
134134
]
@@ -143,7 +143,7 @@ The ShEx gem implements a [ShEx][ShExSpec] Shape Expression engine.
143143
# => true
144144

145145
## Extensions
146-
ShEx has an extension mechanism using [Semantic Actions](https://shexspec.github.io/spec/#semantic-actions). Extensions may be implemented in Ruby ShEx by sub-classing {ShEx::Extension} and implementing {ShEx::Extension#visit} and possibly {ShEx::Extension#initialize}, {ShEx::Extension#enter}, {ShEx::Extension#exit}, and {ShEx::Extension#close}. The `#visit` method will be called as part of the `#satisfies?` operation.
146+
ShEx has an extension mechanism using [Semantic Actions](http://shex.io/shex-semantics/#semantic-actions). Extensions may be implemented in Ruby ShEx by sub-classing {ShEx::Extension} and implementing {ShEx::Extension#visit} and possibly {ShEx::Extension#initialize}, {ShEx::Extension#enter}, {ShEx::Extension#exit}, and {ShEx::Extension#close}. The `#visit` method will be called as part of the `#satisfies?` operation.
147147

148148
require 'shex'
149149
class ShEx::Test < ShEx::Extension("http://shex.io/extensions/Test/")
@@ -179,7 +179,7 @@ The result of parsing either ShExC or ShExJ is the creation of a set of executab
179179
## Dependencies
180180

181181
* [Ruby](http://ruby-lang.org/) (>= 2.2.2)
182-
* [RDF.rb](http://rubygems.org/gems/rdf) (>= 2.2)
182+
* [RDF.rb](http://rubygems.org/gems/rdf) (~> 2.2)
183183

184184
## Installation
185185

@@ -237,7 +237,7 @@ This repository uses [Git Flow](https://github.com/nvie/gitflow) to mange develo
237237
This is free and unencumbered public domain software. For more information,
238238
see <http://unlicense.org/> or the accompanying {file:LICENSE} file.
239239

240-
[ShExSpec]: https://shexspec.github.io/spec/
240+
[ShExSpec]: http://shex.io/shex-semantics/
241241
[RDF]: http://www.w3.org/RDF/
242242
[RDF.rb]: http://rubydoc.info/github/ruby-rdf/rdf
243243
[EBNF]: http://rubygems.org/gems/ebnf

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ task context: "lib/shex/shex_context.rb"
6565
file "lib/shex/shex_context.rb" do
6666
require 'json/ld'
6767
File.open("lib/shex/shex_context.rb", "w") do |f|
68-
c = JSON::LD::Context.new().parse("https://shexspec.github.io/context.jsonld")
68+
c = JSON::LD::Context.new().parse("http://www.w3.org/ns/shex.jsonld")
6969
f.write c.to_rb
7070
end
7171
end

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.4.0
1+
0.5.0

etc/doap.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"@context": "https://shexspec.github.io/context.jsonld",
2+
"@context": "http://www.w3.org/ns/shex.jsonld",
33
"type": "Schema",
44
"shapes": [
55
{
@@ -70,7 +70,7 @@
7070
}
7171
],
7272
"min": 1,
73-
"max": "*"
73+
"max": -1
7474
},
7575
{
7676
"type": "TripleConstraint",
@@ -80,7 +80,7 @@
8080
"nodeKind": "iri"
8181
},
8282
"min": 0,
83-
"max": "*"
83+
"max": -1
8484
},
8585
{
8686
"type": "TripleConstraint",
@@ -90,7 +90,7 @@
9090
"nodeKind": "iri"
9191
},
9292
"min": 1,
93-
"max": "*"
93+
"max": -1
9494
},
9595
{
9696
"type": "TripleConstraint",
@@ -99,7 +99,7 @@
9999
"type": "NodeConstraint",
100100
"values": [
101101
{
102-
"uri": "https://shexspec.github.io/spec/"
102+
"uri": "http://shex.io/shex-semantics/"
103103
}
104104
]
105105
}

etc/doap.shex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ PREFIX dc: <http://purl.org/dc/terms/>
1616
doap:developer IRI+;
1717

1818
# For our purposes, it MUST implement the ShEx specification.
19-
doap:implements [<https://shexspec.github.io/spec/>]
19+
doap:implements [<http://shex.io/shex-semantics/>]
2020
}

etc/doap.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
doap:description "ShEx is an Shape Expression engine for the RDF.rb library suite."@en ;
1616
doap:created "2016-12-09"^^xsd:date ;
1717
doap:programming-language "Ruby" ;
18-
doap:implements <https://shexspec.github.io/spec/> ;
18+
doap:implements <http://shex.io/shex-semantics/> ;
1919
doap:category <http://dbpedia.org/resource/Resource_Description_Framework>,
2020
<http://dbpedia.org/resource/Ruby_(programming_language)> ;
2121
doap:download-page <http://rubygems.org/gems/shex> ;

0 commit comments

Comments
 (0)