rdf-vocab 3.2.1 → 3.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eac98b97638617d3c201871b0bbf93a704481b9fb3ed06ae8b332e5e785c4e2b
4
- data.tar.gz: 49fe3cb229ac3a3d530ecf47c15a38b267cd89694770c820f71caa246b39b365
3
+ metadata.gz: 3b0ca03763ca27da75915de8dd336ddd7689cc871edf7df24f8bcd140a6838e2
4
+ data.tar.gz: a22b9a98b3e8debb2772be278efe94bbbae1f0d44d1f98a472c28b12d5304133
5
5
  SHA512:
6
- metadata.gz: b4e232f86d54928e24ddc4de3560e73f9a0d38d2b83d13bba48a7d98308b7d1d4e96fe96a827577eeb0913327351dc858c456c8339e0b3f33b8a2e7d1df462c2
7
- data.tar.gz: a6a11e5ca961819b63badeac4779ee58f75c11bede562cfd1e130a4721814c597d186cf82d9ef62710cdb58396b4cf3e760cb628421dd0d2c1111ec54cdf0c88
6
+ metadata.gz: c2d11d7cbbba7d2fc0f8c46fc849fac5ca71f319afb2db87bc341f10882599c24d6d6a034108a136aa84a841a751dddc19ad77e47fae7e509b2defeaa7df172c
7
+ data.tar.gz: 2f123c058487eb7f40aa8ca64df61e2c8d173f684150c310df9ebdb1fa84d24f702e24d761668151c6e9be3e064d5b0c4b649d22a784c8ee771a10fba46890e7
data/README.md CHANGED
@@ -38,7 +38,7 @@ will limit the vocabularies which are returned from `RDF::Vocabulary.each`, whic
38
38
  * RDF::Vocab::DISCO - [DDI-RDF Discovery Vocabulary](http://rdf-vocabulary.ddialliance.org/discovery#) (DDI)
39
39
  * RDF::Vocab::DOAP - [Description of a Project (DOAP) vocabulary](https://github.com/edumbill/doap/wiki)
40
40
  * RDF::Vocab::DWC - [Darwin Core](http://rs.tdwg.org/dwc/terms/)
41
- * RDF::Vocab::EARL - [Evaluation and Report Language (EARL) 1.0 Schema](<http://www.w3.org/ns/earl#) (W3C)
41
+ * RDF::Vocab::EARL - [Evaluation and Report Language (EARL) 1.0 Schema](http://www.w3.org/ns/earl#) (W3C)
42
42
  * RDF::Vocab::EBUCore - [EBUCore](http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#)
43
43
  * RDF::Vocab::EDM - [Europeana Data Model (EDM)](https://pro.europeana.eu/page/edm-documentation)
44
44
  * RDF::Vocab::EXIF - [Exif vocabulary workspace](http://www.w3.org/2003/12/exif/) (W3C)
@@ -119,14 +119,71 @@ Also adds the `gen-vocab` command to the `rdf` command-line executable to genera
119
119
 
120
120
  ## Adding new vocabularies
121
121
 
122
- * First, add an entry to `lib/rdf/vocab.rb`, the key names contained within
123
- for guidance. For more information, see the documentation on
122
+ Vocabularies should only be added to this gem if they are widely used. An equivalent process can be used to add a vocabulary to an arbitrary Ruby application or gem if it is more application specific.
123
+
124
+ New vocabularies should be generated via a pull request after cloning from GitHub. Be sure to use a custom branch name before creating the PR.
125
+
126
+ * First, add an entry to `lib/rdf/vocab.rb`, the key is used to identify the vocabulary, and as the default basis for the prefix label to use for the vocabulary. The key names of the object value come from the following:
127
+ <dl>
128
+ <dt>uri (required)</dt>
129
+ <dd>The namespace URI for the vocabulary.</dd>
130
+ <dt>module_name (default RDF::Vocab)</dt>
131
+ <dd>The Ruby module in which the vocabulary class is created.</dd>
132
+ <dt>class_name (default from uppercase of the vocabulary identity)</dt>
133
+ <dd>The class name of the vocabulary</dd>
134
+ <dt>source (default from uri)</dt>
135
+ <dd>The source used to fetch the RDF vocabulary definition (most formats supported). Defaults to the vocabulary uri.</dd>
136
+ <dt>strict (default false)</dt>
137
+ <dd>Creates a _strict_ vocabulary, so that attempts to use undefined terms in the vocabulary namespace become errors.</dd>
138
+ <dt>alias (Internal only)</dt>
139
+ <dd>Indicates that this is an alias for a vocabulary defined directly in the RDF namespace.</dd>
140
+ <dt>skip</dt>
141
+ <dd>Do not process this vocabulary, typically when the vocabulary source is inaccessible.</dd>
142
+ <dt>patch</dt>
143
+ <dd>The value is taken as a string formatted as an <a href="http://www.w3.org/TR/ldpatch/">LD Patch</a> used to correct issues in the vocabulary source that may show up when the vocabulary is validated.</dd>
144
+ <dt>extra</dt>
145
+ <dd>Value is a JSON Object which is added to the resulting vocabulary definition.</dd>
146
+ </dl>
147
+
148
+ For more information, see the documentation on
124
149
  [RDF::Vocabulary](https://ruby-rdf.github.io/rdf/RDF/Vocabulary).
125
150
  * Next, create an empty file in `lib/rdf/vocab` based on the key name for
126
151
  your vocabulary. For example, if you've added the vocabulary `:foo`, create a
127
152
  new empty file at `lib/rdf/vocab/foo.rb`.
153
+ * Create an entry in the README to document the availability of the library within this gem.
128
154
  * Run `rake gen_vocabs`.
129
155
 
156
+ After the PR is merged, it will be available in the `develop` branch until the next library release.
157
+
158
+ ### Example vocabulary definition
159
+
160
+ The following definition is for the EARL vocabulary, which uses the `patch` capability to address inherent problems in the vocabulary definition.
161
+
162
+ earl: {
163
+ uri: "http://www.w3.org/ns/earl#",
164
+ source: "http://www.w3.org/ns/earl",
165
+ patch: %{
166
+ @prefix earl: <http://www.w3.org/ns/earl#>.
167
+ @prefix owl: <http://www.w3.org/2002/07/owl#>.
168
+ @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
169
+
170
+ AddNew {
171
+ # Extends EARL to talk about collections of assertions
172
+ earl:Report a rdfs:Class, owl:Class ;
173
+ rdfs:label "Report" ;
174
+ rdfs:comment "A collection of earl:Assertion" .
175
+ earl:assertion a owl:ObjectProperty, rdfs:Property ;
176
+ rdfs:label "assertion" ;
177
+ rdfs:comment "Test Assertions associated with an earl:Report or earl:TestCase" ;
178
+ rdfs:domain [
179
+ a owl:Class ;
180
+ owl:unionOf (earl:Report earl:TestCase)
181
+ ] ;
182
+ rdfs:range earl:Assertion .
183
+ } .
184
+ }
185
+ }
186
+
130
187
  ## Authors
131
188
 
132
189
  * [David Chandek-Stark](https://github.com/dchandekstark)
@@ -161,3 +218,4 @@ see <https://unlicense.org/> or the accompanying {file:LICENSE} file.
161
218
  [YARD]: https://yardoc.org/
162
219
  [YARD-GS]: https://rubydoc.info/docs/yard/file/docs/GettingStarted.md
163
220
  [PDD]: https://unlicense.org/#unlicensing-contributions
221
+ [LD Patch]: http://www.w3.org/TR/ldpatch/
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.1
1
+ 3.2.2