Skip to content

Commit

Permalink
Finish 3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Apr 26, 2022
2 parents eb6958d + 8221fb3 commit 8e9e46e
Show file tree
Hide file tree
Showing 12 changed files with 176 additions and 127 deletions.
30 changes: 29 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
ruby:
- 2.6
- 2.7
- 3.0
- "3.0"
- 3.1
- ruby-head
- jruby
Expand All @@ -42,3 +42,31 @@ jobs:
if: "matrix.ruby == '3.0'"
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
wintests:
name: Win64 Ruby ${{ matrix.ruby }}
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
runs-on: windows-latest
env:
CI: true
ALLOW_FAILURES: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'jruby' }}
strategy:
fail-fast: false
matrix:
ruby:
- 3.1
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: bundle install --jobs 4 --retry 3
- name: Run tests
run: ruby --version; bundle exec rspec spec || $ALLOW_FAILURES
- name: Coveralls GitHub Action
uses: coverallsapp/[email protected]
if: "matrix.ruby == '3.0'"
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
27 changes: 27 additions & 0 deletions .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build & deploy documentation
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: Update gh-pages with docs
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1"
- name: Install required gem dependencies
run: gem install yard --no-document
- name: Build YARD Ruby Documentation
run: yardoc
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/yard
publish_branch: gh-pages
214 changes: 100 additions & 114 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,40 +69,41 @@ This results in the following Turtle:
@prefix csvw: <http://www.w3.org/ns/csvw#> .
@prefix dc: <http://purl.org/dc/terms/> .
@prefix doap: <http://usefulinc.com/ns/doap#> .
@prefix earl: <http://www.w3.org/ns/earl#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://rubygems.org/gems/rdf-tabular> a doap:Project,
<http://www.w3.org/ns/earl#TestSubject>,
<http://www.w3.org/ns/earl#Software>;
dc:title "RDF::Tabular";
dc:creator <http://greggkellogg.net/foaf#me>;
dc:date "2015-01-05"^^xsd:date;
dc:description "RDF::Tabular processes tabular data with metadata creating RDF or JSON output."@en;
dc:isPartOf <https://rubygems.org/gems/rdf>;
doap:blog <http://greggkellogg.net/>;
doap:bug-database <https://github.com/ruby-rdf/rdf-tabular/issues>;
doap:category <http://dbpedia.org/resource/Resource_Description_Framework>,
<http://dbpedia.org/resource/Ruby_(programming_language)>;
doap:created "2015-01-05"^^xsd:date;
doap:description "RDF::Tabular processes tabular data with metadata creating RDF or JSON output."@en;
doap:developer <http://greggkellogg.net/foaf#me>;
doap:documenter <http://greggkellogg.net/foaf#me>;
doap:download-page <https://rubygems.org/gems/rdf-tabular>;
doap:homepage <http://ruby-rdf.github.com/rdf-tabular>;
doap:implements <http://www.w3.org/TR/tabular-data-model/>,
<http://www.w3.org/TR/tabular-metadata/>,
<http://www.w3.org/TR/csv2rdf/>,
<http://www.w3.org/TR/csv2json/>;
doap:license <https://unlicense.org/1.0/>;
doap:mailing-list <http://lists.w3.org/Archives/Public/public-rdf-ruby/>;
doap:maintainer <http://greggkellogg.net/foaf#me>;
doap:name "RDF::Tabular";
doap:programming-language "Ruby";
doap:shortdesc "Tabular Data RDF Reader and JSON serializer."@en;
foaf:maker <http://greggkellogg.net/foaf#me> .
earl:TestSubject,
earl:Software;
dc:title "RDF::Tabular";
dc:creator <http://greggkellogg.net/foaf#me>;
dc:date "2015-01-05"^^xsd:date;
dc:description "RDF::Tabular processes tabular data with metadata creating RDF or JSON output."@en;
dc:isPartOf <https://rubygems.org/gems/rdf>;
doap:blog <http://greggkellogg.net/>;
doap:bug-database <https://github.com/ruby-rdf/rdf-tabular/issues>;
doap:category <http://dbpedia.org/resource/Resource_Description_Framework>,
<http://dbpedia.org/resource/Ruby_(programming_language)>;
doap:created "2015-01-05"^^xsd:date;
doap:description "RDF::Tabular processes tabular data with metadata creating RDF or JSON output."@en;
doap:developer <http://greggkellogg.net/foaf#me>;
doap:documenter <http://greggkellogg.net/foaf#me>;
doap:download-page <https://rubygems.org/gems/rdf-tabular>;
doap:homepage <https://ruby-rdf.github.io/rdf-tabular>;
doap:implements <http://www.w3.org/TR/tabular-data-model/>,
<http://www.w3.org/TR/tabular-metadata/>,
<http://www.w3.org/TR/csv2rdf/>,
<http://www.w3.org/TR/csv2json/>;
doap:license <https://unlicense.org/1.0/>;
doap:mailing-list <http://lists.w3.org/Archives/Public/public-rdf-ruby/>;
doap:maintainer <http://greggkellogg.net/foaf#me>;
doap:name "RDF::Tabular";
doap:programming-language "Ruby";
doap:shortdesc "Tabular Data RDF Reader and JSON serializer."@en;
foaf:maker <http://greggkellogg.net/foaf#me> .

