rdf-vocab 3.1.14 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,30 +10,45 @@ module RDF::Vocab
10
10
  comment: "DCAT is an RDF vocabulary designed to facilitate interoperability between data catalogs published on the Web. By using DCAT to describe datasets in data catalogs, publishers increase discoverability and enable applications easily to consume metadata from multiple catalogs. It further enables decentralized publishing of catalogs and facilitates federated dataset search across sites. Aggregated DCAT metadata can serve as a manifest file to facilitate digital preservation. DCAT is defined at http://www.w3.org/TR/vocab-dcat/. Any variance between that normative document and this schema is an error in this schema.".freeze,
11
11
  editorialNote: "English language definitions updated in this revision in line with ED. Multilingual text unevenly updated.".freeze,
12
12
  "http://purl.org/dc/terms/contributor": [term(
13
- "http://schema.org/affiliation": "_:g10400".freeze,
14
- "http://www.w3.org/2000/01/rdf-schema#seeAlso": "https://orcid.org/0000-0002-3884-3420".freeze,
15
- "http://xmlns.com/foaf/0.1/name": "Simon J D Cox".freeze,
16
- "http://xmlns.com/foaf/0.1/workInfoHomepage": "http://people.csiro.au/Simon-Cox".freeze,
17
- type: "http://xmlns.com/foaf/0.1/Person".freeze
13
+ "http://schema.org/affiliation": "http://www.w3.org/data#W3C".freeze,
14
+ "http://www.w3.org/2000/01/rdf-schema#seeAlso": "http://philarcher.org/foaf.rdf#me".freeze,
15
+ "http://xmlns.com/foaf/0.1/homepage": "http://www.w3.org/People/all#phila".freeze,
16
+ "http://xmlns.com/foaf/0.1/name": "Phil Archer".freeze
18
17
  ), term(
19
- "http://schema.org/affiliation": "_:g10420".freeze,
18
+ "http://schema.org/affiliation": term(
19
+ "http://xmlns.com/foaf/0.1/homepage": "http://ec.europa.eu/dgs/informatics/".freeze,
20
+ "http://xmlns.com/foaf/0.1/name": "European Commission, DG DIGIT".freeze
21
+ ).freeze,
20
22
  "http://xmlns.com/foaf/0.1/name": "Vassilios Peristeras".freeze
21
23
  ), term(
22
- "http://schema.org/affiliation": "_:g10440".freeze,
23
- "http://xmlns.com/foaf/0.1/name": "David Browning".freeze
24
+ "http://schema.org/affiliation": term(
25
+ "http://xmlns.com/foaf/0.1/homepage": "http://okfn.org".freeze,
26
+ "http://xmlns.com/foaf/0.1/name": "Open Knowledge Foundation".freeze
27
+ ).freeze,
28
+ "http://xmlns.com/foaf/0.1/name": "Rufus Pollock".freeze
24
29
  ), term(
25
- "http://schema.org/affiliation": "_:g10460".freeze,
30
+ "http://schema.org/affiliation": term(
31
+ "http://xmlns.com/foaf/0.1/homepage": "http://stfc.ac.uk".freeze,
32
+ "http://xmlns.com/foaf/0.1/name": "Science and Technology Facilities Council, UK".freeze
33
+ ).freeze,
26
34
  "http://www.w3.org/2000/01/rdf-schema#seeAlso": "https://orcid.org/0000-0003-3499-8262".freeze,
27
35
  "http://xmlns.com/foaf/0.1/homepage": "https://agbeltran.github.io".freeze,
28
36
  "http://xmlns.com/foaf/0.1/name": "Alejandra Gonzalez-Beltran".freeze
29
37
  ), term(
30
- "http://schema.org/affiliation": "_:g10540".freeze,
31
- "http://xmlns.com/foaf/0.1/name": "Rufus Pollock".freeze
38
+ "http://schema.org/affiliation": term(
39
+ "http://xmlns.com/foaf/0.1/homepage": "http://www.refinitiv.com".freeze,
40
+ "http://xmlns.com/foaf/0.1/name": "Refinitiv".freeze
41
+ ).freeze,
42
+ "http://xmlns.com/foaf/0.1/name": "David Browning".freeze
32
43
  ), term(
33
- "http://schema.org/affiliation": "http://www.w3.org/data#W3C".freeze,
34
- "http://www.w3.org/2000/01/rdf-schema#seeAlso": "http://philarcher.org/foaf.rdf#me".freeze,
35
- "http://xmlns.com/foaf/0.1/homepage": "http://www.w3.org/People/all#phila".freeze,
36
- "http://xmlns.com/foaf/0.1/name": "Phil Archer".freeze
44
+ "http://schema.org/affiliation": term(
45
+ "http://xmlns.com/foaf/0.1/homepage": "https://csiro.au".freeze,
46
+ "http://xmlns.com/foaf/0.1/name": "Commonwealth Scientific and Industrial Research Organisation".freeze
47
+ ).freeze,
48
+ "http://www.w3.org/2000/01/rdf-schema#seeAlso": "https://orcid.org/0000-0002-3884-3420".freeze,
49
+ "http://xmlns.com/foaf/0.1/name": "Simon J D Cox".freeze,
50
+ "http://xmlns.com/foaf/0.1/workInfoHomepage": "http://people.csiro.au/Simon-Cox".freeze,
51
+ type: "http://xmlns.com/foaf/0.1/Person".freeze
37
52
  ), term(
38
53
  "http://www.w3.org/2000/01/rdf-schema#seeAlso": "http://makxdekkers.com/makxdekkers.rdf#me".freeze,
39
54
  "http://xmlns.com/foaf/0.1/homepage": "http://makxdekkers.com/".freeze,
@@ -47,7 +62,7 @@ module RDF::Vocab
47
62
  "http://xmlns.com/foaf/0.1/name": "Jakub Klímek".freeze
48
63
  ), term(
49
64
  "http://www.w3.org/2000/01/rdf-schema#seeAlso": "https://orcid.org/0000-0001-5648-2713".freeze,
50
- "http://xmlns.com/foaf/0.1/homepage": ["https://w3id.org/people/ralbertoni/".freeze,"http://www.imati.cnr.it/index.php/people/8-curricula/178-riccardo-albertoni".freeze],
65
+ "http://xmlns.com/foaf/0.1/homepage": ["http://www.imati.cnr.it/index.php/people/8-curricula/178-riccardo-albertoni".freeze,"https://w3id.org/people/ralbertoni/".freeze],
51
66
  "http://xmlns.com/foaf/0.1/name": "Riccardo Albertoni".freeze
52
67
  ), term(
53
68
  "http://www.w3.org/2000/01/rdf-schema#seeAlso": "https://orcid.org/0000-0001-9300-2694".freeze,
@@ -72,7 +87,7 @@ module RDF::Vocab
72
87
  "http://xmlns.com/foaf/0.1/name": "John Erickson".freeze
73
88
  )],
