rdf-vocab 3.1.1 → 3.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +69 -45
  4. data/VERSION +1 -1
  5. data/lib/rdf/vocab.rb +55 -39
  6. data/lib/rdf/vocab/acl.rb +84 -1
  7. data/lib/rdf/vocab/as.rb +466 -1
  8. data/lib/rdf/vocab/bf2.rb +1317 -1
  9. data/lib/rdf/vocab/bibframe.rb +1 -2
  10. data/lib/rdf/vocab/bibo.rb +496 -1
  11. data/lib/rdf/vocab/cc.rb +107 -1
  12. data/lib/rdf/vocab/cert.rb +68 -1
  13. data/lib/rdf/vocab/cnt.rb +79 -1
  14. data/lib/rdf/vocab/crm.rb +1303 -1
  15. data/lib/rdf/vocab/datacite.rb +1 -1
  16. data/lib/rdf/vocab/dbo.rb +10463 -1
  17. data/lib/rdf/vocab/dc.rb +470 -301
  18. data/lib/rdf/vocab/dc11.rb +88 -57
  19. data/lib/rdf/vocab/dcat.rb +153 -5
  20. data/lib/rdf/vocab/dcmitype.rb +51 -25
  21. data/lib/rdf/vocab/disco.rb +228 -1
  22. data/lib/rdf/vocab/doap.rb +175 -1
  23. data/lib/rdf/vocab/dwc.rb +753 -1
  24. data/lib/rdf/vocab/earl.rb +324 -0
  25. data/lib/rdf/vocab/ebucore.rb +7335 -1974
  26. data/lib/rdf/vocab/edm.rb +150 -1
  27. data/lib/rdf/vocab/exif.rb +650 -1
  28. data/lib/rdf/vocab/extensions.rb +265 -212
  29. data/lib/rdf/vocab/fcrepo4.rb +377 -1
  30. data/lib/rdf/vocab/foaf.rb +305 -1
  31. data/lib/rdf/vocab/geo.rb +39 -1
  32. data/lib/rdf/vocab/geojson.rb +66 -1
  33. data/lib/rdf/vocab/geonames.rb +166 -1
  34. data/lib/rdf/vocab/gr.rb +684 -1
  35. data/lib/rdf/vocab/gs1.rb +1597 -1
  36. data/lib/rdf/vocab/ht.rb +164 -1
  37. data/lib/rdf/vocab/hydra.rb +238 -4
  38. data/lib/rdf/vocab/iana.rb +230 -1
  39. data/lib/rdf/vocab/ical.rb +462 -1
  40. data/lib/rdf/vocab/identifiers.rb +462 -1
  41. data/lib/rdf/vocab/iiif.rb +136 -1
  42. data/lib/rdf/vocab/jsonld.rb +147 -3
  43. data/lib/rdf/vocab/ldp.rb +130 -1
  44. data/lib/rdf/vocab/lrmi.rb +69 -1
  45. data/lib/rdf/vocab/ma.rb +381 -1
  46. data/lib/rdf/vocab/mads.rb +610 -22
  47. data/lib/rdf/vocab/{marc_relators.rb → marcrelators.rb} +809 -1
  48. data/lib/rdf/vocab/mo.rb +919 -1
  49. data/lib/rdf/vocab/mods.rb +516 -1
  50. data/lib/rdf/vocab/nfo.rb +1 -1
  51. data/lib/rdf/vocab/oa.rb +275 -1
  52. data/lib/rdf/vocab/og.rb +100 -1
  53. data/lib/rdf/vocab/ogc.rb +34 -1
  54. data/lib/rdf/vocab/ore.rb +56 -1
  55. data/lib/rdf/vocab/org.rb +189 -1
  56. data/lib/rdf/vocab/pcdm.rb +47 -1
  57. data/lib/rdf/vocab/pplan.rb +64 -1
  58. data/lib/rdf/vocab/premis.rb +1266 -779
  59. data/lib/rdf/vocab/{premis_event_type.rb → premiseventtype.rb} +155 -1
  60. data/lib/rdf/vocab/prov.rb +619 -1
  61. data/lib/rdf/vocab/ptr.rb +138 -1
  62. data/lib/rdf/vocab/rightsstatements.rb +5 -1
  63. data/lib/rdf/vocab/rsa.rb +30 -1
  64. data/lib/rdf/vocab/rss.rb +42 -1
  65. data/lib/rdf/vocab/schema.rb +12470 -804
  66. data/lib/rdf/vocab/sd.rb +372 -0
  67. data/lib/rdf/vocab/sh.rb +736 -1
  68. data/lib/rdf/vocab/sioc.rb +401 -1
  69. data/lib/rdf/vocab/{sioc_services.rb → siocservices.rb} +38 -1
  70. data/lib/rdf/vocab/{sioct.rb → sioctypes.rb} +158 -1
  71. data/lib/rdf/vocab/skos.rb +119 -1
  72. data/lib/rdf/vocab/skosxl.rb +30 -1
  73. data/lib/rdf/vocab/v.rb +291 -1
  74. data/lib/rdf/vocab/vcard.rb +508 -1
  75. data/lib/rdf/vocab/vmd.rb +291 -1
  76. data/lib/rdf/vocab/void.rb +121 -1
  77. data/lib/rdf/vocab/vs.rb +19 -1
  78. data/lib/rdf/vocab/wdrs.rb +90 -1
  79. data/lib/rdf/vocab/wot.rb +78 -1
  80. data/lib/rdf/vocab/xhtml.rb +2 -1
  81. data/lib/rdf/vocab/xhv.rb +338 -1
  82. data/lib/rdf/vocab/xkos.rb +150 -1
  83. data/spec/extensions_spec.rb +68 -0
  84. data/spec/vocab_spec.rb +10 -0
  85. metadata +16 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ccd9640cada14cdebb6c2aca6c54787052f65c7e4c70d8cdfa69cf031bd11bf
