Skip to content

Commit a519993

Browse files
committed
Updates for http-rdf-update and protocol manifest generation.
Does not currently integrate back-links to tests. * Don't automatically add Content-Type on POSTs if not explicitly provided. * Validate and lint HTML/RDFa output. * Extract information from protocol_validator.cgi in to Ruby script used to generate manifest variations. * Uses HTTP and CNT ontologies to encode server interactions.
1 parent 265c5f8 commit a519993

File tree

18 files changed

+10709
-3497
lines changed

18 files changed

+10709
-3497
lines changed

.github/workflows/generate.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ jobs:
2121
- name: Install dependencies
2222
run: bundle install
2323
- name: Generate Test Manifests
24-
run: bundle exec rake
24+
run: |
25+
bundle exec rake
26+
(cd sparql/sparql11/protocol; bundle exec rake)
27+
(cd sparql/sparql11/http-rdf-update; bundle exec rake)
2528
- uses: stefanzweifel/git-auto-commit-action@v5
2629
with:
2730
commit_message: Automated manifest generation

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ ruby "3.4.3"
44
gem 'rake'
55
gem 'json-ld'
66
gem 'rdf-turtle'
7+
gem 'rdf-reasoner'
8+
gem 'rdf-rdfa'
79
gem 'haml', '~> 6.3'
810
gem 'htmlbeautifier', '~> 1.4'
911
gem 'kramdown', '~> 2.5'
1012
gem 'logger', '~> 1.7'
1113
gem 'ostruct', '~> 0.6'
1214
gem 'nokogiri', '~> 1.18'
1315
gem 'pathname', '~> 0.4'
16+
gem 'getoptlong'

Gemfile.lock

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ GEM
1111
scanf (~> 1.0)
1212
sxp (~> 2.0)
1313
unicode-types (~> 1.8)
14+
getoptlong (0.2.1)
1415
haml (6.3.0)
1516
temple (>= 0.8.2)
1617
thor
@@ -45,11 +46,28 @@ GEM
4546
bcp47_spec (~> 0.2)
4647
bigdecimal (~> 3.1, >= 3.1.5)
4748
link_header (~> 0.0, >= 0.0.8)
49+
rdf-aggregate-repo (3.3.0)
50+
rdf (~> 3.3)
51+
rdf-rdfa (3.3.0)
52+
haml (~> 6.1)
53+
htmlentities (~> 4.3)
54+
rdf (~> 3.3)
55+
rdf-aggregate-repo (~> 3.3)
56+
rdf-vocab (~> 3.3)
57+
rdf-xsd (~> 3.3)
58+
rdf-reasoner (0.9.0)
59+
rdf (~> 3.3)
60+
rdf-xsd (~> 3.3)
4861
rdf-turtle (3.3.1)
4962
base64 (~> 0.2)
5063
bigdecimal (~> 3.1, >= 3.1.5)
5164
ebnf (~> 2.5)
5265
rdf (~> 3.3)
66+
rdf-vocab (3.3.2)
67+
rdf (~> 3.3)
68+
rdf-xsd (3.3.0)
69+
rdf (~> 3.3)
70+
rexml (~> 3.2)
5371
rexml (3.4.1)
5472
scanf (1.0.0)
5573
sxp (2.0.0)
@@ -66,6 +84,7 @@ PLATFORMS
6684
x86_64-linux
6785

6886
DEPENDENCIES
87+
getoptlong
6988
haml (~> 6.3)
7089
htmlbeautifier (~> 1.4)
7190
json-ld
@@ -75,6 +94,8 @@ DEPENDENCIES
7594
ostruct (~> 0.6)
7695
pathname (~> 0.4)
7796
rake
97+
rdf-rdfa
98+
rdf-reasoner
7899
rdf-turtle
79100

80101
RUBY VERSION

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require 'pathname'
99

1010
task default: :index
1111

12-
MANIFESTS = Dir.glob("**/manifest*.ttl").reject {|f| f.include?('-az')}
12+
MANIFESTS = Dir.glob("**/manifest*.ttl").reject {|f| f.include?('-az') || f.include?('protocol') || f.include?('http-rdf-update')}
1313

1414
SPECS = {
1515
"rdf-concepts/spec/index.html" => "FIXME",

rdf/rdf11/rdf-trig/reports/template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211

212212
<http://rubygems.org/gems/rdf-trig> a doap:Project, earl:TestSubject, earl:Software ;
213213
doap:name "RDF::TriG" ;
214-
doap:homepage <http://ruby-rdf.github.com/rdf-trig> ;
214+
doap:homepage <https://ruby-rdf.github.io/rdf-trig> ;
215215
doap:license <http://creativecommons.org/licenses/publicdomain/> ;
216216
doap:description "RDF::TriG is an TriG reader/writer for the RDF.rb library suite."@en ;
217217
doap:created "2011-08-29"^^xsd:date ;

rdf/rdf11/rdf-turtle/reports/template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213

214214
<http://rubygems.org/gems/rdf-turtle> a doap:Project, earl:TestSubject, earl:Software ;
215215
doap:name "RDF::Turtle" ;
216-
doap:homepage <http://ruby-rdf.github.com/rdf-turtle> ;
216+
doap:homepage <https://ruby-rdf.github.io/rdf-turtle> ;
217217
doap:license <http://creativecommons.org/licenses/publicdomain/> ;
218218
doap:description "RDF::Turtle is an Turtle reader/writer for the RDF.rb library suite."@en ;
219219
doap:created "2011-08-29"^^xsd:date ;
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Builds manifests
2+
task default: [:jsonld, :ttl, :html]
3+
4+
desc "Create manifest.jsonld"
5+
task jsonld: "gen_manifest.rb" do
6+
%x(ruby gen_manifest.rb -o manifest.jsonld)
7+
end
8+
9+
desc "Create manifest.ttl"
10+
task ttl: "gen_manifest.rb" do
11+
%x(ruby gen_manifest.rb --format ttl -o manifest.ttl)
12+
end
13+
14+
desc "Create index.html"
15+
task html: "gen_manifest.rb" do
16+
%x(ruby gen_manifest.rb --format html -o index.html)
17+
end

0 commit comments

Comments
 (0)