Skip to content

Commit

Permalink
Finish 3.1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Dec 26, 2020
2 parents e13fce0 + 3550c5d commit d39d9a5
Show file tree
Hide file tree
Showing 30 changed files with 15,931 additions and 3,739 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
repo_token: zI9EF2MPB9OjIZXOqB8T0GmgTKMoshAZJ
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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 }}
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
runs-on: ubuntu-latest
env:
CI: true
strategy:
fail-fast: false
matrix:
ruby:
- 2.4
- 2.5
- 2.6
- 2.7
#- 3.0 # net-http-persistent
#- ruby-head # net-http-persistent
#- jruby # Nokogumbo
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

3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ group :development, :test do
gem 'sparql', git: 'https://github.com/ruby-rdf/sparql.git', branch: 'develop'
gem 'sparql-client', git: 'https://github.com/ruby-rdf/sparql-client.git', branch: 'develop'
gem 'sxp', git: 'https://github.com/dryruby/sxp.rb.git', branch: 'develop'

gem 'simplecov', platforms: :mri
gem 'coveralls', '~> 0.8', platforms: :mri
end

group :debug do
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# rdf-vocab
Common OWL/RDFS Vocabularies for use with Ruby [RDF.rb][]

[TriG][] reader/writer for [RDF.rb][RDF.rb] .

[![Gem Version](https://badge.fury.io/rb/rdf-vocab.png)](https://badge.fury.io/rb/rdf-vocab)
[![Build Status](https://travis-ci.org/ruby-rdf/rdf-vocab.png?branch=master)](https://travis-ci.org/ruby-rdf/rdf-vocab)
[![Build Status](https://github.com/ruby-rdf/rdf-vocab/workflows/CI/badge.svg?branch=develop)](https://github.com/ruby-rdf/rdf-vocab/actions?query=workflow%3ACI)
[![Coverage Status](https://coveralls.io/repos/ruby-rdf/rdf-vocab/badge.svg)](https://coveralls.io/github/ruby-rdf/rdf-vocab)
[![Gitter chat](https://badges.gitter.im/ruby-rdf/rdf.png)](https://gitter.im/ruby-rdf/rdf)

## Extensions
This gem extends `RDF::Vocabulary` with `#to_ttl`, `#to_jsonld`, and `#to_html` methods to create special-purpose vocabulary serializations. The HTML version is templated using a Haml template to allow output to be customized.
Expand Down Expand Up @@ -73,6 +77,7 @@ will limit the vocabularies which are returned from `RDF::Vocabulary.each`, whic
* RDF::Vocab::PremisEventType - [PREMIS Event Type](http://id.loc.gov/vocabulary/preservation/eventType.html) (LoC)
* RDF::Vocab::PROV - [Provenance Ontology](http://www.w3.org/TR/prov-o/) (W3C)
* RDF::Vocab::PTR - [Pointer Methods in RDF 1.0](https://www.w3.org/TR/Pointers-in-RDF10/) (W3C)
* RDF::Vocab::RDAU - [RDA Vocabularies](http://www.rdaregistry.info/Elements/u/)
* RDF::Vocab::RightsStatements - [Rights Statements for Cultural Heritage Institutions](https://rightsstatements.org/en/)
* RDF::Vocab::RSA - [The RSA Ontology](http://www.w3.org/ns/auth/rsa)
* RDF::Vocab::RSS - [RDF Site Summary](http://web.resource.org/rss/1.0/)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.9
3.1.10
11 changes: 6 additions & 5 deletions lib/rdf/vocab.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ module Vocab
as: {uri: "https://www.w3.org/ns/activitystreams#", source: 'etc/as.ttl'},
bf2: {uri: 'http://id.loc.gov/ontologies/bibframe/'},
bibframe: {
# Obsolete
uri: "http://bibframe.org/vocab/",
class_name: "Bibframe",
skip: true
uri: "http://id.loc.gov/ontologies/bibframe/",
class_name: "Bibframe"
},
bibo: {uri: "http://purl.org/ontology/bibo/", source: "etc/bibo.ttl"},
cc: {
Expand Down Expand Up @@ -278,13 +276,16 @@ module Vocab
},
prov: {uri: "http://www.w3.org/ns/prov#"},
ptr: {uri: "http://www.w3.org/2009/pointers#"},
rdau: {
uri: "http://rdaregistry.info/Elements/u",
source: "http://www.rdaregistry.info/nt/Elements/u.nt"
},
rdfs: {uri: "http://www.w3.org/2000/01/rdf-schema#", alias: true},
rightsstatements: {
uri: 'http://rightsstatements.org/vocab/',
source: 'https://raw.githubusercontent.com/rightsstatements/data-model/master/rights-statements.ttl',
class_name: 'RightsStatements'
},

rsa: {
uri: "http://www.w3.org/ns/auth/rsa#",
patch: %{
Expand Down
28 changes: 14 additions & 14 deletions lib/rdf/vocab/bf2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -579,15 +579,15 @@ module RDF::Vocab
# # @return [RDF::Vocabulary::Term]
# attr_reader :absorbedBy
#
# # Expected value Work, Instance or Item
# #
# # Used with Work, Instance or Item
# #
# # Expected value Work, Instance or Item
# # @return [RDF::Vocabulary::Term]
# attr_reader :accompaniedBy
#
# # Expected value Work, Instance or Item
# #
# # Used with Work, Instance or Item
# #
# # Expected value Work, Instance or Item
# # @return [RDF::Vocabulary::Term]
# attr_reader :accompanies
#
Expand Down Expand Up @@ -866,9 +866,9 @@ module RDF::Vocab
# # @return [RDF::Vocabulary::Term]
# attr_reader :hasDerivative
#
# # Expected value Work, Instance or Item
# #
# # Used with Work, Instance or Item
# #
# # Expected value Work, Instance or Item
# # @return [RDF::Vocabulary::Term]
# attr_reader :hasEquivalent
#
Expand All @@ -881,9 +881,9 @@ module RDF::Vocab
# # @return [RDF::Vocabulary::Term]
# attr_reader :hasItem
#
# # Expected value Work, Instance or Item
# #
# # Used with Work, Instance or Item
# #
# # Expected value Work, Instance or Item
# # @return [RDF::Vocabulary::Term]
# attr_reader :hasPart
#
Expand Down Expand Up @@ -1076,9 +1076,9 @@ module RDF::Vocab
# # @return [RDF::Vocabulary::Term]
# attr_reader :partNumber
#
# # Expected value Work, Instance or Item
# #
# # Used with Work, Instance or Item
# #
# # Expected value Work, Instance or Item
# # @return [RDF::Vocabulary::Term]
# attr_reader :partOf
#
Expand Down Expand Up @@ -1127,15 +1127,15 @@ module RDF::Vocab
# # @return [RDF::Vocabulary::Term]
# attr_reader :reductionRatio
#
# # Expected value Work, Instance or Item
# #
# # Used with Work, Instance or Item
# #
# # Expected value Work, Instance or Item
# # @return [RDF::Vocabulary::Term]
# attr_reader :referencedBy
#
# # Expected value Work, Instance or Item
# #
# # Used with Work, Instance or Item
# #
# # Expected value Work, Instance or Item
# # @return [RDF::Vocabulary::Term]
# attr_reader :references
#
Expand Down
Loading

0 comments on commit d39d9a5

Please sign in to comment.