4
- data.tar.gz: 3820efb944d4f6117e7707a83110ef93b3f4ebd1416f71237c00d92980fb3b76
3
+ metadata.gz: 2fa9749021f59553764627c01f4e723720ea0987ec404ae63a94d72127c43693
4
+ data.tar.gz: 1ee1146735734971ddb5d961e43ed9a4f7d96003a7416932b15ab145e42fa52a
5
5
  SHA512:
6
- metadata.gz: 35d493c03feb48b7fadb9d7654c734a2ddea096106264153240ad73efa51130d39a0c4029ff62efc5935204465d80d00cf6808f772afd4f5e3e8a80df7b47493
7
- data.tar.gz: '066895b60efa229900afb7edc208926ca008e9054cc6a9fe30fb5301e58710066e7b0e9410aa256e64aa302b3de8dc89ea24c29b2aaafbd767bdfc877936cfd7'
6
+ metadata.gz: f1681a2e3f2dc0ff2f3ec8a4fd8945c75ba26a0e927a2efd03fca42a3a6699add1b2eaf0cf158d8c3e3ff26f22c84d83cb67e6ceca0767630f26d7ff15205cb9
7
+ data.tar.gz: 5f7dd8fdd3b8e829efa6e0bf02e2f5813c3ae62a5725ccef654885b70d2098e4c150ba0df8105c311c3e50edcae2ad8b888d374d0247352caebe8ce62d0968c5
data/LICENSE CHANGED
@@ -21,5 +21,5 @@ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21
21
  ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
22
  OTHER DEALINGS IN THE SOFTWARE.
23
23
 
24
- For more information, please refer to <http://unlicense.org>
24
+ For more information, please refer to <https://unlicense.org>
25
25
 
data/README.md CHANGED
@@ -1,76 +1,100 @@
1
1
  # rdf-vocab
2
2
  Common OWL/RDFS Vocabularies for use with Ruby [RDF.rb][]
3
3
 
