shex 0.4.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/AUTHORS +1 -1
- data/LICENSE +1 -1
- data/README.md +45 -30
- data/VERSION +1 -1
- data/etc/doap.ttl +15 -14
- data/lib/shex.rb +22 -21
- data/lib/shex/algebra.rb +48 -36
- data/lib/shex/algebra/and.rb +1 -1
- data/lib/shex/algebra/annotation.rb +1 -1
- data/lib/shex/algebra/each_of.rb +1 -1
- data/lib/shex/algebra/language.rb +22 -0
- data/lib/shex/algebra/node_constraint.rb +13 -4
- data/lib/shex/algebra/not.rb +2 -2
- data/lib/shex/algebra/one_of.rb +1 -1
- data/lib/shex/algebra/operator.rb +70 -44
- data/lib/shex/algebra/or.rb +1 -1
- data/lib/shex/algebra/schema.rb +107 -34
- data/lib/shex/algebra/semact.rb +9 -9
- data/lib/shex/algebra/shape.rb +1 -1
- data/lib/shex/algebra/shape_expression.rb +1 -1
- data/lib/shex/algebra/stem.rb +47 -3
- data/lib/shex/algebra/stem_range.rb +71 -3
- data/lib/shex/algebra/triple_constraint.rb +1 -1
- data/lib/shex/algebra/value.rb +1 -1
- data/lib/shex/extensions/extension.rb +2 -2
- data/lib/shex/extensions/test.rb +18 -16
- data/lib/shex/format.rb +110 -0
- data/lib/shex/meta.rb +4282 -2334
- data/lib/shex/parser.rb +242 -86
- data/lib/shex/shex_context.rb +64 -70
- data/lib/shex/terminals.rb +36 -21
- metadata +31 -30
data/lib/shex/shex_context.rb
CHANGED
@@ -1,83 +1,77 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
# frozen_string_literal: true
|
3
|
-
# This file generated automatically from
|
3
|
+
# This file generated automatically from http://www.w3.org/ns/shex.jsonld
|
4
4
|
require 'json/ld'
|
5
5
|
class JSON::LD::Context
|
6
|
-
add_preloaded("
|
7
|
-
new(term_definitions: {
|
8
|
-
"Annotation" => TermDefinition.new("Annotation", id: "http://
|
9
|
-
"EachOf" => TermDefinition.new("EachOf", id: "http://
|
10
|
-
"
|
11
|
-
"
|
12
|
-
"
|
13
|
-
"
|
14
|
-
"
|
15
|
-
"
|
16
|
-
"
|
17
|
-
"
|
18
|
-
"
|
19
|
-
"
|
20
|
-
"
|
21
|
-
"
|
22
|
-
"
|
23
|
-
"
|
24
|
-
"
|
25
|
-
"
|
26
|
-
"
|
27
|
-
"
|
28
|
-
"
|
29
|
-
"annotations" => TermDefinition.new("annotations", id: "http://
|
30
|
-
"bnode" => TermDefinition.new("bnode", id: "http://
|
31
|
-
"closed" => TermDefinition.new("closed", id: "http://
|
32
|
-
"code" => TermDefinition.new("code", id: "http://
|
33
|
-
"datatype" => TermDefinition.new("datatype", id: "http://
|
34
|
-
"
|
35
|
-
"
|
36
|
-
"
|
37
|
-
"
|
38
|
-
"
|
39
|
-
"fractiondigits" => TermDefinition.new("fractiondigits", id: "http://
|
40
|
-
"include" => TermDefinition.new("include", id: "http://shex.io/ns/shex#include", type_mapping: "@id"),
|
41
|
-
"inverse" => TermDefinition.new("inverse", id: "http://shex.io/ns/shex#inverse", type_mapping: "http://www.w3.org/2001/XMLSchema#boolean"),
|
42
|
-
"iri" => TermDefinition.new("iri", id: "http://shex.io/ns/shex#iri", simple: true),
|
6
|
+
add_preloaded("http://www.w3.org/ns/shex.jsonld") do
|
7
|
+
new(processingMode: "json-ld-1.0", term_definitions: {
|
8
|
+
"Annotation" => TermDefinition.new("Annotation", id: "http://www.w3.org/ns/shex#Annotation", simple: true),
|
9
|
+
"EachOf" => TermDefinition.new("EachOf", id: "http://www.w3.org/ns/shex#EachOf", simple: true),
|
10
|
+
"IriStem" => TermDefinition.new("IriStem", id: "http://www.w3.org/ns/shex#IriStem", simple: true),
|
11
|
+
"IriStemRange" => TermDefinition.new("IriStemRange", id: "http://www.w3.org/ns/shex#IriStemRange", simple: true),
|
12
|
+
"LanguageStem" => TermDefinition.new("LanguageStem", id: "http://www.w3.org/ns/shex#LanguageStem", simple: true),
|
13
|
+
"LanguageStemRange" => TermDefinition.new("LanguageStemRange", id: "http://www.w3.org/ns/shex#LanguageStemRange", simple: true),
|
14
|
+
"LiteralStem" => TermDefinition.new("LiteralStem", id: "http://www.w3.org/ns/shex#LiteralStem", simple: true),
|
15
|
+
"LiteralStemRange" => TermDefinition.new("LiteralStemRange", id: "http://www.w3.org/ns/shex#LiteralStemRange", simple: true),
|
16
|
+
"NodeConstraint" => TermDefinition.new("NodeConstraint", id: "http://www.w3.org/ns/shex#NodeConstraint", simple: true),
|
17
|
+
"OneOf" => TermDefinition.new("OneOf", id: "http://www.w3.org/ns/shex#OneOf", simple: true),
|
18
|
+
"Schema" => TermDefinition.new("Schema", id: "http://www.w3.org/ns/shex#Schema", simple: true),
|
19
|
+
"SemAct" => TermDefinition.new("SemAct", id: "http://www.w3.org/ns/shex#SemAct", simple: true),
|
20
|
+
"Shape" => TermDefinition.new("Shape", id: "http://www.w3.org/ns/shex#Shape", simple: true),
|
21
|
+
"ShapeAnd" => TermDefinition.new("ShapeAnd", id: "http://www.w3.org/ns/shex#ShapeAnd", simple: true),
|
22
|
+
"ShapeExternal" => TermDefinition.new("ShapeExternal", id: "http://www.w3.org/ns/shex#ShapeExternal", simple: true),
|
23
|
+
"ShapeNot" => TermDefinition.new("ShapeNot", id: "http://www.w3.org/ns/shex#ShapeNot", simple: true),
|
24
|
+
"ShapeOr" => TermDefinition.new("ShapeOr", id: "http://www.w3.org/ns/shex#ShapeOr", simple: true),
|
25
|
+
"Stem" => TermDefinition.new("Stem", id: "http://www.w3.org/ns/shex#Stem", simple: true),
|
26
|
+
"StemRange" => TermDefinition.new("StemRange", id: "http://www.w3.org/ns/shex#StemRange", simple: true),
|
27
|
+
"TripleConstraint" => TermDefinition.new("TripleConstraint", id: "http://www.w3.org/ns/shex#TripleConstraint", simple: true),
|
28
|
+
"Wildcard" => TermDefinition.new("Wildcard", id: "http://www.w3.org/ns/shex#Wildcard", simple: true),
|
29
|
+
"annotations" => TermDefinition.new("annotations", id: "http://www.w3.org/ns/shex#annotation", type_mapping: "@id", container_mapping: "@list"),
|
30
|
+
"bnode" => TermDefinition.new("bnode", id: "http://www.w3.org/ns/shex#bnode", simple: true),
|
31
|
+
"closed" => TermDefinition.new("closed", id: "http://www.w3.org/ns/shex#closed", type_mapping: "http://www.w3.org/2001/XMLSchema#boolean"),
|
32
|
+
"code" => TermDefinition.new("code", id: "http://www.w3.org/ns/shex#code"),
|
33
|
+
"datatype" => TermDefinition.new("datatype", id: "http://www.w3.org/ns/shex#datatype", type_mapping: "@id"),
|
34
|
+
"exclusions" => TermDefinition.new("exclusions", id: "http://www.w3.org/ns/shex#exclusion", type_mapping: "@id", container_mapping: "@list"),
|
35
|
+
"expression" => TermDefinition.new("expression", id: "http://www.w3.org/ns/shex#expression", type_mapping: "@id"),
|
36
|
+
"expressions" => TermDefinition.new("expressions", id: "http://www.w3.org/ns/shex#expressions", type_mapping: "@id", container_mapping: "@list"),
|
37
|
+
"extra" => TermDefinition.new("extra", id: "http://www.w3.org/ns/shex#extra", type_mapping: "@id"),
|
38
|
+
"flags" => TermDefinition.new("flags", id: "http://www.w3.org/ns/shex#flags"),
|
39
|
+
"fractiondigits" => TermDefinition.new("fractiondigits", id: "http://www.w3.org/ns/shex#fractiondigits", type_mapping: "http://www.w3.org/2001/XMLSchema#integer"),
|
43
40
|
"id" => TermDefinition.new("id", id: "@id", simple: true),
|
41
|
+
"inverse" => TermDefinition.new("inverse", id: "http://www.w3.org/ns/shex#inverse", type_mapping: "http://www.w3.org/2001/XMLSchema#boolean"),
|
42
|
+
"iri" => TermDefinition.new("iri", id: "http://www.w3.org/ns/shex#iri", simple: true),
|
44
43
|
"language" => TermDefinition.new("language", id: "@language", simple: true),
|
45
|
-
"length" => TermDefinition.new("length", id: "http://
|
46
|
-
"literal" => TermDefinition.new("literal", id: "http://
|
47
|
-
"max" => TermDefinition.new("max", id: "http://
|
48
|
-
"maxexclusive" => TermDefinition.new("maxexclusive", id: "http://
|
49
|
-
"maxinclusive" => TermDefinition.new("maxinclusive", id: "http://
|
50
|
-
"maxlength" => TermDefinition.new("maxlength", id: "http://
|
51
|
-
"min" => TermDefinition.new("min", id: "http://
|
52
|
-
"minexclusive" => TermDefinition.new("minexclusive", id: "http://
|
53
|
-
"mininclusive" => TermDefinition.new("mininclusive", id: "http://
|
54
|
-
"minlength" => TermDefinition.new("minlength", id: "http://
|
55
|
-
"name" => TermDefinition.new("name", id: "http://
|
56
|
-
"nodeKind" => TermDefinition.new("nodeKind", id: "http://
|
57
|
-
"nonliteral" => TermDefinition.new("nonliteral", id: "http://
|
58
|
-
"
|
59
|
-
"
|
60
|
-
"
|
61
|
-
"predicate" => TermDefinition.new("predicate", id: "http://shex.io/ns/shex#predicate", type_mapping: "@id"),
|
44
|
+
"length" => TermDefinition.new("length", id: "http://www.w3.org/ns/shex#length", type_mapping: "http://www.w3.org/2001/XMLSchema#integer"),
|
45
|
+
"literal" => TermDefinition.new("literal", id: "http://www.w3.org/ns/shex#literal", simple: true),
|
46
|
+
"max" => TermDefinition.new("max", id: "http://www.w3.org/ns/shex#max", type_mapping: "http://www.w3.org/2001/XMLSchema#integer"),
|
47
|
+
"maxexclusive" => TermDefinition.new("maxexclusive", id: "http://www.w3.org/ns/shex#maxexclusive", type_mapping: "http://www.w3.org/2001/XMLSchema#integer"),
|
48
|
+
"maxinclusive" => TermDefinition.new("maxinclusive", id: "http://www.w3.org/ns/shex#maxinclusive", type_mapping: "http://www.w3.org/2001/XMLSchema#integer"),
|
49
|
+
"maxlength" => TermDefinition.new("maxlength", id: "http://www.w3.org/ns/shex#maxlength", type_mapping: "http://www.w3.org/2001/XMLSchema#integer"),
|
50
|
+
"min" => TermDefinition.new("min", id: "http://www.w3.org/ns/shex#min", type_mapping: "http://www.w3.org/2001/XMLSchema#integer"),
|
51
|
+
"minexclusive" => TermDefinition.new("minexclusive", id: "http://www.w3.org/ns/shex#minexclusive", type_mapping: "http://www.w3.org/2001/XMLSchema#integer"),
|
52
|
+
"mininclusive" => TermDefinition.new("mininclusive", id: "http://www.w3.org/ns/shex#mininclusive", type_mapping: "http://www.w3.org/2001/XMLSchema#integer"),
|
53
|
+
"minlength" => TermDefinition.new("minlength", id: "http://www.w3.org/ns/shex#minlength", type_mapping: "http://www.w3.org/2001/XMLSchema#integer"),
|
54
|
+
"name" => TermDefinition.new("name", id: "http://www.w3.org/ns/shex#name", type_mapping: "@id"),
|
55
|
+
"nodeKind" => TermDefinition.new("nodeKind", id: "http://www.w3.org/ns/shex#nodeKind", type_mapping: "@vocab"),
|
56
|
+
"nonliteral" => TermDefinition.new("nonliteral", id: "http://www.w3.org/ns/shex#nonliteral", simple: true),
|
57
|
+
"object" => TermDefinition.new("object", id: "http://www.w3.org/ns/shex#object", type_mapping: "@id"),
|
58
|
+
"pattern" => TermDefinition.new("pattern", id: "http://www.w3.org/ns/shex#pattern"),
|
59
|
+
"predicate" => TermDefinition.new("predicate", id: "http://www.w3.org/ns/shex#predicate", type_mapping: "@id"),
|
62
60
|
"rdf" => TermDefinition.new("rdf", id: "http://www.w3.org/1999/02/22-rdf-syntax-ns#", simple: true),
|
63
61
|
"rdfs" => TermDefinition.new("rdfs", id: "http://www.w3.org/2000/01/rdf-schema#", simple: true),
|
64
|
-
"
|
65
|
-
"
|
66
|
-
"
|
67
|
-
"
|
68
|
-
"
|
69
|
-
"
|
70
|
-
"
|
71
|
-
"
|
72
|
-
"
|
73
|
-
"stringFacet" => TermDefinition.new("stringFacet", id: "http://shex.io/ns/shex#stringFacet"),
|
74
|
-
"totaldigits" => TermDefinition.new("totaldigits", id: "http://shex.io/ns/shex#totaldigits", type_mapping: "http://www.w3.org/2001/XMLSchema#integer"),
|
62
|
+
"semActs" => TermDefinition.new("semActs", id: "http://www.w3.org/ns/shex#semActs", type_mapping: "@id", container_mapping: "@list"),
|
63
|
+
"shapeExpr" => TermDefinition.new("shapeExpr", id: "http://www.w3.org/ns/shex#shapeExpr", type_mapping: "@id"),
|
64
|
+
"shapeExprs" => TermDefinition.new("shapeExprs", id: "http://www.w3.org/ns/shex#shapeExprs", type_mapping: "@id", container_mapping: "@list"),
|
65
|
+
"shapes" => TermDefinition.new("shapes", id: "http://www.w3.org/ns/shex#shapes", type_mapping: "@id"),
|
66
|
+
"shex" => TermDefinition.new("shex", id: "http://www.w3.org/ns/shex#", simple: true),
|
67
|
+
"start" => TermDefinition.new("start", id: "http://www.w3.org/ns/shex#start", type_mapping: "@id"),
|
68
|
+
"startActs" => TermDefinition.new("startActs", id: "http://www.w3.org/ns/shex#startActs", type_mapping: "@id", container_mapping: "@list"),
|
69
|
+
"stem" => TermDefinition.new("stem", id: "http://www.w3.org/ns/shex#stem", type_mapping: "http://www.w3.org/2001/XMLSchema#string"),
|
70
|
+
"totaldigits" => TermDefinition.new("totaldigits", id: "http://www.w3.org/ns/shex#totaldigits", type_mapping: "http://www.w3.org/2001/XMLSchema#integer"),
|
75
71
|
"type" => TermDefinition.new("type", id: "@type", simple: true),
|
76
|
-
"uri" => TermDefinition.new("uri", id: "@id", simple: true),
|
77
72
|
"value" => TermDefinition.new("value", id: "@value", simple: true),
|
78
|
-
"valueExpr" => TermDefinition.new("valueExpr", id: "http://
|
79
|
-
"values" => TermDefinition.new("values", id: "http://
|
80
|
-
"xsFacet" => TermDefinition.new("xsFacet", id: "http://shex.io/ns/shex#xsFacet"),
|
73
|
+
"valueExpr" => TermDefinition.new("valueExpr", id: "http://www.w3.org/ns/shex#valueExpr", type_mapping: "@id"),
|
74
|
+
"values" => TermDefinition.new("values", id: "http://www.w3.org/ns/shex#values", type_mapping: "@id", container_mapping: "@list"),
|
81
75
|
"xsd" => TermDefinition.new("xsd", id: "http://www.w3.org/2001/XMLSchema#", simple: true)
|
82
76
|
})
|
83
77
|
end
|
data/lib/shex/terminals.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
1
2
|
require 'ebnf/ll1/lexer'
|
2
3
|
|
3
4
|
module ShEx
|
@@ -15,8 +16,10 @@ module ShEx
|
|
15
16
|
U_CHARS2 = Regexp.compile("\\u00B7|[\\u0300-\\u036F]|[\\u203F-\\u2040]").freeze
|
16
17
|
IRI_RANGE = Regexp.compile("[[^<>\"{}|^`\\\\]&&[^\\x00-\\x20]]").freeze
|
17
18
|
|
18
|
-
#
|
19
|
-
|
19
|
+
# 87
|
20
|
+
UCHAR4 = /\\u([0-9A-Fa-f]{4,4})/.freeze
|
21
|
+
UCHAR8 = /\\U([0-9A-Fa-f]{8,8})/.freeze
|
22
|
+
UCHAR = Regexp.union(UCHAR4, UCHAR8).freeze
|
20
23
|
# 171s
|
21
24
|
PERCENT = /%\h\h/.freeze
|
22
25
|
# 173s
|
@@ -42,49 +45,61 @@ module ShEx
|
|
42
45
|
|
43
46
|
WS = /(?:\s|(?:#[^\n\r]*))+/m.freeze
|
44
47
|
|
45
|
-
#
|
48
|
+
# 69
|
46
49
|
RDF_TYPE = /a/.freeze
|
47
50
|
# 18t
|
48
51
|
IRIREF = /<(?:#{IRI_RANGE}|#{UCHAR})*>/.freeze
|
49
|
-
#
|
52
|
+
# 73
|
50
53
|
PNAME_NS = /#{PN_PREFIX}?:/.freeze
|
51
|
-
#
|
54
|
+
# 74
|
52
55
|
PNAME_LN = /#{PNAME_NS}#{PN_LOCAL}/.freeze
|
53
|
-
#
|
56
|
+
# 75
|
54
57
|
ATPNAME_NS = /@#{WS}*#{PN_PREFIX}?:/m.freeze
|
55
|
-
#
|
58
|
+
# 76
|
56
59
|
ATPNAME_LN = /@#{WS}*#{PNAME_NS}#{PN_LOCAL}/m.freeze
|
57
|
-
#
|
60
|
+
# 77
|
58
61
|
BLANK_NODE_LABEL = /_:(?:\d|#{PN_CHARS_U})(?:(?:#{PN_CHARS}|\.)*#{PN_CHARS})?/.freeze
|
59
|
-
#
|
62
|
+
# 78
|
60
63
|
LANGTAG = /@[a-zA-Z]+(?:-[a-zA-Z0-9]+)*/.freeze
|
61
|
-
#
|
64
|
+
# 79
|
62
65
|
INTEGER = /[+-]?\d+/.freeze
|
63
|
-
#
|
66
|
+
# 80
|
64
67
|
DECIMAL = /[+-]?(?:\d*\.\d+)/.freeze
|
65
|
-
#
|
68
|
+
# 81
|
66
69
|
DOUBLE = /[+-]?(?:\d+\.\d*#{EXPONENT}|\.?\d+#{EXPONENT})/.freeze
|
67
|
-
#
|
70
|
+
# 83
|
68
71
|
STRING_LITERAL1 = /'(?:[^\'\\\n\r]|#{ECHAR}|#{UCHAR})*'/.freeze
|
69
|
-
#
|
72
|
+
# 84
|
70
73
|
STRING_LITERAL2 = /"(?:[^\"\\\n\r]|#{ECHAR}|#{UCHAR})*"/.freeze
|
71
|
-
#
|
74
|
+
# 85
|
72
75
|
STRING_LITERAL_LONG1 = /'''(?:(?:'|'')?(?:[^'\\]|#{ECHAR}|#{UCHAR}))*'''/m.freeze
|
73
|
-
#
|
76
|
+
# 86
|
74
77
|
STRING_LITERAL_LONG2 = /"""(?:(?:"|"")?(?:[^"\\]|#{ECHAR}|#{UCHAR}))*"""/m.freeze
|
75
78
|
|
76
|
-
#
|
79
|
+
# 83l
|
80
|
+
LANG_STRING_LITERAL1 = /'(?:[^\'\\\n\r]|#{ECHAR}|#{UCHAR})*'#{LANGTAG}/.freeze
|
81
|
+
# 84l
|
82
|
+
LANG_STRING_LITERAL2 = /"(?:[^\"\\\n\r]|#{ECHAR}|#{UCHAR})*"#{LANGTAG}/.freeze
|
83
|
+
# 85l
|
84
|
+
LANG_STRING_LITERAL_LONG1 = /'''(?:(?:'|'')?(?:[^'\\]|#{ECHAR}|#{UCHAR}))*'''#{LANGTAG}/m.freeze
|
85
|
+
# 86l
|
86
|
+
LANG_STRING_LITERAL_LONG2 = /"""(?:(?:"|"")?(?:[^"\\]|#{ECHAR}|#{UCHAR}))*"""#{LANGTAG}/m.freeze
|
87
|
+
|
88
|
+
# XX
|
89
|
+
REGEXP = %r(/(?:[^/\\\n\r]|\\[nrt\\|.?*+(){}$-\[\]^/]|#{UCHAR})+/[smix]*).freeze
|
90
|
+
|
91
|
+
# 68
|
77
92
|
CODE = /\{(?:[^%\\]|\\[%\\]|#{UCHAR})*%#{WS}*\}/m.freeze
|
78
|
-
#
|
93
|
+
# 70
|
79
94
|
REPEAT_RANGE = /\{\s*#{INTEGER}(?:,#{WS}*(?:#{INTEGER}|\*)?)?#{WS}*\}/.freeze
|
80
95
|
|
81
96
|
# String terminals, mixed case sensitivity
|
82
97
|
STR_EXPR = %r(true|false
|
83
98
|
|\^\^|\/\/
|
84
|
-
|[\(\)\{\}\[\]
|
99
|
+
|[\(\)\{\}\[\],\.;\=\-\~!\|\&\@\$\?\+\*\%\^a]|
|
85
100
|
(?i:OR|AND|NOT
|
86
101
|
|BASE|PREFIX
|
87
|
-
|IRI|BNODE|NONLITERAL
|
102
|
+
|IRI|BNODE|NONLITERAL
|
88
103
|
|MINLENGTH|MAXLENGTH|LENGTH
|
89
104
|
|MAXINCLUSIVE|MAXEXCLUSIVE
|
90
105
|
|MININCLUSIVE|MINEXCLUSIVE
|
@@ -95,7 +110,7 @@ module ShEx
|
|
95
110
|
)x.freeze
|
96
111
|
|
97
112
|
# Map terminals to canonical form
|
98
|
-
STR_MAP = %w{OR AND NOT BASE PREFIX IRI BNODE NONLITERAL
|
113
|
+
STR_MAP = %w{OR AND NOT BASE PREFIX IRI BNODE NONLITERAL
|
99
114
|
MINLENGTH MAXLENGTH LENGTH MININCLUSIVE MAXINCLUSIVE MINEXCLUSIVE MAXEXCLUSIVE
|
100
115
|
TOTALDIGITS FRACTIONDIGITS START EXTERNAL CLOSED EXTRA LITERAL}.
|
101
116
|
inject({}) do |memo, t|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregg Kellogg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdf
|
@@ -16,168 +16,168 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '3.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '3.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: json-ld
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '3.1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '3.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: json-ld-preloaded
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1
|
47
|
+
version: '3.1'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1
|
54
|
+
version: '3.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: ebnf
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '2.0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '2.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: sxp
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '1.
|
75
|
+
version: '1.1'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '1.
|
82
|
+
version: '1.1'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rdf-xsd
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '3.1'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '3.1'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: sparql
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '3.1'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '3.1'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rdf-spec
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
117
|
+
version: '3.1'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
124
|
+
version: '3.1'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rdf-turtle
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
131
|
+
version: '3.1'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
138
|
+
version: '3.1'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rspec
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '3.
|
145
|
+
version: '3.9'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '3.
|
152
|
+
version: '3.9'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: rspec-its
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: '1.
|
159
|
+
version: '1.3'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: '1.
|
166
|
+
version: '1.3'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: yard
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
173
|
+
version: 0.9.20
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
180
|
+
version: 0.9.20
|
181
181
|
description: Implements ShExC and ShEx JSON.
|
182
182
|
email: public-rdf-ruby@w3.org
|
183
183
|
executables: []
|
@@ -196,6 +196,7 @@ files:
|
|
196
196
|
- lib/shex/algebra/annotation.rb
|
197
197
|
- lib/shex/algebra/each_of.rb
|
198
198
|
- lib/shex/algebra/external.rb
|
199
|
+
- lib/shex/algebra/language.rb
|
199
200
|
- lib/shex/algebra/node_constraint.rb
|
200
201
|
- lib/shex/algebra/not.rb
|
201
202
|
- lib/shex/algebra/one_of.rb
|
@@ -213,12 +214,13 @@ files:
|
|
213
214
|
- lib/shex/algebra/value.rb
|
214
215
|
- lib/shex/extensions/extension.rb
|
215
216
|
- lib/shex/extensions/test.rb
|
217
|
+
- lib/shex/format.rb
|
216
218
|
- lib/shex/meta.rb
|
217
219
|
- lib/shex/parser.rb
|
218
220
|
- lib/shex/shex_context.rb
|
219
221
|
- lib/shex/terminals.rb
|
220
222
|
- lib/shex/version.rb
|
221
|
-
homepage:
|
223
|
+
homepage: https://ruby-rdf.github.com/shex
|
222
224
|
licenses:
|
223
225
|
- Unlicense
|
224
226
|
metadata:
|
@@ -231,15 +233,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
231
233
|
requirements:
|
232
234
|
- - ">="
|
233
235
|
- !ruby/object:Gem::Version
|
234
|
-
version: 2.
|
236
|
+
version: '2.4'
|
235
237
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
236
238
|
requirements:
|
237
239
|
- - ">="
|
238
240
|
- !ruby/object:Gem::Version
|
239
241
|
version: '0'
|
240
242
|
requirements: []
|
241
|
-
|
242
|
-
rubygems_version: 2.6.8
|
243
|
+
rubygems_version: 3.1.3
|
243
244
|
signing_key:
|
244
245
|
specification_version: 4
|
245
246
|
summary: Implementation of Shape Expressions (ShEx) for RDF.rb
|