74
89
  "http://purl.org/dc/terms/license": "https://creativecommons.org/licenses/by/4.0/".freeze,
75
- "http://purl.org/dc/terms/modified": ["2012-04-24".freeze, "2013-09-20".freeze, "2013-11-28".freeze, "2017-12-19".freeze, "2019".freeze, "2020-11-30".freeze],
90
+ "http://purl.org/dc/terms/modified": ["2012-04-24".freeze, "2013-09-20".freeze, "2013-11-28".freeze, "2017-12-19".freeze, "2019".freeze, "2020-11-30".freeze, "2021-09-14".freeze],
76
91
  "http://www.w3.org/2002/07/owl#imports": ["http://purl.org/dc/terms/".freeze, "http://www.w3.org/2004/02/skos/core".freeze, "http://www.w3.org/ns/prov-o#".freeze],
77
92
  "http://www.w3.org/2002/07/owl#versionInfo": ["Questa è una copia aggiornata del vocabolario DCAT v2.0 disponibile in https://www.w3.org/ns/dcat.ttl".freeze, "This is an updated copy of v2.0 of the DCAT vocabulary, taken from https://www.w3.org/ns/dcat.ttl".freeze],
78
93
  "http://xmlns.com/foaf/0.1/maker": term(
@@ -90,11 +105,7 @@ module RDF::Vocab
90
105
  "http://www.w3.org/2004/02/skos/core#scopeNote": "A web-based data catalog is typically represented as a single instance of this class.".freeze,
91
106
  isDefinedBy: "http://www.w3.org/TR/vocab-dcat/".freeze,
92
107
  label: "Catalog".freeze,
93
- subClassOf: ["http://www.w3.org/ns/dcat#Dataset".freeze, term(
94
- allValuesFrom: "http://www.w3.org/ns/dcat#Resource".freeze,
95
- onProperty: "http://purl.org/dc/terms/hasPart".freeze,
96
- type: "http://www.w3.org/2002/07/owl#Restriction".freeze
97
- )],
108
+ subClassOf: "http://www.w3.org/ns/dcat#Dataset".freeze,
98
109
  type: ["http://www.w3.org/2000/01/rdf-schema#Class".freeze, "http://www.w3.org/2002/07/owl#Class".freeze]
99
110
  term :CatalogRecord,
100
111
  comment: "A record in a data catalog, describing the registration of a single dataset or data service.".freeze,
@@ -119,11 +130,7 @@ module RDF::Vocab
119
130
  "http://www.w3.org/2004/02/skos/core#changeNote": "New class added in DCAT 2.0.".freeze,
120
131
  "http://www.w3.org/2004/02/skos/core#scopeNote": ["If a dcat:DataService is bound to one or more specified Datasets, they are indicated by the dcat:servesDataset property.".freeze, "The kind of service can be indicated using the dct:type property. Its value may be taken from a controlled vocabulary such as the INSPIRE spatial data service type vocabulary.".freeze],
121
132
  label: "Data service".freeze,
122
- subClassOf: ["http://purl.org/dc/dcmitype/Service".freeze, "http://www.w3.org/ns/dcat#Resource".freeze, term(
123
- maxCardinality: "1".freeze,
124
- onProperty: "http://www.w3.org/ns/dcat#endpointURL".freeze,
125
- type: "http://www.w3.org/2002/07/owl#Restriction".freeze
126
- )],
133
+ subClassOf: ["http://purl.org/dc/dcmitype/Service".freeze, "http://www.w3.org/ns/dcat#Resource".freeze],
127
134
  type: "http://www.w3.org/2002/07/owl#Class".freeze
128
135
  term :Dataset,
129
136
  comment: "A collection of data, published or curated by a single source, and available for access or download in one or more representations.".freeze,
@@ -148,11 +155,6 @@ module RDF::Vocab
148
155
  "http://www.w3.org/2004/02/skos/core#changeNote": "New class added in DCAT 2.0.".freeze,
149
156
  "http://www.w3.org/2004/02/skos/core#scopeNote": "Use to characterize a relationship between datasets, and potentially other resources, where the nature of the relationship is known but is not adequately characterized by the standard Dublin Core properties (dct:hasPart, dct:isPartOf, dct:conformsTo, dct:isFormatOf, dct:hasFormat, dct:isVersionOf, dct:hasVersion, dct:replaces, dct:isReplacedBy, dct:references, dct:isReferencedBy, dct:requires, dct:isRequiredBy) or PROV-O properties (prov:wasDerivedFrom, prov:wasInfluencedBy, prov:wasQuotedFrom, prov:wasRevisionOf, prov:hadPrimarySource, prov:alternateOf, prov:specializationOf).".freeze,
150
157
  label: "Relationship".freeze,
151
- subClassOf: term(
152
- minCardinality: "1".freeze,
153
- onProperty: "http://purl.org/dc/terms/relation".freeze,
154
- type: "http://www.w3.org/2002/07/owl#Restriction".freeze
155
- ),
156
158
  type: "http://www.w3.org/2002/07/owl#Class".freeze
157
159
  term :Resource,
158
160
  comment: "Resource published or curated by a single agent.".freeze,
data/lib/rdf/vocab/edm.rb CHANGED
@@ -109,7 +109,10 @@ module RDF::Vocab
109
109
  note: "This class has been mostly motivated by the need to assign a type to the “central node” in the EDM pattern, during the ingestion process, related to the XML expression of EDM at that stage. It was especially intended to fit the cases where edm:PhysicalThing cannot be used as the type of the resource standing for the real-world object (independently of any specific data contributor perspective).".freeze,
110
110
  subClassOf: term(
111
111
  cardinality: "1".freeze,
112
- onProperty: "_:g11900".freeze,
112
+ onProperty: term(
113
+ inverseOf: "http://www.europeana.eu/schemas/edm/aggregatedCHO".freeze,
114
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
115
+ ).freeze,
113
116
  type: "http://www.w3.org/2002/07/owl#Restriction".freeze
114
117
  ),
115
118
  type: "http://www.w3.org/2002/07/owl#Class".freeze
@@ -155,7 +158,16 @@ module RDF::Vocab
155
158
  definition: "The geographic location and/or name of the repository, building, site, or other entity whose boundaries presently include the resource.".freeze,
156
159
  domain: term(
157
160
  type: "http://www.w3.org/2002/07/owl#Class".freeze,
158
- unionOf: list("http://www.europeana.eu/schemas/edm/ProvidedCHO".freeze, "_:g12720".freeze)
161
+ unionOf: list("http://www.europeana.eu/schemas/edm/ProvidedCHO".freeze, term(
162
+ intersectionOf: list(term(
163
+ type: "http://www.w3.org/2002/07/owl#Class".freeze
164
+ ), term(
165
+ onProperty: "http://www.openarchives.org/ore/terms/proxyFor".freeze,
166
+ someValuesFrom: "http://www.europeana.eu/schemas/edm/ProvidedCHO".freeze,
167
+ type: "http://www.w3.org/2002/07/owl#Restriction".freeze
168
+ )),
169
+ type: "http://www.w3.org/2002/07/owl#Class".freeze
170
+ ))
159
171
  ),
160
172
  equivalentProperty: ["http://www.cidoc-crm.org/rdfs/cidoc-crm#P55_has_current_location".freeze, "http://www.w3.org/2003/01/geo/wgs84_pos#location".freeze],
161
173
  label: "Current Location".freeze,
@@ -200,7 +212,16 @@ module RDF::Vocab
200
212
  definition: "This property relates a resource with the concepts it belongs to in a suitable\ntype system such as MIME or any thesaurus that captures categories of objects in a given field (e.g., the “Objects” facet in Getty’s Art and Architecture Thesaurus). It does not capture aboutness.".freeze,
201
213
  domain: term(
202
214
  type: "http://www.w3.org/2002/07/owl#Class".freeze,
203
- unionOf: list("http://www.europeana.eu/schemas/edm/ProvidedCHO".freeze, "_:g12820".freeze)
215
+ unionOf: list("http://www.europeana.eu/schemas/edm/ProvidedCHO".freeze, term(
216
+ intersectionOf: list(term(
217
+ type: "http://www.w3.org/2002/07/owl#Class".freeze
218
+ ), term(
219
+ onProperty: "http://www.openarchives.org/ore/terms/proxyFor".freeze,
220
+ someValuesFrom: "http://www.europeana.eu/schemas/edm/ProvidedCHO".freeze,
221
+ type: "http://www.w3.org/2002/07/owl#Restriction".freeze
222
+ )),
223
+ type: "http://www.w3.org/2002/07/owl#Class".freeze
224
+ ))
204
225
  ),
205
226
  equivalentProperty: "http://www.cidoc-crm.org/rdfs/cidoc-crm#P2_has_type".freeze,
206
227
  label: "Has Type".freeze,
@@ -226,7 +247,16 @@ module RDF::Vocab
226
247
  label: "Is Annotation Of".freeze,
227
248
  range: term(
228
249
  type: "http://www.w3.org/2002/07/owl#Class".freeze,
229
- unionOf: list("http://www.europeana.eu/schemas/edm/ProvidedCHO".freeze, "_:g12260".freeze)
250
+ unionOf: list("http://www.europeana.eu/schemas/edm/ProvidedCHO".freeze, term(
251
+ intersectionOf: list(term(
252
+ type: "http://www.w3.org/2002/07/owl#Class".freeze
253
+ ), term(
254
+ onProperty: "http://www.openarchives.org/ore/terms/proxyFor".freeze,
255
+ someValuesFrom: "http://www.europeana.eu/schemas/edm/ProvidedCHO".freeze,
256
+ type: "http://www.w3.org/2002/07/owl#Restriction".freeze
257
+ )),
258
+ type: "http://www.w3.org/2002/07/owl#Class".freeze
259
+ ))
230
260
  ),
231
261
  subPropertyOf: ["http://purl.org/dc/elements/1.1/subject".freeze, "http://www.cidoc-crm.org/rdfs/cidoc-crm#P67_refers_to".freeze],
232
262
  type: "http://www.w3.org/2002/07/owl#ObjectProperty".freeze
@@ -245,7 +275,16 @@ module RDF::Vocab
245
275
  definition: "edm:isRelatedTo is the most general contextual property in EDM. Contextual\nproperties have typically to do either with the things that have happened to or together with the object under consideration, or what the object refers to by its shape, form or features in a figural or encoded form. For sake of simplicity, we include in the contextual relationships also the scholarly classification, which may have either to do with the role and cultural connections of the object in the past, or its kind of structure, substance or contents as it can be verified at present.".freeze,
246
276
  domain: term(
247
277
  type: "http://www.w3.org/2002/07/owl#Class".freeze,
248
- unionOf: list("http://www.europeana.eu/schemas/edm/ProvidedCHO".freeze, "_:g12880".freeze)
278
+ unionOf: list("http://www.europeana.eu/schemas/edm/ProvidedCHO".freeze, term(
279
+ intersectionOf: list(term(
280
+ type: "http://www.w3.org/2002/07/owl#Class".freeze
281
+ ), term(
282
+ onProperty: "http://www.openarchives.org/ore/terms/proxyFor".freeze,
283
+ someValuesFrom: "http://www.europeana.eu/schemas/edm/ProvidedCHO".freeze,
284
+ type: "http://www.w3.org/2002/07/owl#Restriction".freeze
285
+ )),
286
+ type: "http://www.w3.org/2002/07/owl#Class".freeze
287
+ ))
249
288
  ),
250
289
  label: "Is Related To".freeze,
251
290
  type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
@@ -23,7 +23,7 @@ module RDF
23
23
  RDF::Vocab::VOCABS.each do |n, params|
24
24
  clsname = params[:class_name].to_sym
25
25
  RDF::Vocab.const_get(clsname) # Forces class to load
26
- end unless @classes_loaded
26
+ end unless instance_variable_defined?(:@classes_loaded) && @classes_loaded
27
27
  @classes_loaded = true
28
28
  end
29
29
  _orig_each(&block)
@@ -40,12 +40,12 @@ module RDF
40
40
  RDF::Vocab::VOCABS.transform_values(&:freeze))