4
- [![Gem Version](https://badge.fury.io/rb/rdf-vocab.png)](http://badge.fury.io/rb/rdf-vocab)
5
- [![Build Status](https://travis-ci.org/ruby-rdf/rdf-vocab.png?branch=master)](http://travis-ci.org/ruby-rdf/rdf-vocab)
4
+ [![Gem Version](https://badge.fury.io/rb/rdf-vocab.png)](https://badge.fury.io/rb/rdf-vocab)
5
+ [![Build Status](https://travis-ci.org/ruby-rdf/rdf-vocab.png?branch=master)](https://travis-ci.org/ruby-rdf/rdf-vocab)
6
6
 
7
7
  ## Extensions
8
8
  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.
9
9
 
10
10
  Also extends `RDF::Vocabulary::Format` with the `gen-vocab` command extension to the `rdf` executable.
11
11
 
12
+ ### Limiting vocabularies used for lookup
13
+
14
+ As loading vocabularies can dominate processing time, the `RDF::Vocabulary.limit_vocabs` method can be used to set a specific set of vocabularies over which to reason. For example:
15
+
16
+ RDF::Vocabulary.limit_vocabs(:rdf, :rdf, :schema)
17
+
18
+ will limit the vocabularies which are returned from `RDF::Vocabulary.each`, which is used for reasoning and other operations over vocabularies and terms.
19
+
12
20
  ## Vocabularies
13
21
 
14
22
  * RDF::Vocab::ACL - [Web Access Control](http://www.w3.org/wiki/WebAccessControl) (W3C)
23
+ * RDF::Vocab::AS - [Activity Streams 2.0](https://www.w3.org/ns/activitystreams#) (W3C)
15
24
  * RDF::Vocab::BF2 - [BIBFRAME 2.0](http://id.loc.gov/ontologies/bibframe) (LoC)
16
25
  * RDF::Vocab::Bibframe - [Bibliographic Framework Initiative](http://bibframe.org/vocab/) (LoC)
17
26
  * RDF::Vocab::BIBO - [Bibliographic Ontology](http://bibliontology.com)
18
- * RDF::Vocab::CC - [Creative Commons Vocabulary](http://creativecommons.org/ns#) (Creative Commons) - Alias of `RDF::CC`
19
- * RDF::Vocab::CERT - [Cert Ontology](http://www.w3.org/ns/auth/cert#) (W3C) - Alias of `RDF::CERT`
27
+ * RDF::Vocab::CC - [Creative Commons Vocabulary](http://creativecommons.org/ns#) (Creative Commons)
28
+ * RDF::Vocab::CERT - [Cert Ontology](http://www.w3.org/ns/auth/cert#) (W3C)
20
29
  * RDF::Vocab::CNT - [Representing Content in RDF](http://www.w3.org/TR/Content-in-RDF10/) (W3C)
21
30
  * RDF::Vocab::DataCite - [DataCite Ontology](http://purl.org/spar/datacite/)
22
- * RDF::Vocab::DC - [DCMI Metadata Terms](http://purl.org/dc/terms/) (DCMI) - Alias of `RDF::DC`
23
- * RDF::Vocab::DC11 - [Dublin Core Metadata Element Set](http://purl.org/dc/elements/1.1/) (DCMI) - Alias of `RDF::DC11`
24
- * RDF::Vocab::DCAT - [Data Catalog Vocabulary](http://www.w3.org/TR/vocab-dcat/) (DCMI) - Alias of `RDF::DCAT`
31
+ * RDF::Vocab::DBO - [The DBpedia Ontology](http://dbpedia.org/ontology/)
32
+ * RDF::Vocab::DC - [DCMI Metadata Terms](http://purl.org/dc/terms/) (DCMI)
33
+ * RDF::Vocab::DC11 - [Dublin Core Metadata Element Set](http://purl.org/dc/elements/1.1/) (DCMI)
34
+ * RDF::Vocab::DCAT - [Data Catalog Vocabulary](http://www.w3.org/TR/vocab-dcat/) (DCMI)
25
35
  * RDF::Vocab::DCMIType - [DCMI Type Vocabulary](http://dublincore.org/documents/dcmi-terms/) (DCMI)
26
- * RDF::Vocab::DOAP - [Description of a Project (DOAP) vocabulary](https://github.com/edumbill/doap/wiki) - Alias of `RDF::DOAP`
36
+ * RDF::Vocab::DISCO - [DDI-RDF Discovery Vocabulary](http://rdf-vocabulary.ddialliance.org/discovery#) (DDI)
37
+ * RDF::Vocab::DOAP - [Description of a Project (DOAP) vocabulary](https://github.com/edumbill/doap/wiki)
27
38
  * RDF::Vocab::DWC - [Darwin Core](http://rs.tdwg.org/dwc/terms/)
39
+ * RDF::Vocab::EARL - [Evaluation and Report Language (EARL) 1.0 Schema](<http://www.w3.org/ns/earl#) (W3C)
28
40
  * RDF::Vocab::EBUCore - [EBUCore](http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#)
29
41
  * RDF::Vocab::EDM - [Europeana Data Model (EDM)](https://pro.europeana.eu/page/edm-documentation)
30
- * RDF::Vocab::EXIF - [Exif vocabulary workspace](http://www.w3.org/2003/12/exif/) (W3C) - Alias of `RDF::EXIF`
42
+ * RDF::Vocab::EXIF - [Exif vocabulary workspace](http://www.w3.org/2003/12/exif/) (W3C)
31
43
  * RDF::Vocab::Fcrepo4 - [Fedora Commons Repository 4 Ontology](http://fedora.info/definitions/v4/repository)
32
- * RDF::Vocab::FOAF - [Friend of a Friend (FOAF) vocabulary](http://xmlns.com/foaf/spec/) - Alias of `RDF::FOAF`
33
- * RDF::Vocab::GEO - [GEO Vocabulary](http://www.w3.org/2003/01/geo/wgs84_pos#) (W3C) - Alias of `RDF::GEO`
34
- * RDF::Vocab::GR - [Good Relations](http://www.heppnetz.de/projects/goodrelations/) - Alias of `RDF::GR`
35
- * RDF::Vocab::HT - [HTTP Vocabulary in RDF 1.0](http://www.w3.org/TR/HTTP-in-RDF10/) (W3C) - Alias of `RDF::HT`
36
- * RDF::Vocab::ICAL - [iCalendar vocabulary](http://www.w3.org/2002/12/cal/) (W3C) - Alias of `RDF::ICAL`
44
+ * RDF::Vocab::FOAF - [Friend of a Friend (FOAF) vocabulary](http://xmlns.com/foaf/spec/)
45
+ * RDF::Vocab::GEO - [GEO Vocabulary](http://www.w3.org/2003/01/geo/wgs84_pos#) (W3C)
46
+ * RDF::Vocab::GEOJSON - [GEOJSON Vocabulary](https://purl.org/geojson/vocab#)
47
+ * RDF::Vocab::GEONAMES - [GeoNames Ontology Vocabulary](http://www.geonames.org/ontology#)
48
+ * RDF::Vocab::GR - [Good Relations](http://www.heppnetz.de/projects/goodrelations/)
49
+ * RDF::Vocab::GS1 - [GS1 Web Vocabulary for GS1 SmartSearch](http://gs1.org/voc/) (GS1)
50
+ * RDF::Vocab::HT - [HTTP Vocabulary in RDF 1.0](http://www.w3.org/TR/HTTP-in-RDF10/) (W3C)
51
+ * RDF::Vocab::HYDRA - [Hydra Core Vocabulary](http://www.w3.org/ns/hydra/core#) (W3C)
52
+ * RDF::Vocab::IANA - [Link Relations](http://www.iana.org/assignments/relation/) (IANA)
53
+ * RDF::Vocab::ICAL - [iCalendar vocabulary](http://www.w3.org/2002/12/cal/) (W3C)
37
54
  * RDF::Vocab::Identifiers - [Standard Identifiers Scheme](http://id.loc.gov/vocabulary/identifiers.html) (LoC)
38
55
  * RDF::Vocab::IIIF - [International Image Interoperability Framework Presentation API](http://iiif.io/api/presentation/2.0/) (IIIF)
39
56
  * RDF::Vocab::JSONLD - [JSON-LD Vocabulary](http://www.w3.org/ns/json-ld)
40
57
  * RDF::Vocab::LDP - [Linked Data Platform](http://www.w3.org/TR/ldp/) (W3C)
41
58
  * RDF::Vocab::LRMI - [Learning Resources Metadata Initiative](http://dublincore.org/dcx/lrmi-terms/1.1/) (DCMI)
42
- * RDF::Vocab::MA - [Ontology for Media Resources](http://www.w3.org/TR/mediaont-10/) (W3C) - Alias of `RDF::MA`
59
+ * RDF::Vocab::MA - [Ontology for Media Resources](http://www.w3.org/TR/mediaont-10/) (W3C)
43
60
  * RDF::Vocab::MADS - [Metadata Authority Description Schema](http://www.loc.gov/standards/mads/) (LoC)
44
61
  * RDF::Vocab::MARCRelators - [MARC Code List for Relators](http://id.loc.gov/vocabulary/relators.html) (LoC)
45
- * RDF::Vocab::MO - [Music Ontology](http://musicontology.com) - Alias of `RDF::MO`
62
+ * RDF::Vocab::MO - [Music Ontology](http://musicontology.com)
46
63
  * RDF::Vocab::MODS - [Metadata Object Description Schema](http://www.loc.gov/standards/mods/) (LoC)
47
64
  * RDF::Vocab::NFO - [NEPOMUK File Ontology](http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#) (NFO)
48
65
  * RDF::Vocab::OA - [Open Annotation Data Model](http://www.w3.org/ns/oa) (W3C)
49
- * RDF::Vocab::OG - [Open Graph protocol](http://ogp.me) - Alias of `RDF::OG`
50
- * RDF::Vocab::OGC - [Open Graph protocol classes](http://ogp.me) - Alias of `RDF::OGC`
66
+ * RDF::Vocab::OG - [Open Graph protocol](http://ogp.me)
67
+ * RDF::Vocab::OGC - [Open Graph protocol classes](http://ogp.me)
51
68
  * RDF::Vocab::ORE - [Object Reuse and Exchange Ontology](http://www.openarchives.org/ore/1.0/rdfxml) (OAI)
52
- * RDF::Vocab::ORG - [Organization Ontology](http://www.w3.org/TR/vocab-org/) (W3C)
53
- * RDF::Vocab::PCDMModels - [PCDM Models Ontology](http://pcdm.org/models#) (PCDM)
54
- * RDF::Vocab::PPLAN - [P-Plan Ontology](http://www.opmw.org/model/p-plan/)
69
+ * RDF::Vocab::ORG - [Organization Ontology](http://www.w3.org/TR/vocab-org/) (W3C)
70
+ * RDF::Vocab::PCDM - [PCDM Ontology](http://pcdm.org/models#) (PCDM)
71
+ * RDF::Vocab::PPLAN - [P-Plan Ontology](http://www.opmw.org/model/p-plan/)
55
72
  * RDF::Vocab::PREMIS - [Preservation Metadata Implementation Strategies Ontology](http://id.loc.gov/ontologies/premis.html) (LoC)
56
73
  * RDF::Vocab::PremisEventType - [PREMIS Event Type](http://id.loc.gov/vocabulary/preservation/eventType.html) (LoC)
57
- * RDF::Vocab::PROV - [Provenance Ontology](http://www.w3.org/TR/prov-o/) (W3C) - Alias of `RDF::PROV`
58
- * RDF::Vocab::RSA - [The RSA Ontology](http://www.w3.org/ns/auth/rsa) - Alias of `RDF::RSA`
59
- * RDF::Vocab::RSS - [RDF Site Summary](http://web.resource.org/rss/1.0/) - Alias of `RDF::RSS`
60
- * RDF::Vocab::SCHEMA - [Schema.org](http://schema.org) - Alias of `RDF::SCHEMA`
61
- * RDF::Vocab::SIOC - [Semantically-Interlinked Online Communities](http://rdfs.org/sioc/spec/) - Alias of `RDF::SIOC`
74
+ * RDF::Vocab::PROV - [Provenance Ontology](http://www.w3.org/TR/prov-o/) (W3C)
75
+ * RDF::Vocab::PTR - [Pointer Methods in RDF 1.0](https://www.w3.org/TR/Pointers-in-RDF10/) (W3C)
76
+ * RDF::Vocab::RightsStatements - [Rights Statements for Cultural Heritage Institutions](https://rightsstatements.org/en/)
77
+ * RDF::Vocab::RSA - [The RSA Ontology](http://www.w3.org/ns/auth/rsa)
78
+ * RDF::Vocab::RSS - [RDF Site Summary](http://web.resource.org/rss/1.0/)
79
+ * RDF::Vocab::SCHEMA - [Schema.org](http://schema.org)
80
+ * RDF::Vocab::SD - [SPARQL Service Description](https://www.w3.org/TR/sparql11-service-description/) (W3C)
81
+ * RDF::Vocab::SH - [Shapes Constraint Language (SHACL)](https://www.w3.org/TR/shacl/) (W3C)
82
+ * RDF::Vocab::SIOC - [Semantically-Interlinked Online Communities](http://rdfs.org/sioc/spec/)
62
83
  * RDF::Vocab::SiocServices - [SIOC Services](http://rdfs.org/sioc/spec/) (SIOC)
63
- * RDF::Vocab::SKOS - [Simple Knowledge Organization System](http://www.w3.org/TR/skos-reference/) (W3C) - Alias of `RDF::SKOS`
64
- * RDF::Vocab::SKOSXL - [SKOS eXtension for Labels](http://www.w3.org/TR/skos-reference/skos-xl.html) (W3C) - Alias of `RDF::SKOSXL`
65
- * RDF::Vocab::V - [RDF data vocabulary](http://www.data-vocabulary.org) - Alias of `RDF::V`
66
- * RDF::Vocab::VCARD - [Ontology for vCards](http://www.w3.org/TR/vcard-rdf/) (W3C) - Alias of `RDF::VCARD`
67
- * RDF::Vocab::VMD - [RDF data vocabulary](http://www.data-vocabulary.org) - Alias of `RDF::VMD`
68
- * RDF::Vocab::VOID - [Vocabulary of Interlinked Datasets](http://www.w3.org/TR/void/) (W3C) - Alias of `RDF::VOID`
69
- * RDF::Vocab::VS - [SemWeb Vocab Status ontology](http://www.w3.org/2003/06/sw-vocab-status/note.html) (W3C) - Alias of `RDF::VS`
70
- * RDF::Vocab::WOT - [Web of Trust](http://xmlns.com/wot/0.1/) - Alias of `RDF::WOT`
71
- * RDF::Vocab::WDRS - [Protocol for Web Description Resources](http://www.w3.org/TR/powder-primer/) (W3C) - Alias of `RDF::WRDS`
72
- * RDF::Vocab::XHTML - [Extensible HyperText Markup Language](http://www.w3.org/1999/xhtml/) (W3C) - Alias of `RDF::XHTML`
73
- * RDF::Vocab::XHV - [XHTML Vocabulary](http://www.w3.org/1999/xhtml/vocab) (W3C) - Alias of `RDF::XHV`
84
+ * RDF::Vocab::SiocTypes - [SIOC Types Ontology](http://rdfs.org/sioc/spec/) (SIOC)
85
+ * RDF::Vocab::SKOS - [Simple Knowledge Organization System](http://www.w3.org/TR/skos-reference/) (W3C)
86
+ * RDF::Vocab::SKOSXL - [SKOS eXtension for Labels](http://www.w3.org/TR/skos-reference/skos-xl.html) (W3C)
87
+ * RDF::Vocab::V - [RDF data vocabulary](http://www.data-vocabulary.org)
88
+ * RDF::Vocab::VMD - [RDF data vocabulary](http://www.data-vocabulary.org)
89
+ * RDF::Vocab::VCARD - [Ontology for vCards](http://www.w3.org/TR/vcard-rdf/) (W3C)
90
+ * RDF::Vocab::VMD - [RDF data vocabulary](http://www.data-vocabulary.org)
91
+ * RDF::Vocab::VOID - [Vocabulary of Interlinked Datasets](http://www.w3.org/TR/void/) (W3C)
92
+ * RDF::Vocab::VS - [SemWeb Vocab Status ontology](http://www.w3.org/2003/06/sw-vocab-status/note.html) (W3C)
93
+ * RDF::Vocab::WDRS - [Protocol for Web Description Resources](http://www.w3.org/TR/powder-primer/) (W3C)
94
+ * RDF::Vocab::WOT - [Web of Trust](http://xmlns.com/wot/0.1/)
95
+ * RDF::Vocab::XKOS - [XKOS An SKOS extension for representing statistical classifications](https://ddialliance.org/Specification/XKOS/1.2/OWL/xkos.html) (DDI)
96
+ * RDF::Vocab::XHTML - [Extensible HyperText Markup Language](http://www.w3.org/1999/xhtml/) (W3C)
97
+ * RDF::Vocab::XHV - [XHTML Vocabulary](http://www.w3.org/1999/xhtml/vocab) (W3C)
74
98
 
75
99
  ## Installation
76
100
 
@@ -94,7 +118,7 @@ Also adds the `gen-vocab` command to the `rdf` command-line executable to genera
94
118
 
95
119
  * First, add an entry to `lib/rdf/vocab.rb`, the key names contained within
96
120
  for guidance. For more information, see the documentation on
97
- [RDF::Vocabulary](http://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Vocabulary).
121
+ [RDF::Vocabulary](https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Vocabulary).
98
122
  * Next, create an empty file in `lib/rdf/vocab` based on the key name for
99
123
  your vocabulary. For example, if you've added the vocabulary `:foo`, create a
100
124
  new empty file at `lib/rdf/vocab/foo.rb`.
@@ -105,7 +129,7 @@ new empty file at `lib/rdf/vocab/foo.rb`.
105
129
  * [David Chandek-Stark](https://github.com/dchandekstark)
106
130
  * [Aaron Coburn](https://github.com/acoburn)
107
131
  * [Michael J. Giarlo](https://github.com/mjgiarlo)
108
- * [Gregg Kellogg](http://github.com/gkellogg)
132
+ * [Gregg Kellogg](https://github.com/gkellogg)
109
133
 
110
134
  ## Contributing
111
135
 
@@ -125,10 +149,10 @@ This repository uses [Git Flow](https://github.com/nvie/gitflow) to mange develo
125
149
  ## License
126
150
 
127
151
  This is free and unencumbered public domain software. For more information,
128
- see <http://unlicense.org/> or the accompanying {file:LICENSE} file.
152
+ see <https://unlicense.org/> or the accompanying {file:LICENSE} file.
129
153
 
130
- [RDF]: http://www.w3.org/RDF/
131
- [RDF.rb]: http://rubydoc.info/github/ruby-rdf/rdf
132
- [YARD]: http://yardoc.org/
133
- [YARD-GS]: http://rubydoc.info/docs/yard/file/docs/GettingStarted.md
134
- [PDD]: http://lists.w3.org/Archives/Public/public-rdf-ruby/2010May/0013.html
154
+ [RDF]: https://www.w3.org/RDF/
155
+ [RDF.rb]: https://rubydoc.info/github/ruby-rdf/rdf
156
+ [YARD]: https://yardoc.org/
157
+ [YARD-GS]: https://rubydoc.info/docs/yard/file/docs/GettingStarted.md
158
+ [PDD]: https://lists.w3.org/Archives/Public/public-rdf-ruby/2010May/0013.html
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.1
1
+ 3.1.7
@@ -11,6 +11,7 @@ module RDF
11
11
  as: {uri: "https://www.w3.org/ns/activitystreams#", source: 'etc/as.ttl'},
12
12
  bf2: {uri: 'http://id.loc.gov/ontologies/bibframe/'},
13
13
  bibframe: {
14
+ # Obsolete
14
15
  uri: "http://bibframe.org/vocab/",
15
16
  class_name: "Bibframe",
16
17
  skip: true
@@ -60,8 +61,7 @@ module RDF
60
61
  dc: {uri: "http://purl.org/dc/terms/"},
61
62
  dc11: {uri: "http://purl.org/dc/elements/1.1/"},
62
63
  dcat: {
63
- uri: "http://www.w3.org/ns/dcat#",
64
- source: "https://w3c.github.io/dxwg/dcat/rdf/dcat.ttl"
64
+ uri: "http://www.w3.org/ns/dcat#"
65
65
  },
66
66
  dcmitype: {
67
67
  uri: "http://purl.org/dc/dcmitype/",
@@ -87,22 +87,14 @@ module RDF
87
87
  alt_source: "http://rs.tdwg.org/dwc/rdf/dwcterms.rdf",
88
88
  strict: false,
89
89
  },
90
+ earl: {
91
+ uri: "http://www.w3.org/ns/earl#",
92
+ source: "http://www.w3.org/ns/earl",
93
+ },
90
94
  ebucore: {
91
95
  uri: "http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#",
92
96
  source: "https://www.ebu.ch/metadata/ontologies/ebucore/ebucore.rdf",
93
- class_name: "EBUCore",
94
- patch: %{
95
- @prefix ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#> .
96
- @prefix dc: <http://purl.org/dc/terms/> .
97
- @prefix dc11: <http://purl.org/dc/elements/1.1/> .
98
- @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
99
- DeleteExisting {
100
- ebucore:Agent rdfs:subClassOf dc11:Agent .
101
- } .
102
- AddNew {
103
- ebucore:Agent rdfs:subClassOf dc:Agent .
104
- } .
105
- }
97
+ class_name: "EBUCore"
106
98
  },
107
99
  edm: {
108
100
  uri: "http://www.europeana.eu/schemas/edm/",
@@ -220,32 +212,53 @@ module RDF
220
212
  AddNew {:gender a owl:DatatypeProperty .} .
221
213
  }
222
214
  },
223
- marc_relators: {
215
+ marcrelators: {
224
216
  uri: "http://id.loc.gov/vocabulary/relators/",
225
217
  source: "http://id.loc.gov/vocabulary/relators.rdf",
226
- class_name: "MARCRelators",
227
- patch: %{
228
- @prefix marcrelators: <http://id.loc.gov/vocabulary/relators/> .
229
- @prefix owl: <http://www.w3.org/2002/07/owl#>.
230
- @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
231
- #DeleteExisting {
232
- # marcrelators:lee rdfs:subPropertyOf marcrelators:lei .
233
- #} .
234
- #AddNew {
235
- # marcrelators:role a owl:ObjectProperty;
236
- # rdfs:comment "This property and its sub-properties are used to associate a Bibliographic Resource with a Resource that played a part in the lifecycle of the Bibliographic Resource. It is the inverse of relators:roleIn.".
237
- #} .
238
- }
218
+ class_name: "MARCRelators"
239
219
  },
240
220
  mo: {uri: "http://purl.org/ontology/mo/", strict: false},
241
221
  mods: {
242
222
  uri: "http://www.loc.gov/mods/rdf/v1#",
243
223
  source: "http://www.loc.gov/standards/mods/modsrdf/v1/modsrdf.owl"
244
224
  },
245
- nfo: {uri: 'http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#'},
225
+ nfo: {uri: 'http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#', skip: true},
246
226
  oa: {uri: "http://www.w3.org/ns/oa#"},
247
- og: {uri: "http://ogp.me/ns#", strict: false},
248
- ogc: {uri: "http://ogp.me/ns/class#", source: "http://ogp.me/ns", strict: false},
227
+ og: {
228
+ uri: "http://ogp.me/ns#",
229
+ source: 'http://ogp.me/ns/ogp.me.ttl',
230
+ strict: false,
231
+ patch: %{
232
+ @prefix og: <http://ogp.me/ns#> .
233
+ @prefix ogc: <http://ogp.me/ns/class#> .
234
+ @prefix owl: <http://www.w3.org/2002/07/owl#>.
235
+ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
236
+ @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
237
+ # Used in http://ogp.me/ but not defined
238
+ AddNew {
239
+ og:image:url a rdf:Property ;
240
+ rdfs:label "image:url"@en-US ;
241
+ rdfs:comment "Identical to og:image."@en-US ;
242
+ rdfs:seeAlso og:image ;
243
+ rdfs:isDefinedBy og: ;
244
+ owl:sameProperty og:image ;
245
+ rdfs:range ogc:url .
246
+ og:image:alt a rdf:Property ;
247
+ rdfs:label "image:alt"@en-US ;
248
+ rdfs:comment "A description of what is in the image (not a caption). If the page specifies an og:image it should specify og:image:alt."@en-US ;
249
+ rdfs:seeAlso og:image ;
250
+ rdfs:isDefinedBy og: ;
251
+ rdfs:range ogc:string .
252
+ og:locale:alternate a rdf:Property ;
253
+ rdfs:label "locale:alternate"@en-US ;
254
+ rdfs:comment "An array of other locales this page is available in."@en-US ;
255
+ rdfs:seeAlso og:locale ;
256
+ rdfs:isDefinedBy og: ;
257
+ rdfs:range ogc:string .
258
+ } .
259
+ }
260
+ },
261
+ ogc: {uri: "http://ogp.me/ns/class#", source: "http://ogp.me/ns/ogp.me.ttl", strict: false},
249
262
  ore: {uri: "http://www.openarchives.org/ore/terms/"},
250
263
  org: {uri: "http://www.w3.org/ns/org#"},
251
264
  owl: {uri: "http://www.w3.org/2002/07/owl#", alias: true},
@@ -254,8 +267,11 @@ module RDF
254
267
  source: "https://raw.githubusercontent.com/duraspace/pcdm/master/models.rdf"
255
268
  },
256
269
  pplan: {uri: "http://purl.org/net/p-plan#"},
257
- premis: {uri: "http://www.loc.gov/premis/rdf/v1#", source: "http://www.loc.gov/premis/rdf/v1.rdf"},
258
- premis_event_type: {
270
+ premis: {
271
+ uri: "http://www.loc.gov/premis/rdf/v1#",
272
+ source: "http://www.loc.gov/premis/rdf/v1.rdf"
273
+ },
274
+ premiseventtype: {
259
275
  uri: "http://id.loc.gov/vocabulary/preservation/eventType/",
260
276
  source: "http://id.loc.gov/vocabulary/preservation/eventType",
261
277
  class_name: "PremisEventType"
@@ -293,13 +309,14 @@ module RDF
293
309
  uri: "http://schema.org/",
294
310
  source: "http://schema.org/version/latest/all-layers.nq"
295
311
  },
296
- sh: { uri: 'http://www.w3.org/ns/shacl#', source: 'https://www.w3.org/ns/shacl.ttl' },
312
+ sd: {uri: 'http://www.w3.org/ns/sparql-service-description#', source: 'http://www.w3.org/ns/sparql-service-description.ttl'},
313
+ sh: {uri: 'http://www.w3.org/ns/shacl#', source: 'https://www.w3.org/ns/shacl.ttl'},
297
314
  sioc: {uri: "http://rdfs.org/sioc/ns#"},
298
- sioc_services: {
315
+ siocservices: {
299
316
  uri: "http://rdfs.org/sioc/services#",
300
317
  class_name: "SiocServices"
301
318
  },
302
- sioct: {uri: "http://rdfs.org/sioc/types#", class_name: "SiocTypes"},
319
+ sioctypes: {uri: "http://rdfs.org/sioc/types#", class_name: "SiocTypes"},
303
320
  skos: {uri: "http://www.w3.org/2004/02/skos/core#"},
304
321
  skosxl: {uri: "http://www.w3.org/2008/05/skos-xl#", source: "http://www.w3.org/TR/skos-reference/skos-xl.rdf"},
305
322
  v: {uri: "http://rdf.data-vocabulary.org/#", source: "etc/rdf.data-vocab.ttl"},
@@ -320,14 +337,13 @@ module RDF
320
337
 
321
338
  # Autoload vocabularies
322
339
  VOCABS.each do |id, params|
323
- v = params.fetch(:class_name, id.to_s.upcase).to_sym
340
+ v = (params[:class_name] ||= id.to_s.upcase).to_sym
324
341
  autoload v, File.expand_path("../vocab/#{id}", __FILE__) unless params[:alias]
325
342
  end
326
343
 
327
344
  # Aliases for vocabularies still defined directly in RDF.rb
328
345
  def self.const_missing(constant)
329
346
  if VOCABS.fetch(constant.to_s.downcase.to_sym, {})[:alias]
330
- require "rdf/vocab/#{constant.to_s.downcase}"
331
347
  const_set(constant, RDF.const_get(constant))
332
348
  else
333
349
  super
@@ -5,9 +5,92 @@ require 'rdf'
5
5
  module RDF::Vocab
6
6
  # @!parse
7
7
  # # Vocabulary for <http://www.w3.org/ns/auth/acl#>
8
+ # #
9
+ # # Basic Access Control ontology
10
+ # #
11
+ # # Defines the class Authorization and its essential properties, and also some classes of access such as read and write.
8
12
  # class ACL < RDF::StrictVocabulary
13
+ # # Any kind of access to a resource. Don't use this, use R W and RW
14
+ # # @return [RDF::Vocabulary::Term]
15
+ # attr_reader :Access
16
+ #
17
+ # # Append accesses are specific write access which only add information, and do not remove information. For text files, for example, append access allows bytes to be added onto the end of the file. For RDF graphs, Append access allows adds triples to the graph but does not remove any. Append access is useful for dropbox functionality. Dropbox can be used for link notification, which the information added is a notification that a some link has been made elsewhere relevant to the given resource.
18
+ # # @return [RDF::Vocabulary::Term]
19
+ # attr_reader :Append
20
+ #
21
+ # # A class of agents who have been authenticated. In other words, anyone can access this resource, but not anonymously. The social expectation is that the authentication process will provide an identify and a name, or pseudonym. (A new ID should not be minted for every access: the intent is that the user is able to continue to use the ID for continues interactions with peers, and for example to develop a reputation)
22
+ # # @return [RDF::Vocabulary::Term]
23
+ # attr_reader :AuthenticatedAgent
24
+ #
25
+ # # An element of access control, allowing agent to agents access of some kind to resources or classes of resources
26
+ # # @return [RDF::Vocabulary::Term]
27
+ # attr_reader :Authorization
28
+ #
29
+ # # Allows read/write access to the ACL for the resource(s)
30
+ # # @return [RDF::Vocabulary::Term]
31
+ # attr_reader :Control
32
+ #
33
+ # # An Origin is basically a web site (Note WITHOUT the trailing slash after the domain name and port in its URI) and is the basis for controlling access to data by web apps in the Same Origin Model of web security. All scripts from the same origin are given the same right.
34
+ # # @return [RDF::Vocabulary::Term]
35
+ # attr_reader :Origin
36
+ #
37
+ # # The class of read operations
38
+ # # @return [RDF::Vocabulary::Term]
39
+ # attr_reader :Read
40
+ #
41
+ # # @return [RDF::Vocabulary::Term]
42
+ # attr_reader :Write
43
+ #
44
+ # # The Access Control file for this information resource. This may of course be a virtual resource implemented by the access control system. Note also HTTP's header Link: foo.meta ;rel=meta can be used for this.
45
+ # # @return [RDF::Vocabulary::Term]
46
+ # attr_reader :accessControl
47
+ #
48
+ # # The information resource to which access is being granted.
49
+ # # @return [RDF::Vocabulary::Term]
50
+ # attr_reader :accessTo
51
+ #
52
+ # # A class of information resources to which access is being granted.
53
+ # # @return [RDF::Vocabulary::Term]
54
+ # attr_reader :accessToClass
55
+ #
56
+ # # A person or social entity to being given the right
57
+ # # @return [RDF::Vocabulary::Term]
58
+ # attr_reader :agent
59
+ #
60
+ # # A class of persons or social entities to being given the right
61
+ # # @return [RDF::Vocabulary::Term]
62
+ # attr_reader :agentClass
63
+ #
64
+ # # A group of persons or social entities to being given the right. The right is given to any entity which is a vcard:member of the group, as defined by the document received when the Group is dereferenced.
65
+ # # @return [RDF::Vocabulary::Term]
66
+ # attr_reader :agentGroup
67
+ #
68
+ # # If a resource has no ACL file (it is 404), then access to the resource if given by the ACL of the immediately containing directory, or failing that (404) the ACL of the recursively next containing directory which has an ACL file. Within that ACL file, any Authentication which has that directory as its acl:default applies to the resource. (The highest directory must have an ACL file.)
69
+ # # @return [RDF::Vocabulary::Term]
70
+ # attr_reader :default
71
+ #
72
+ # # THIS IS OBSOLETE AS OF 2017-08-01. See 'default'. Was: A directory for which this authorization is used for new files in the directory.
73
+ # # @return [RDF::Vocabulary::Term]
74
+ # attr_reader :defaultForNew
75
+ #
76
+ # # Delegates a person or another agent to act on behalf of the agent. For example, Alice delegates Bob to act on behalf of Alice for ACL purposes.
77
+ # # @return [RDF::Vocabulary::Term]
78
+ # attr_reader :delegates
79
+ #
80
+ # # A mode of access such as read or write.
81
+ # # @return [RDF::Vocabulary::Term]
82
+ # attr_reader :mode
83
+ #
84
+ # # A web application, identified by its Origin, such as <https://scripts.example.com>, being given the right. When a user of the web application at a certain origin accesses the server, then the browser sets the Origin: header to warn that a possibly untrusted webapp is being used. Then, BOTH the user AND the origin must have the required access.
85
+ # # @return [RDF::Vocabulary::Term]
86
+ # attr_reader :origin
87
+ #
88
+ # # The person or other agent which owns this. For example, the owner of a file in a filesystem. There is a sense of right to control. Typically defaults to the agent who craeted something but can be changed.
89
+ # # @return [RDF::Vocabulary::Term]
90
+ # attr_reader :owner
91
+ #
9
92
  # end
10
- class ACL < RDF::StrictVocabulary("http://www.w3.org/ns/auth/acl#")
93
+ ACL = Class.new(RDF::StrictVocabulary("http://www.w3.org/ns/auth/acl#")) do
11
94
 
12
95
  # Ontology definition
13
96
  ontology :"http://www.w3.org/ns/auth/acl#",