Skip to content

Commit

Permalink
Update IRI for ShEx spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Mar 28, 2017
1 parent 8e1f387 commit de902b1
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 [<https://shexspec.github.io/spec/>]
doap:implements [<http://shex.io/shex-semantics/>]
}
)
graph = RDF::Graph.load("etc/doap.ttl")
Expand Down Expand Up @@ -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/"]
}
}
]
Expand All @@ -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/")
Expand Down Expand Up @@ -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 <http://unlicense.org/> 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
2 changes: 1 addition & 1 deletion etc/doap.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"type": "NodeConstraint",
"values": [
{
"uri": "https://shexspec.github.io/spec/"
"uri": "http://shex.io/shex-semantics/"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion etc/doap.shex
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ PREFIX dc: <http://purl.org/dc/terms/>
doap:developer IRI+;

# For our purposes, it MUST implement the ShEx specification.
doap:implements [<https://shexspec.github.io/spec/>]
doap:implements [<http://shex.io/shex-semantics/>]
}
2 changes: 1 addition & 1 deletion etc/doap.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://shexspec.github.io/spec/> ;
doap:implements <http://shex.io/shex-semantics/> ;
doap:category <http://dbpedia.org/resource/Resource_Description_Framework>,
<http://dbpedia.org/resource/Ruby_(programming_language)> ;
doap:download-page <http://rubygems.org/gems/shex> ;
Expand Down
2 changes: 1 addition & 1 deletion etc/earl.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h2>
</h2>
<p>
This document reports conformance for for
<a href='https://shexspec.github.io/spec/' property='doap:name'>Shape Expressions Language</a>
<a href='http://shex.io/shex-semantics/' property='doap:name'>Shape Expressions Language</a>
</p>
<dl>
<dt id='subj_0'>
Expand Down
2 changes: 1 addition & 1 deletion etc/earl.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://shexspec.github.io/spec/> ;
doap:implements <http://shex.io/shex-semantics/> ;
doap:category <http://dbpedia.org/resource/Resource_Description_Framework>,
<http://dbpedia.org/resource/Ruby_(programming_language)> ;
doap:download-page <http://rubygems.org/gems/shex> ;
Expand Down
2 changes: 1 addition & 1 deletion etc/template.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
2 changes: 1 addition & 1 deletion lib/shex.rb
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion lib/shex/algebra/not.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/shex/algebra/shape_expression.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/shex/extensions/extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion spec/shex_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
(nodeConstraint iri)
(min 1) (max "*"))
(tripleConstraint (predicate <http://usefulinc.com/ns/doap#implements>)
(nodeConstraint (value <https://shexspec.github.io/spec/>))) ))))}.gsub(/^ /m, '')
(nodeConstraint (value <http://shex.io/shex-semantics/>))) ))))}.gsub(/^ /m, '')
}

it "parses doap.shex" do
Expand Down

0 comments on commit de902b1

Please sign in to comment.