41
41
  end
42
42
 
43
+ alias_method :_orig_from_sym, :from_sym
43
44
  ##
44
45
  # Return the vocabulary based on it's class_name symbol
45
46
  #
46
47
  # @param [Symbol] sym
47
48
  # @return [RDF::Vocabulary]
48
- alias_method :_orig_from_sym, :from_sym
49
49
  def from_sym(sym)
50
50
  RDF::Vocab.const_defined?(sym.to_sym) ?
51
51
  RDF::Vocab.const_get(sym.to_sym) : _orig_from_sym(sym)
@@ -90,8 +90,8 @@ module RDF
90
90
  ##
91
91
  # Generate Turtle representation, specific to vocabularies
92
92
  #
93
- # @param [RDF::Queryable] :graph Optional graph, otherwise uses statements from vocabulary.
94
- # @param [Hash{#to_sym => String}] Prefixes to add to output
93
+ # @param [RDF::Queryable] graph Optional graph, otherwise uses statements from vocabulary.
94
+ # @param [Hash{#to_sym => String}] prefixes to add to output
95
95
  # @return [String]
96
96
  def to_ttl(graph: nil, prefixes: nil)
97
97
  require 'rdf/turtle'
@@ -170,8 +170,8 @@ module RDF
170
170
  ##
171
171
  # Generate JSON-LD representation, specific to vocabularies
172
172
  #
173
- # @param [RDF::Queryable] :graph Optional graph, otherwise uses statements from vocabulary.
174
- # @param [Hash{#to_sym => String}] Prefixes to add to output
173
+ # @param [RDF::Queryable] graph Optional graph, otherwise uses statements from vocabulary.
174
+ # @param [Hash{#to_sym => String}] prefixes to add to output
175
175
  # @return [String]
176
176
  def to_jsonld(graph: nil, prefixes: nil)
177
177
  require 'json/ld'