[
a csvw:TableGroup;
Expand All @@ -112,119 +113,104 @@ This results in the following Turtle:
a csvw:Row;
csvw:describes <https://rubygems.org/gems/rdf-tabular>;
csvw:rownum 1;
csvw:url <file://users/gregg/Projects/rdf-tabular/etc/doap.csv#row=2>
], [
csvw:url <https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv#row=2>
], [
a csvw:Row;
csvw:describes <https://rubygems.org/gems/rdf-tabular>;
csvw:rownum 2;
csvw:url <file://users/gregg/Projects/rdf-tabular/etc/doap.csv#row=3>
], [
csvw:url <https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv#row=3>
], [
a csvw:Row;
csvw:describes <https://rubygems.org/gems/rdf-tabular>;
csvw:rownum 3;
csvw:url <file://users/gregg/Projects/rdf-tabular/etc/doap.csv#row=4>
], [
csvw:url <https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv#row=4>
], [
a csvw:Row;
csvw:describes <https://rubygems.org/gems/rdf-tabular>;
csvw:rownum 4;
csvw:url <file://users/gregg/Projects/rdf-tabular/etc/doap.csv#row=5>
csvw:url <https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv#row=5>
];
csvw:url <file://users/gregg/Projects/rdf-tabular/etc/doap.csv>
csvw:url <https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv>
];
prov:wasGeneratedBy [
a prov:Activity;
prov:endedAtTime "2015-04-11T12:33:26Z"^^xsd:dateTime;
prov:endedAtTime "2022-04-20T12:45:20.616-07:00"^^xsd:dateTime;
prov:qualifiedUsage [
a prov:Usage;
prov:entity <file://users/gregg/Projects/rdf-tabular/etc/doap.csv>;
prov:entity <https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv>;
prov:hadRole csvw:csvEncodedTabularData
], [
], [
a prov:Usage;
prov:entity <file://users/gregg/Projects/rdf-tabular/etc/doap.csv-metadata.json>;
prov:entity <https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv-metadata.json>;
prov:hadRole csvw:tabularMetadata
];
prov:startedAtTime "2015-04-11T12:33:25Z"^^xsd:dateTime;
prov:startedAtTime "2022-04-20T12:45:20.351-07:00"^^xsd:dateTime;
prov:wasAssociatedWith <https://rubygems.org/gems/rdf-tabular>
]
] .
] .

The provenance on table-source information can be excluded by using the `:minimal` option to the reader.

