From de902b1546a3e0b418a91e62299d26ec58128be4 Mon Sep 17 00:00:00 2001 From: Gregg Kellogg Date: Tue, 28 Mar 2017 00:59:26 -0700 Subject: [PATCH] Update IRI for ShEx spec. --- README.md | 8 ++++---- etc/doap.json | 2 +- etc/doap.shex | 2 +- etc/doap.ttl | 2 +- etc/earl.html | 2 +- etc/earl.ttl | 2 +- etc/template.haml | 2 +- lib/shex.rb | 2 +- lib/shex/algebra/not.rb | 2 +- lib/shex/algebra/shape_expression.rb | 2 +- lib/shex/extensions/extension.rb | 4 ++-- spec/shex_spec.rb | 2 +- 12 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 1793b4d..9576e23 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ The ShEx gem implements a [ShEx][ShExSpec] Shape Expression engine. (doap:name;doap:description|dc:title;dc:description)+; doap:category*; doap:developer IRI; - doap:implements [] + doap:implements [] } ) graph = RDF::Graph.load("etc/doap.ttl") @@ -128,7 +128,7 @@ The ShEx gem implements a [ShEx][ShExSpec] Shape Expression engine. "predicate": "http://usefulinc.com/ns/doap#implements", "valueExpr": { "type": "NodeConstraint", - "values": ["https://shexspec.github.io/spec/"] + "values": ["http://shex.io/shex-semantics/"] } } ] @@ -143,7 +143,7 @@ The ShEx gem implements a [ShEx][ShExSpec] Shape Expression engine. # => true ## Extensions -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. +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. require 'shex' class ShEx::Test < ShEx::Extension("http://shex.io/extensions/Test/") @@ -237,7 +237,7 @@ This repository uses [Git Flow](https://github.com/nvie/gitflow) to mange develo This is free and unencumbered public domain software. For more information, see or the accompanying {file:LICENSE} file. -[ShExSpec]: https://shexspec.github.io/spec/ +[ShExSpec]: http://shex.io/shex-semantics/ [RDF]: http://www.w3.org/RDF/ [RDF.rb]: http://rubydoc.info/github/ruby-rdf/rdf [EBNF]: http://rubygems.org/gems/ebnf diff --git a/etc/doap.json b/etc/doap.json index 0e32660..f3f0e50 100644 --- a/etc/doap.json +++ b/etc/doap.json @@ -99,7 +99,7 @@ "type": "NodeConstraint", "values": [ { - "uri": "https://shexspec.github.io/spec/" + "uri": "http://shex.io/shex-semantics/" } ] } diff --git a/etc/doap.shex b/etc/doap.shex index 709cf52..4d88830 100644 --- a/etc/doap.shex +++ b/etc/doap.shex @@ -16,5 +16,5 @@ PREFIX dc: doap:developer IRI+; # For our purposes, it MUST implement the ShEx specification. - doap:implements [] + doap:implements [] } \ No newline at end of file diff --git a/etc/doap.ttl b/etc/doap.ttl index 019d131..5b1beac 100644 --- a/etc/doap.ttl +++ b/etc/doap.ttl @@ -15,7 +15,7 @@ doap:description "ShEx is an Shape Expression engine for the RDF.rb library suite."@en ; doap:created "2016-12-09"^^xsd:date ; doap:programming-language "Ruby" ; - doap:implements ; + doap:implements ; doap:category , ; doap:download-page ; diff --git a/etc/earl.html b/etc/earl.html index 1d6d481..deaa080 100644 --- a/etc/earl.html +++ b/etc/earl.html @@ -65,7 +65,7 @@

This document reports conformance for for - Shape Expressions Language + Shape Expressions Language

