Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
267 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# This workflow runs continuous CI across different versions of ruby on all branches and pull requests to develop. | ||
|
||
name: CI | ||
on: | ||
push: | ||
branches: [ '**' ] | ||
pull_request: | ||
branches: [ develop ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
tests: | ||
name: Ruby ${{ matrix.ruby }} ${{ matrix.gemfile }} | ||
if: "contains(github.event.commits[0].message, '[ci skip]') == false" | ||
runs-on: ubuntu-latest | ||
env: | ||
CI: true | ||
BUNDLE_GEMFILE: "${{ matrix.gemfile }}" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: | ||
- 2.4 | ||
- 2.5 | ||
- 2.6 | ||
- 2.7 | ||
#- ruby-head # Until net-http-persistent updated | ||
- jruby | ||
gemfile: | ||
- Gemfile | ||
- Gemfile-pure | ||
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: bundle exec rspec spec | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.1.0 | ||
3.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
require 'rdf' | ||
require 'sparql/client' | ||
dnbt = RDF::Vocabulary.new("https://d-nb.info/standards/elementset/dnb#") | ||
rdf_gndid = RDF::Literal.new("https://d-nb.info/gnd/1059461498") | ||
sparql_client = SPARQL::Client.new("http://127.0.0.1:9292/") | ||
gndo = RDF::Vocabulary.new("http://d-nb.info/gnd/standards/elementset/gnd#") | ||
query = sparql_client.select.where([:subject, dnbt.deprecatedUri, rdf_gndid]).where([:subject, gndo.gndIdentifier, :gndid]) | ||
query.each_solution { |solution| new_gndid = solution[:gndid].to_s } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require 'sparql/client' | ||
SPARQL::Client::Query | ||
.select | ||
.where(%i[s p o]) | ||
.values(:s, RDF::URI('http://example.com/1'), RDF::URI('http://example.com/2')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.