It can also generate JSON output (not complete JSON-LD, but compatible with it), using the {RDF::Tabular::Reader#to_json} method:

{
"table": [
{
"url": "file://users/gregg/Projects/rdf-tabular/etc/doap.csv",
"row": [
{
"url": "file://users/gregg/Projects/rdf-tabular/etc/doap.csv#row=2",
"rownum": 1,
"describes": [
{
"@id": "https://rubygems.org/gems/rdf-tabular",
"http://usefulinc.com/ns/doap#name": "RDF::Tabular",
"@type": "http://usefulinc.com/ns/doap#Project",
"http://usefulinc.com/ns/doap#homepage": "http://ruby-rdf.github.com/rdf-tabular",
"http://usefulinc.com/ns/doap#license": "https://unlicense.org/1.0/",
"http://usefulinc.com/ns/doap#shortdesc": "Tabular Data RDF Reader and JSON serializer.",
"http://usefulinc.com/ns/doap#description": "RDF::Tabular processes tabular data with metadata creating RDF or JSON output.",
"http://usefulinc.com/ns/doap#created": "2015-01-05",
"http://usefulinc.com/ns/doap#programming-language": "Ruby",
"http://usefulinc.com/ns/doap#implements": "http://www.w3.org/TR/tabular-data-model/",
"http://usefulinc.com/ns/doap#category": "http://dbpedia.org/resource/Resource_Description_Framework",
"http://usefulinc.com/ns/doap#download-page": "https://rubygems.org/gems/rdf-tabular",
"http://usefulinc.com/ns/doap#mailing-list": "http://lists.w3.org/Archives/Public/public-rdf-ruby/",
"http://usefulinc.com/ns/doap#bug-database": "https://github.com/ruby-rdf/rdf-tabular/issues",
"http://usefulinc.com/ns/doap#blog": "http://greggkellogg.net/",
"http://usefulinc.com/ns/doap#developer": "http://greggkellogg.net/foaf#me",
"http://usefulinc.com/ns/doap#maintainer": "http://greggkellogg.net/foaf#me",
"http://usefulinc.com/ns/doap#documenter": "http://greggkellogg.net/foaf#me",
"foaf:maker": "http://greggkellogg.net/foaf#me",
"dc:title": "RDF::Tabular",
"dc:description": "RDF::Tabular processes tabular data with metadata creating RDF or JSON output.",
"dc:date": "2015-01-05",
"dc:creator": "http://greggkellogg.net/foaf#me",
"dc:isPartOf": "https://rubygems.org/gems/rdf"
}
]
},
{
"url": "file://users/gregg/Projects/rdf-tabular/etc/doap.csv#row=3",
"rownum": 2,
"describes": [
{
"@id": "https://rubygems.org/gems/rdf-tabular",
"@type": "http://www.w3.org/ns/earl#TestSubject",
"http://usefulinc.com/ns/doap#implements": "http://www.w3.org/TR/tabular-metadata/",
"http://usefulinc.com/ns/doap#category": "http://dbpedia.org/resource/Ruby_(programming_language)"
}
]
},
{
"url": "file://users/gregg/Projects/rdf-tabular/etc/doap.csv#row=4",
"rownum": 3,
"describes": [
{
"@id": "https://rubygems.org/gems/rdf-tabular",
"@type": "http://www.w3.org/ns/earl#Software",
"http://usefulinc.com/ns/doap#implements": "http://www.w3.org/TR/csv2rdf/"
}
]
},
{
"url": "file://users/gregg/Projects/rdf-tabular/etc/doap.csv#row=5",
"rownum": 4,
"describes": [
{
"@id": "https://rubygems.org/gems/rdf-tabular",
"http://usefulinc.com/ns/doap#implements": "http://www.w3.org/TR/csv2json/"
}
]
}
]
}
]
"tables": [{
"url": "https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv",
"row": [{
"url": "https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv#row=2",
"rownum": 1,
"describes": [{
"@id": "https://rubygems.org/gems/rdf-tabular",
"http://usefulinc.com/ns/doap#name": "RDF::Tabular",
"@type": "http://usefulinc.com/ns/doap#Project",
"http://usefulinc.com/ns/doap#homepage": "https://ruby-rdf.github.io/rdf-tabular",
"http://usefulinc.com/ns/doap#license": "https://unlicense.org/1.0/",
"http://usefulinc.com/ns/doap#shortdesc": "Tabular Data RDF Reader and JSON serializer.",
"http://usefulinc.com/ns/doap#description": "RDF::Tabular processes tabular data with metadata creating RDF or JSON output.",
"http://usefulinc.com/ns/doap#created": "2015-01-05",
"http://usefulinc.com/ns/doap#programming-language": "Ruby",
"http://usefulinc.com/ns/doap#implements": "http://www.w3.org/TR/tabular-data-model/",
"http://usefulinc.com/ns/doap#category": "http://dbpedia.org/resource/Resource_Description_Framework",
"http://usefulinc.com/ns/doap#download-page": "https://rubygems.org/gems/rdf-tabular",
"http://usefulinc.com/ns/doap#mailing-list": "http://lists.w3.org/Archives/Public/public-rdf-ruby/",
"http://usefulinc.com/ns/doap#bug-database": "https://github.com/ruby-rdf/rdf-tabular/issues",
"http://usefulinc.com/ns/doap#blog": "http://greggkellogg.net/",
"http://usefulinc.com/ns/doap#developer": "http://greggkellogg.net/foaf#me",
"http://usefulinc.com/ns/doap#maintainer": "http://greggkellogg.net/foaf#me",
"http://usefulinc.com/ns/doap#documenter": "http://greggkellogg.net/foaf#me",
"foaf:maker": "http://greggkellogg.net/foaf#me",
"dc:title": "RDF::Tabular",
"dc:description": "RDF::Tabular processes tabular data with metadata creating RDF or JSON output.",
"dc:date": "2015-01-05",
"dc:creator": "http://greggkellogg.net/foaf#me",
"dc:isPartOf": "https://rubygems.org/gems/rdf"
}]
}, {
"url": "https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv#row=3",
"rownum": 2,
"describes": [{
"@id": "https://rubygems.org/gems/rdf-tabular",
"@type": "http://www.w3.org/ns/earl#TestSubject",
"http://usefulinc.com/ns/doap#implements": "http://www.w3.org/TR/tabular-metadata/",
"http://usefulinc.com/ns/doap#category": "http://dbpedia.org/resource/Ruby_(programming_language)"
}]
}, {
"url": "https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv#row=4",
"rownum": 3,
"describes": [{
"@id": "https://rubygems.org/gems/rdf-tabular",
"@type": "http://www.w3.org/ns/earl#Software",
"http://usefulinc.com/ns/doap#implements": "http://www.w3.org/TR/csv2rdf/"
}]
}, {
"url": "https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv#row=5",
"rownum": 4,
"describes": [{
"@id": "https://rubygems.org/gems/rdf-tabular",
"http://usefulinc.com/ns/doap#implements": "http://www.w3.org/TR/csv2json/"
}]
}]
}]
}

## Tutorials
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.0
3.2.1
2 changes: 1 addition & 1 deletion etc/doap.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name,type,homepage,license,shortdesc,description,created,programming_language,implements,category,download_page,mailing_list,bug_database,blog,developer,maintainer,documenter,maker,dc_title,dc_description,dc_date,dc_creator,isPartOf
RDF::Tabular,http://usefulinc.com/ns/doap#Project,http://ruby-rdf.github.com/rdf-tabular,https://unlicense.org/1.0/,Tabular Data RDF Reader and JSON serializer.,RDF::Tabular processes tabular data with metadata creating RDF or JSON output.,1/5/2015,Ruby,http://www.w3.org/TR/tabular-data-model/,http://dbpedia.org/resource/Resource_Description_Framework,https://rubygems.org/gems/rdf-tabular,http://lists.w3.org/Archives/Public/public-rdf-ruby/,https://github.com/ruby-rdf/rdf-tabular/issues,http://greggkellogg.net/,http://greggkellogg.net/foaf#me,http://greggkellogg.net/foaf#me,http://greggkellogg.net/foaf#me,http://greggkellogg.net/foaf#me,RDF::Tabular,RDF::Tabular processes tabular data with metadata creating RDF or JSON output.,1/5/2015,http://greggkellogg.net/foaf#me,https://rubygems.org/gems/rdf
RDF::Tabular,http://usefulinc.com/ns/doap#Project,https://ruby-rdf.github.io/rdf-tabular,https://unlicense.org/1.0/,Tabular Data RDF Reader and JSON serializer.,RDF::Tabular processes tabular data with metadata creating RDF or JSON output.,1/5/2015,Ruby,http://www.w3.org/TR/tabular-data-model/,http://dbpedia.org/resource/Resource_Description_Framework,https://rubygems.org/gems/rdf-tabular,http://lists.w3.org/Archives/Public/public-rdf-ruby/,https://github.com/ruby-rdf/rdf-tabular/issues,http://greggkellogg.net/,http://greggkellogg.net/foaf#me,http://greggkellogg.net/foaf#me,http://greggkellogg.net/foaf#me,http://greggkellogg.net/foaf#me,RDF::Tabular,RDF::Tabular processes tabular data with metadata creating RDF or JSON output.,1/5/2015,http://greggkellogg.net/foaf#me,https://rubygems.org/gems/rdf
,http://www.w3.org/ns/earl#TestSubject,,,,,,,http://www.w3.org/TR/tabular-metadata/,http://dbpedia.org/resource/Ruby_(programming_language),,,,,,,,,,,,,
,http://www.w3.org/ns/earl#Software,,,,,,,http://www.w3.org/TR/csv2rdf/,,,,,,,,,,,,,,
,,,,,,,,http://www.w3.org/TR/csv2json/,,,,,,,,,,,,,,
2 changes: 1 addition & 1 deletion etc/doap.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<> a doap:Project, earl:TestSubject, earl:Software ;
doap:name "RDF::Tabular" ;
doap:homepage <https://ruby-rdf.github.com/rdf-tabular> ;
doap:homepage <https://ruby-rdf.github.io/rdf-tabular> ;
doap:license <https://unlicense.org/1.0/> ;
doap:shortdesc "Tabular Data RDF Reader and JSON serializer for RDF.rb."@en ;
doap:description "RDF::Tabular processes tabular data with metadata creating RDF or JSON output for the RDF.rb library suite."@en ;
Expand Down
4 changes: 2 additions & 2 deletions etc/earl.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ <h2>
<dd property='doap:programming-language'>Ruby</dd>
<dt>Home Page</dt>
<dd property='doap:homepage'>
<a href='http://ruby-rdf.github.com/rdf-tabular'>
http://ruby-rdf.github.com/rdf-tabular
<a href='https://ruby-rdf.github.io/rdf-tabular'>
https://ruby-rdf.github.io/rdf-tabular
</a>
</dd>
<dt>Developer</dt>
Expand Down
2 changes: 1 addition & 1 deletion etc/earl.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
}
],
"doapDesc": "RDF::Tabular processes tabular data with metadata creating RDF or JSON output.",
"homepage": "http://ruby-rdf.github.com/rdf-tabular",
"homepage": "https://ruby-rdf.github.io/rdf-tabular",
"language": "Ruby"
}
],
Expand Down
2 changes: 1 addition & 1 deletion etc/earl.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<https://rubygems.org/gems/rdf-tabular> a doap:Project, earl:TestSubject, earl:Software ;
doap:name "RDF::Tabular" ;
doap:homepage <http://ruby-rdf.github.com/rdf-tabular> ;
doap:homepage <https://ruby-rdf.github.io/rdf-tabular> ;
doap:license <https://unlicense.org/1.0/> ;
doap:shortdesc "Tabular Data RDF Reader and JSON serializer."@en ;
doap:description "RDF::Tabular processes tabular data with metadata creating RDF or JSON output."@en ;
Expand Down
Loading

0 comments on commit 8e9e46e

Please sign in to comment.