diff --git a/etc/earl.ttl b/etc/earl.ttl index a9f4386..d817368 100644 --- a/etc/earl.ttl +++ b/etc/earl.ttl @@ -15,7 +15,7 @@ doap:description "ShEx is an Shape Expression engine for the RDF.rb library suite."@en ; doap:created "2016-12-09"^^xsd:date ; doap:programming-language "Ruby" ; - doap:implements ; + doap:implements ; doap:category , ; doap:download-page ; diff --git a/etc/template.haml b/etc/template.haml index a3ed1b0..f14b462 100644 --- a/etc/template.haml +++ b/etc/template.haml @@ -67,7 +67,7 @@ Ruby ShEx gem test results %p This document reports conformance for for - %a{property: "doap:name", href: "https://shexspec.github.io/spec/"}="Shape Expressions Language" + %a{property: "doap:name", href: "http://shex.io/shex-semantics/"}="Shape Expressions Language" %dl - subjects.each_with_index do |subject, index| - subject_refs[subject['@id']] = "subj_#{index}" diff --git a/lib/shex.rb b/lib/shex.rb index 52adc31..fc0f712 100644 --- a/lib/shex.rb +++ b/lib/shex.rb @@ -1,7 +1,7 @@ ## # A ShEx runtime for RDF.rb. # -# @see https://shexspec.github.io/spec/#shexc +# @see http://shex.io/shex-semantics/#shexc module ShEx autoload :Algebra, 'shex/algebra' autoload :Meta, 'shex/meta' diff --git a/lib/shex/algebra/not.rb b/lib/shex/algebra/not.rb index 48336eb..c20b585 100644 --- a/lib/shex/algebra/not.rb +++ b/lib/shex/algebra/not.rb @@ -19,7 +19,7 @@ def self.from_shexj(operator, options = {}) # @param (see ShapeExpression#satisfies?) # @return (see ShapeExpression#satisfies?) # @raise (see ShapeExpression#satisfies?) - # @see [https://shexspec.github.io/spec/#shape-expression-semantics] + # @see [http://shex.io/shex-semantics/#shape-expression-semantics] def satisfies?(focus, depth: 0) status "" op = expressions.last diff --git a/lib/shex/algebra/shape_expression.rb b/lib/shex/algebra/shape_expression.rb index 28828c7..be6211d 100644 --- a/lib/shex/algebra/shape_expression.rb +++ b/lib/shex/algebra/shape_expression.rb @@ -11,7 +11,7 @@ module ShapeExpression # Other, operand-specific options # @return [ShapeExpression] with `matched` and `satisfied` accessors for matched triples and sub-expressions # @raise [ShEx::NotMatched] with `expression` accessor to access `matched` and `unmatched` statements along with `satisfied` and `unsatisfied` operations. - # @see [https://shexspec.github.io/spec/#shape-expression-semantics] + # @see [http://shex.io/shex-semantics/#shape-expression-semantics] def satisfies?(focus, depth: 0, **options) raise NotImplementedError, "#satisfies? Not implemented in #{self.class}" end diff --git a/lib/shex/extensions/extension.rb b/lib/shex/extensions/extension.rb index d5b3caf..26b5e47 100644 --- a/lib/shex/extensions/extension.rb +++ b/lib/shex/extensions/extension.rb @@ -2,7 +2,7 @@ require 'sparql/algebra' ## -# Abstract class of ShEx [Extension](https://shexspec.github.io/spec/#semantic-actions) extensions. +# Abstract class of ShEx [Extension](http://shex.io/shex-semantics/#semantic-actions) extensions. # # Extensions are registered automatically when they are required by subclassing this class. # @@ -33,7 +33,7 @@ # # Subclasses **must** define at least `visit`. # -# @see https://shexspec.github.io/spec/#semantic-actions +# @see http://shex.io/shex-semantics/#semantic-actions class ShEx::Extension extend ::Enumerable diff --git a/spec/shex_spec.rb b/spec/shex_spec.rb index 0338df6..ccf8903 100644 --- a/spec/shex_spec.rb +++ b/spec/shex_spec.rb @@ -75,7 +75,7 @@ (nodeConstraint iri) (min 1) (max "*")) (tripleConstraint (predicate ) - (nodeConstraint (value ))) ))))}.gsub(/^ /m, '') + (nodeConstraint (value ))) ))))}.gsub(/^ /m, '') } it "parses doap.shex" do