rdf-vocab 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -3
- data/lib/rdf/vocab.rb +17 -7
- data/lib/rdf/vocab/iiif.rb +173 -0
- data/lib/rdf/vocab/jsonld.rb +37 -0
- data/lib/rdf/vocab/sioc_services.rb +70 -0
- data/spec/vocab_spec.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c91075924fd6497ff6e1322dfe40a5e9dd456a0
|
4
|
+
data.tar.gz: d7695847cbc7d243c2a2c4cbed239211a89dc608
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00194c20193bc5171232b93402a450df21062ecbb6f5cc898535db6c644e69c78a739049bd2d770535c372b090a4d2735ccccbf0570b06054dd91358161140a9
|
7
|
+
data.tar.gz: 921a8040be9bcb70fd5535e8dde7db8dfbe7a390731a919b0a2ead1281af533ca17dcb7d0298aa8be30cda30ba054e43b7b10b087f88668bffe40ebf70985b7b
|
data/README.md
CHANGED
@@ -15,7 +15,7 @@ Common OWL/RDFS Vocabularies for use with Ruby [RDF.rb][]
|
|
15
15
|
* RDF::Vocab::DC - [DCMI Metadata Terms](http://purl.org/dc/terms/) (DCMI) - Alias of `RDF::DC`
|
16
16
|
* RDF::Vocab::DC11 - [Dublin Core Metadata Element Set](http://purl.org/dc/elements/1.1/) (DCMI) - Alias of `RDF::DC11`
|
17
17
|
* RDF::Vocab::DCAT - [Data Catalog Vocabulary](http://www.w3.org/TR/vocab-dcat/) (DCMI) - Alias of `RDF::DCAT`
|
18
|
-
* RDF::Vocab::
|
18
|
+
* RDF::Vocab::DCMIType - [DCMI Type Vocabulary](http://dublincore.org/documents/dcmi-terms/) (DCMI)
|
19
19
|
* RDF::Vocab::DOAP - [Description of a Project (DOAP) vocabulary](https://github.com/edumbill/doap/wiki) - Alias of `RDF::DOAP`
|
20
20
|
* RDF::Vocab::DWC - [Darwin Core](http://rs.tdwg.org/dwc/terms/)
|
21
21
|
* RDF::Vocab::EXIF - [Exif vocabulary workspace](http://www.w3.org/2003/12/exif/) (W3C) - Alias of `RDF::EXIF`
|
@@ -26,6 +26,8 @@ Common OWL/RDFS Vocabularies for use with Ruby [RDF.rb][]
|
|
26
26
|
* RDF::Vocab::HT - [HTTP Vocabulary in RDF 1.0](http://www.w3.org/TR/HTTP-in-RDF10/) (W3C) - Alias of `RDF::HT`
|
27
27
|
* RDF::Vocab::ICAL - [iCalendar vocabulary](http://www.w3.org/2002/12/cal/) (W3C) - Alias of `RDF::ICAL`
|
28
28
|
* RDF::Vocab::Identifiers - [Standard Identifiers Scheme](http://id.loc.gov/vocabulary/identifiers.html) (LoC)
|
29
|
+
* RDF::Vocab::IIIF - [International Image Interoperability Framework Presentation API](http://iiif.io/api/presentation/2.0/) (IIIF)
|
30
|
+
* RDF::Vocab::JSONLD - [JSON-LD Vocabulary](http://www.w3.org/ns/json-ld)
|
29
31
|
* RDF::Vocab::LDP - [Linked Data Platform](http://www.w3.org/TR/ldp/) (W3C)
|
30
32
|
* RDF::Vocab::MA - [Ontology for Media Resources](http://www.w3.org/TR/mediaont-10/) (W3C) - Alias of `RDF::MA`
|
31
33
|
* RDF::Vocab::MADS - [Metadata Authority Description Schema](http://www.loc.gov/standards/mads/) (LoC)
|
@@ -43,6 +45,7 @@ Common OWL/RDFS Vocabularies for use with Ruby [RDF.rb][]
|
|
43
45
|
* RDF::Vocab::RSS - [RDF Site Summary](http://web.resource.org/rss/1.0/) - Alias of `RDF::RSS`
|
44
46
|
* RDF::Vocab::SCHEMA - [Schema.org](http://schema.org) - Alias of `RDF::SCHEMA`
|
45
47
|
* RDF::Vocab::SIOC - [Semantically-Interlinked Online Communities](http://rdfs.org/sioc/spec/) - Alias of `RDF::SIOC`
|
48
|
+
* RDF::Vocab::SiocServices - [SIOC Services](http://rdfs.org/sioc/spec/) (SIOC)
|
46
49
|
* RDF::Vocab::SKOS - [Simple Knowledge Organization System](http://www.w3.org/TR/skos-reference/) (W3C) - Alias of `RDF::SKOS`
|
47
50
|
* RDF::Vocab::SKOSXL - [SKOS eXtension for Labels](http://www.w3.org/TR/skos-reference/skos-xl.html) (W3C) - Alias of `RDF::SKOSXL`
|
48
51
|
* RDF::Vocab::V - [RDF data vocabulary](http://www.data-vocabulary.org) - Alias of `RDF::V`
|
@@ -64,11 +67,11 @@ Add to your Gemfile
|
|
64
67
|
then
|
65
68
|
|
66
69
|
bundle install
|
67
|
-
|
70
|
+
|
68
71
|
## Usage
|
69
72
|
|
70
73
|
require "rdf/vocab"
|
71
|
-
|
74
|
+
|
72
75
|
This will load all the vocabulary classes in the library.
|
73
76
|
|
74
77
|
## Authors
|
data/lib/rdf/vocab.rb
CHANGED
@@ -6,7 +6,7 @@ module RDF
|
|
6
6
|
module Vocab
|
7
7
|
autoload :VERSION, 'rdf/vocab/version'
|
8
8
|
VOCABS = {
|
9
|
-
acl:
|
9
|
+
acl: {uri: "http://www.w3.org/ns/auth/acl#"},
|
10
10
|
bibframe: {
|
11
11
|
uri: "http://bibframe.org/vocab/",
|
12
12
|
source: "http://bibframe.org/vocab.rdf",
|
@@ -15,8 +15,8 @@ module RDF
|
|
15
15
|
},
|
16
16
|
cc: {uri: "http://creativecommons.org/ns#", alias: true},
|
17
17
|
cert: {uri: "http://www.w3.org/ns/auth/cert#", alias: true},
|
18
|
-
cnt:
|
19
|
-
crm:
|
18
|
+
cnt: {uri: "http://www.w3.org/2011/content#"},
|
19
|
+
crm: {uri: "http://www.cidoc-crm.org/cidoc-crm/", source: "etc/crm.rdf"},
|
20
20
|
datacite: {
|
21
21
|
uri: "http://purl.org/spar/datacite/",
|
22
22
|
source: "http://eelst.cs.unibo.it/apps/LODE/source?url=http://purl.org/spar/datacite",
|
@@ -59,7 +59,13 @@ module RDF
|
|
59
59
|
}
|
60
60
|
}
|
61
61
|
},
|
62
|
-
|
62
|
+
iiif: {
|
63
|
+
uri: "http://iiif.io/api/presentation/2#",
|
64
|
+
source: "http://iiif.io/api/presentation/2/ontology.xml",
|
65
|
+
class_name: "IIIF"
|
66
|
+
},
|
67
|
+
jsonld: {uri: "http://www.w3.org/ns/json-ld#"},
|
68
|
+
ldp: {uri: "http://www.w3.org/ns/ldp#", strict: false},
|
63
69
|
ma: {uri: "http://www.w3.org/ns/ma-ont#", source: "http://www.w3.org/ns/ma-ont.rdf", strict: false},
|
64
70
|
mads: {
|
65
71
|
uri: "http://www.loc.gov/mads/rdf/v1#",
|
@@ -88,18 +94,22 @@ module RDF
|
|
88
94
|
},
|
89
95
|
og: {uri: "http://ogp.me/ns#", strict: false},
|
90
96
|
ogc: {uri: "http://ogp.me/ns/class#", source: "http://ogp.me/ns", strict: false},
|
91
|
-
ore:
|
97
|
+
ore: {uri: "http://www.openarchives.org/ore/terms/"},
|
92
98
|
premis: {uri: "http://www.loc.gov/premis/rdf/v1#", source: "http://www.loc.gov/premis/rdf/v1.rdf"},
|
93
99
|
premis_event_type: {
|
94
100
|
uri: "http://id.loc.gov/vocabulary/preservation/eventType/",
|
95
101
|
source: "http://id.loc.gov/vocabulary/preservation/eventType.nt",
|
96
102
|
class_name: "PremisEventType"
|
97
103
|
},
|
98
|
-
prov:
|
104
|
+
prov: {uri: "http://www.w3.org/ns/prov#", alias: true},
|
99
105
|
rsa: {uri: "http://www.w3.org/ns/auth/rsa#", alias: true},
|
100
106
|
rss: {uri: "http://purl.org/rss/1.0/", source: "http://purl.org/rss/1.0/schema.rdf", alias: true},
|
101
107
|
schema: {uri: "http://schema.org/", source: "http://schema.org/docs/schema_org_rdfa.html", alias: true},
|
102
108
|
sioc: {uri: "http://rdfs.org/sioc/ns#", alias: true},
|
109
|
+
sioc_services: {
|
110
|
+
uri: "http://rdfs.org/sioc/services#",
|
111
|
+
class_name: "SiocServices"
|
112
|
+
},
|
103
113
|
skos: {uri: "http://www.w3.org/2004/02/skos/core#", alias: true},
|
104
114
|
skosxl: {uri: "http://www.w3.org/2008/05/skos-xl#", source: "http://www.w3.org/TR/skos-reference/skos-xl.rdf", alias: true},
|
105
115
|
v: {uri: "http://rdf.data-vocabulary.org/#", source: "etc/rdf.data-vocab.ttl", alias: true},
|
@@ -154,4 +164,4 @@ module RDF
|
|
154
164
|
XHTML = ::RDF::XHTML if RDF.const_defined?(:XHTML)
|
155
165
|
XHV = ::RDF::XHV if RDF.const_defined?(:XHV)
|
156
166
|
end
|
157
|
-
end
|
167
|
+
end
|
@@ -0,0 +1,173 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# This file generated automatically using vocab-fetch from http://iiif.io/api/presentation/2/ontology.xml
|
3
|
+
require 'rdf'
|
4
|
+
module RDF::Vocab
|
5
|
+
class IIIF < RDF::StrictVocabulary("http://iiif.io/api/presentation/2#")
|
6
|
+
|
7
|
+
# Class definitions
|
8
|
+
term :AnnotationList,
|
9
|
+
comment: %(AnnotationLists are an ordered list of Annotation objects. Typically all Annnotations in a list target the same Canvas).freeze,
|
10
|
+
label: "AnnotationList".freeze,
|
11
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
12
|
+
type: "rdfs:Class".freeze
|
13
|
+
term :Canvas,
|
14
|
+
comment: %(The canvas represents an individual page or view and acts as a central point for laying out the different content resources that make up the display.).freeze,
|
15
|
+
label: "Canvas".freeze,
|
16
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
17
|
+
type: "rdfs:Class".freeze
|
18
|
+
term :Collection,
|
19
|
+
comment: %(Collections are used to list the manifests available for viewing, and to describe the structures, hierarchies or collections that the physical objects are part of.).freeze,
|
20
|
+
label: "Collection".freeze,
|
21
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
22
|
+
type: "rdfs:Class".freeze
|
23
|
+
term :Layer,
|
24
|
+
comment: %(Layers are lists of AnnotationLists to group them together, for example to create the set of lists that make up a particular translation/edition of a text).freeze,
|
25
|
+
label: "Layer".freeze,
|
26
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
27
|
+
type: "rdfs:Class".freeze
|
28
|
+
term :Manifest,
|
29
|
+
comment: %(The manifest resource represents a single object and any intellectual work or works embodied within that object).freeze,
|
30
|
+
label: "Manifest".freeze,
|
31
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
32
|
+
type: "rdfs:Class".freeze
|
33
|
+
term :Range,
|
34
|
+
comment: %(Ranges describe additional structure within an object, such as newspaper articles that span pages, the range of non-content-bearing pages at the beginning of a work, or chapters within a book).freeze,
|
35
|
+
label: "Range".freeze,
|
36
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
37
|
+
type: "rdfs:Class".freeze
|
38
|
+
term :Sequence,
|
39
|
+
comment: %(The sequence conveys the ordering of the views of the object.).freeze,
|
40
|
+
label: "Sequence".freeze,
|
41
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
42
|
+
type: "rdfs:Class".freeze
|
43
|
+
term :ViewingDirection,
|
44
|
+
label: "ViewingDirection".freeze,
|
45
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
46
|
+
type: "rdfs:Class".freeze
|
47
|
+
term :ViewingHint,
|
48
|
+
label: "ViewingHint".freeze,
|
49
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
50
|
+
type: "rdfs:Class".freeze
|
51
|
+
term :Zone,
|
52
|
+
comment: %(Used to group annotations together in an area of a Canvas, for example to model columns, foldouts or palimpsests).freeze,
|
53
|
+
label: "Zone".freeze,
|
54
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
55
|
+
subClassOf: "http://iiif.io/api/presentation/2#Canvas".freeze,
|
56
|
+
type: "rdfs:Class".freeze
|
57
|
+
|
58
|
+
# Property definitions
|
59
|
+
property :attributionLabel,
|
60
|
+
label: "attributionLabel".freeze,
|
61
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
62
|
+
type: "rdf:Property".freeze
|
63
|
+
property :hasAnnotations,
|
64
|
+
label: "hasAnnotations".freeze,
|
65
|
+
range: "rdf:List".freeze,
|
66
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
67
|
+
type: "rdf:Property".freeze
|
68
|
+
property :hasCanvases,
|
69
|
+
label: "hasCanvases".freeze,
|
70
|
+
range: "rdf:List".freeze,
|
71
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
72
|
+
type: "rdf:Property".freeze
|
73
|
+
property :hasCollections,
|
74
|
+
domain: "http://iiif.io/api/presentation/2#Collection".freeze,
|
75
|
+
label: "hasCollections".freeze,
|
76
|
+
range: "rdf:List".freeze,
|
77
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
78
|
+
type: "rdf:Property".freeze
|
79
|
+
property :hasImageAnnotations,
|
80
|
+
label: "hasImageAnnotations".freeze,
|
81
|
+
range: "rdf:List".freeze,
|
82
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
83
|
+
subPropertyOf: "http://iiif.io/api/presentation/2#hasAnnotations".freeze,
|
84
|
+
type: "rdf:Property".freeze
|
85
|
+
property :hasLists,
|
86
|
+
label: "hasLists".freeze,
|
87
|
+
range: "rdf:List".freeze,
|
88
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
89
|
+
type: "rdf:Property".freeze
|
90
|
+
property :hasManifests,
|
91
|
+
domain: "http://iiif.io/api/presentation/2#Collection".freeze,
|
92
|
+
label: "hasManifests".freeze,
|
93
|
+
range: "rdf:List".freeze,
|
94
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
95
|
+
type: "rdf:Property".freeze
|
96
|
+
property :hasRanges,
|
97
|
+
label: "hasRanges".freeze,
|
98
|
+
range: "rdf:List".freeze,
|
99
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
100
|
+
type: "rdf:Property".freeze
|
101
|
+
property :hasSequences,
|
102
|
+
domain: "http://iiif.io/api/presentation/2#Manifest".freeze,
|
103
|
+
label: "hasSequences".freeze,
|
104
|
+
range: "rdf:List".freeze,
|
105
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
106
|
+
type: "rdf:Property".freeze
|
107
|
+
property :hasStartCanvas,
|
108
|
+
label: "hasStartCanvas".freeze,
|
109
|
+
range: "rdf:List".freeze,
|
110
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
111
|
+
type: "rdf:Property".freeze
|
112
|
+
property :metadataLabels,
|
113
|
+
label: "metadataLabels".freeze,
|
114
|
+
range: "rdf:List".freeze,
|
115
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
116
|
+
type: "rdf:Property".freeze
|
117
|
+
property :viewingDirection,
|
118
|
+
label: "viewingDirection".freeze,
|
119
|
+
range: "http://iiif.io/api/presentation/2#ViewingDirection".freeze,
|
120
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
121
|
+
type: "rdf:Property".freeze
|
122
|
+
property :viewingHint,
|
123
|
+
label: "viewingHint".freeze,
|
124
|
+
range: "http://iiif.io/api/presentation/2#ViewingHint".freeze,
|
125
|
+
"rdfs:isDefinedBy" => %(http://iiif.io/api/presentation/2#).freeze,
|
126
|
+
type: "rdf:Property".freeze
|
127
|
+
|
128
|
+
# Extra definitions
|
129
|
+
term :"",
|
130
|
+
label: "".freeze,
|
131
|
+
"owl:versionInfo" => %(2015-04-26 23:00:00Z).freeze,
|
132
|
+
type: "owl:Ontology".freeze
|
133
|
+
term :bottomToTopDirection,
|
134
|
+
comment: %(Bottom-to-Top Viewing Direction).freeze,
|
135
|
+
label: "bottomToTopDirection".freeze,
|
136
|
+
type: "http://iiif.io/api/presentation/2#ViewingDirection".freeze
|
137
|
+
term :continuousHint,
|
138
|
+
comment: %(Each canvas represents a segment of a continuous object such as a long scroll).freeze,
|
139
|
+
label: "continuousHint".freeze,
|
140
|
+
type: "http://iiif.io/api/presentation/2#ViewingHint".freeze
|
141
|
+
term :individualsHint,
|
142
|
+
comment: %(Each canvas represents a separate individual object, and should not have transitions).freeze,
|
143
|
+
label: "individualsHint".freeze,
|
144
|
+
type: "http://iiif.io/api/presentation/2#ViewingHint".freeze
|
145
|
+
term :leftToRightDirection,
|
146
|
+
comment: %(Left-to-Right Viewing Direction).freeze,
|
147
|
+
label: "leftToRightDirection".freeze,
|
148
|
+
type: "http://iiif.io/api/presentation/2#ViewingDirection".freeze
|
149
|
+
term :nonPagedHint,
|
150
|
+
comment: %(Viewing Hint that the Canvas MUST NOT be presented in a page turner).freeze,
|
151
|
+
label: "nonPagedHint".freeze,
|
152
|
+
type: "http://iiif.io/api/presentation/2#ViewingHint".freeze
|
153
|
+
term :pagedHint,
|
154
|
+
comment: %(Viewing Hint that object has canvases that represent pages that can be turned).freeze,
|
155
|
+
label: "pagedHint".freeze,
|
156
|
+
type: "http://iiif.io/api/presentation/2#ViewingHint".freeze
|
157
|
+
term :painting,
|
158
|
+
label: "painting".freeze,
|
159
|
+
type: "oa:Motivation".freeze
|
160
|
+
term :rightToLeftDirection,
|
161
|
+
comment: %(Right-to-Left Viewing Direction).freeze,
|
162
|
+
label: "rightToLeftDirection".freeze,
|
163
|
+
type: "http://iiif.io/api/presentation/2#ViewingDirection".freeze
|
164
|
+
term :topHint,
|
165
|
+
comment: %(The topmost range in a nested hierarchy, such as a table of contents).freeze,
|
166
|
+
label: "topHint".freeze,
|
167
|
+
type: "http://iiif.io/api/presentation/2#ViewingHint".freeze
|
168
|
+
term :topToBottomDirection,
|
169
|
+
comment: %(Top-to-Bottom Viewing Direction).freeze,
|
170
|
+
label: "topToBottomDirection".freeze,
|
171
|
+
type: "http://iiif.io/api/presentation/2#ViewingDirection".freeze
|
172
|
+
end
|
173
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# This file generated automatically using vocab-fetch from http://www.w3.org/ns/json-ld#
|
3
|
+
require 'rdf'
|
4
|
+
module RDF::Vocab
|
5
|
+
class JSONLD < RDF::StrictVocabulary("http://www.w3.org/ns/json-ld#")
|
6
|
+
|
7
|
+
# Property definitions
|
8
|
+
property :context,
|
9
|
+
comment: %(This link relation is used to reference a JSON-LD context from a JSON document so that it can be interpreted as JSON-LD.).freeze,
|
10
|
+
label: "JSON-LD context".freeze,
|
11
|
+
"rdfs:isDefinedBy" => %(http://www.w3.org/ns/json-ld).freeze,
|
12
|
+
"rdfs:seeAlso" => %(http://www.w3.org/TR/json-ld-syntax/#referencing-contexts-from-json-documents).freeze,
|
13
|
+
type: "rdf:Property".freeze
|
14
|
+
|
15
|
+
# Extra definitions
|
16
|
+
term :compacted,
|
17
|
+
comment: %(This profile IRI is used to request or specify compacted JSON-LD document form.).freeze,
|
18
|
+
label: "Compacted JSON-LD document form".freeze,
|
19
|
+
"rdfs:isDefinedBy" => %(http://www.w3.org/ns/json-ld).freeze,
|
20
|
+
"rdfs:seeAlso" => %(http://www.w3.org/TR/json-ld-syntax/#iana-considerations).freeze
|
21
|
+
term :"compacted-flattened",
|
22
|
+
comment: %(This profile IRI is used to request or specify compacted, flattened JSON-LD document form.).freeze,
|
23
|
+
label: "Compacted, flattened JSON-LD document form".freeze,
|
24
|
+
"rdfs:isDefinedBy" => %(http://www.w3.org/ns/json-ld).freeze,
|
25
|
+
"rdfs:seeAlso" => %(http://www.w3.org/TR/json-ld-syntax/#iana-considerations).freeze
|
26
|
+
term :expanded,
|
27
|
+
comment: %(This profile IRI is used to request or specify expanded JSON-LD document form.).freeze,
|
28
|
+
label: "Expanded JSON-LD document form".freeze,
|
29
|
+
"rdfs:isDefinedBy" => %(http://www.w3.org/ns/json-ld).freeze,
|
30
|
+
"rdfs:seeAlso" => %(http://www.w3.org/TR/json-ld-syntax/#iana-considerations).freeze
|
31
|
+
term :"expanded-flattened",
|
32
|
+
comment: %(This profile IRI is used to request or specify expanded, flattened JSON-LD document form.).freeze,
|
33
|
+
label: "Expanded, flattened JSON-LD document form".freeze,
|
34
|
+
"rdfs:isDefinedBy" => %(http://www.w3.org/ns/json-ld).freeze,
|
35
|
+
"rdfs:seeAlso" => %(http://www.w3.org/TR/json-ld-syntax/#iana-considerations).freeze
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# This file generated automatically using vocab-fetch from http://rdfs.org/sioc/services#
|
3
|
+
require 'rdf'
|
4
|
+
module RDF::Vocab
|
5
|
+
class SiocServices < RDF::StrictVocabulary("http://rdfs.org/sioc/services#")
|
6
|
+
|
7
|
+
# Class definitions
|
8
|
+
term :Service,
|
9
|
+
comment: %(A Service is web service associated with a Site or part of it.).freeze,
|
10
|
+
label: "Service".freeze,
|
11
|
+
"rdfs:isDefinedBy" => %(http://rdfs.org/sioc/services#).freeze,
|
12
|
+
type: ["rdfs:Class".freeze, "owl:Class".freeze]
|
13
|
+
|
14
|
+
# Property definitions
|
15
|
+
property :has_service,
|
16
|
+
comment: %(A Service associated with this SIOC object.).freeze,
|
17
|
+
label: "has service".freeze,
|
18
|
+
"owl:inverseOf" => %(http://rdfs.org/sioc/services#service_of).freeze,
|
19
|
+
range: "http://rdfs.org/sioc/services#Service".freeze,
|
20
|
+
"rdfs:isDefinedBy" => %(http://rdfs.org/sioc/services#).freeze,
|
21
|
+
type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze]
|
22
|
+
property :max_results,
|
23
|
+
comment: %(Maximum number of results results returned by a web service.).freeze,
|
24
|
+
domain: "http://rdfs.org/sioc/services#Service".freeze,
|
25
|
+
label: "max results".freeze,
|
26
|
+
range: "xsd:integer".freeze,
|
27
|
+
"rdfs:isDefinedBy" => %(http://rdfs.org/sioc/services#).freeze,
|
28
|
+
type: ["rdf:Property".freeze, "owl:DatatypeProperty".freeze]
|
29
|
+
property :results_format,
|
30
|
+
comment: %(Format of results returned by a web service.).freeze,
|
31
|
+
domain: "http://rdfs.org/sioc/services#Service".freeze,
|
32
|
+
label: "results format".freeze,
|
33
|
+
"rdfs:isDefinedBy" => %(http://rdfs.org/sioc/services#).freeze,
|
34
|
+
type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze]
|
35
|
+
property :service_definition,
|
36
|
+
comment: %(Links to a web service definition of this sioc:Service.).freeze,
|
37
|
+
domain: "http://rdfs.org/sioc/services#Service".freeze,
|
38
|
+
label: "service definition".freeze,
|
39
|
+
"rdfs:isDefinedBy" => %(http://rdfs.org/sioc/services#).freeze,
|
40
|
+
type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze]
|
41
|
+
property :service_endpoint,
|
42
|
+
comment: %(URL of a web service endpoint.).freeze,
|
43
|
+
domain: "http://rdfs.org/sioc/services#Service".freeze,
|
44
|
+
label: "service endpoint".freeze,
|
45
|
+
"rdfs:isDefinedBy" => %(http://rdfs.org/sioc/services#).freeze,
|
46
|
+
type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze]
|
47
|
+
property :service_of,
|
48
|
+
comment: %(A SIOC object this Service is associated with.).freeze,
|
49
|
+
domain: "http://rdfs.org/sioc/services#Service".freeze,
|
50
|
+
label: "service of".freeze,
|
51
|
+
"owl:inverseOf" => %(http://rdfs.org/sioc/services#has_service).freeze,
|
52
|
+
"rdfs:isDefinedBy" => %(http://rdfs.org/sioc/services#).freeze,
|
53
|
+
type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze]
|
54
|
+
property :service_protocol,
|
55
|
+
comment: %(A protocol used by a web service. Possible protocol values include SOAP, REST, SPARQL-QUERY, GData and OpenSearch. These will be added to this module later.).freeze,
|
56
|
+
domain: "http://rdfs.org/sioc/services#Service".freeze,
|
57
|
+
label: "service protocol".freeze,
|
58
|
+
"rdfs:isDefinedBy" => %(http://rdfs.org/sioc/services#).freeze,
|
59
|
+
type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze]
|
60
|
+
|
61
|
+
# Extra definitions
|
62
|
+
term :"",
|
63
|
+
"dc:description" => %(Extends the SIOC Core Ontology \(Semantically-Interlinked Online Communities\) by defining basic information on community-related web services.).freeze,
|
64
|
+
"dc:title" => %(SIOC Services Ontology Module Namespace).freeze,
|
65
|
+
label: "".freeze,
|
66
|
+
"owl:imports" => %(sioc:).freeze,
|
67
|
+
"rdfs:seeAlso" => %(http://rdfs.org/sioc/spec/#sec-modules).freeze,
|
68
|
+
type: ["owl:Ontology".freeze, "owl:Thing".freeze]
|
69
|
+
end
|
70
|
+
end
|
data/spec/vocab_spec.rb
CHANGED
@@ -3,7 +3,7 @@ require 'rdf/reasoner'
|
|
3
3
|
|
4
4
|
describe RDF::Vocab do
|
5
5
|
describe ".each" do
|
6
|
-
it "
|
6
|
+
it "enumerates pre-defined vocabularies" do
|
7
7
|
expect {|b| RDF::Vocabulary.each(&b)}.to yield_control.at_least(RDF::Vocab::VOCABS.keys.length).times
|
8
8
|
end
|
9
9
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf-vocab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Chandek-Stark
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-05-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rdf
|
@@ -153,6 +153,8 @@ files:
|
|
153
153
|
- lib/rdf/vocab/fcrepo4.rb
|
154
154
|
- lib/rdf/vocab/iana.rb
|
155
155
|
- lib/rdf/vocab/identifiers.rb
|
156
|
+
- lib/rdf/vocab/iiif.rb
|
157
|
+
- lib/rdf/vocab/jsonld.rb
|
156
158
|
- lib/rdf/vocab/ldp.rb
|
157
159
|
- lib/rdf/vocab/mads.rb
|
158
160
|
- lib/rdf/vocab/marc_relators.rb
|
@@ -161,6 +163,7 @@ files:
|
|
161
163
|
- lib/rdf/vocab/ore.rb
|
162
164
|
- lib/rdf/vocab/premis.rb
|
163
165
|
- lib/rdf/vocab/premis_event_type.rb
|
166
|
+
- lib/rdf/vocab/sioc_services.rb
|
164
167
|
- lib/rdf/vocab/version.rb
|
165
168
|
- spec/spec_helper.rb
|
166
169
|
- spec/vocab_spec.rb
|