-
Notifications
You must be signed in to change notification settings - Fork 1
/
vocab-etl-tutorial-bundle-all.yml
296 lines (265 loc) · 11.8 KB
/
vocab-etl-tutorial-bundle-all.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
#
# This file contains a simple list of vocabularies that we bundle together to
# form the collective set of 3rd-party vocabularies.
#
# We define these vocabularies on behalf of 3rd parties that do not (yet)
# provide RDF vocabularies for their APIs.
#
# Local vocabularies can be provided relative to the location of this resource
# list file.
#
artifactName: vocab-etl-tutorial-bundle-all
artifactGeneratorVersion: 3.0.1
#
# This versioning information is optional, and is useful for published
# packages - since we aren't yet publishing anything for this project yet,
# this section is commented out.
#
#versioning:
# type: git
# # Hypothetical GitHub repository if we wished to publish this
# # vocabulary information...
# # For example, Inrupt publishes its vocabulary information here:
# # url: https://github.com/inrupt/solid-common-vocab-rdf.git
# versioningTemplates:
# - templateInternal: ".gitignore.hbs"
# fileName: ".gitignore"
license:
path: "./LICENSE"
fileName: "LICENSE"
header: "./LICENSE_HEADER.js"
name: "Proprietary"
artifactToGenerate:
# # This is the configuration of the DEFAULT Java artifact - i.e., where the name
# # of the generated JAR does not contain details of its dependencies (e.g.
# # whether it provides SolidCommonVocab constants or just string constants, or whether
# # it depends on RDF4J or Jena or RDF Commons, etc.).
# - programmingLanguage: Java
# artifactVersion: 0.8.2-SNAPSHOT
# artifactNamePrefix: ""
# artifactNameSuffix: ""
#
# artifactDirectoryName: Java
# sourceFileExtension: java
# javaPackageName: com.inrupt.vocab.thirdparty
#
# templateInternal: stringLiteral/java/vocab.hbs
#
# # Currently we're just adding terms as they occur in vocabs, and not all possible keywords.
# languageKeywordsToUnderscore:
# - class # Defined in VCard.
# - abstract # Defined in DCTerms.
# - default # Defined in ACL
# packaging:
# - packagingTool: maven
# groupId: com.inrupt
# publish:
# - key: "mavenLocal"
# command: "mvn --version && mvn install"
# - key: "mavenRemote"
# command: "mvn deploy"
# - key: "cloudsmith"
# command: "mvn -s /home/runner/work/solid-common-vocab-rdf/solid-common-vocab-rdf/settings.xml deploy --log-file ../../../mvn-deploy.log"
# packagingTemplates:
# - templateInternal: stringLiteral/java/pom.hbs
# fileName: pom.xml
# repository:
# - type: repository
# id: cloudsmith-staging
# url: https://maven.cloudsmith.io/inrupt/sdk-staging/
# - type: snapshotRepository
# id: cloudsmith-development
# url: https://maven.cloudsmith.io/inrupt/sdk-development/
#
#
# # This is the configuration of the DEFAULT TypeScript artifact - i.e., where
# # the name of the generated npm module does not contain details of its
# # dependencies (e.g., whether it provides SolidCommonVocab constants or just string
# # literals, or whether it depends on RDF/JS or Jena or RDF Commons, etc.).
# - programmingLanguage: TypeScript
# artifactVersion: "1.0.1"
# artifactNamePrefix: ""
# artifactNameSuffix: ""
#
# artifactDirectoryName: TypeScript
# sourceFileExtension: ts
#
# templateInternal: stringLiteral/typescript/vocab.hbs
#
# packaging:
# - packagingTool: npm
# npmModuleScope: "@inrupt/"
# bundleName: "Vocabinrupt3rdParty"
#
# typescriptVersion: "^4.7.4"
# rollupVersion: "^2.36.1"
# rollupTypescriptPluginVersion: "^0.29.0"
# rollupCommonjsPluginVersion: "^17.0.0"
# rollupNodeResolveVersion: "^11.0.1"
#
# publish:
# - key: "npmInstallAndBuild"
# command: "npm install && npm run build"
# - key: "npmLocal"
# command: "npm unpublish --force --registry http://localhost:4873/ && npm install --registry http://localhost:4873/ && npm run build && npm publish --registry http://localhost:4873/"
# # The following command should only run in CI.
# - key: "npmPublic"
# command: "npm install --registry https://registry.npmjs.org/ && npm run build && npm publish --registry https://registry.npmjs.org/ --access public"
# packagingTemplates:
# - templateInternal: stringLiteral/typescript/package.hbs
# fileName: package.json
# - templateInternal: generic/typescript/index.hbs
# fileName: index.ts
# - templateInternal: generic/typescript/tsconfig.hbs
# fileName: tsconfig.json
# - templateInternal: generic/typescript/rollup.config.hbs
# fileName: rollup.config.js
#
#
# This is the configuration of the DEFAULT SolidCommonVocab TypeScript
# artifact - i.e., where the name of the generated npm module does not
# contain details of the underlying RDF library dependencies (e.g.,
# whether it depends on RDF/JS or a specific implementation, etc.).
- programmingLanguage: TypeScript
artifactVersion: "1.0.1"
artifactNamePrefix: ""
artifactDirectoryName: TypeScript-SolidCommonVocab
sourceFileExtension: ts
artifactNameSuffix: -solidcommonvocab
solidCommonVocabVersion: "^1.0.0"
rdfjsTypesVersion: "^1.0.1"
rdfjsImplVersion: "^1.1.0"
templateInternal: solidCommonVocabDependent/typescript/rdfjsRdfDataFactory/vocab.hbs
packaging:
- packagingTool: npm
npmModuleScope: "@inrupt/"
bundleName: "Vocabinrupt3rdParty"
typescriptVersion: "^4.7.4"
rollupVersion: "^2.36.1"
rollupTypescriptPluginVersion: "^0.29.0"
rollupCommonjsPluginVersion: "^17.0.0"
rollupNodeResolveVersion: "^11.0.1"
publish:
- key: "npmInstallAndBuild"
command: "npm install && npm run build"
- key: "npmLocal"
command: "npm unpublish --force --registry http://localhost:4873/ && npm install --registry http://localhost:4873/ && npm run build && npm publish --registry http://localhost:4873/"
- key: 'npmGithub'
command: "npm install --registry https://npm.pkg.github.com/inrupt && npm run build && npm publish --registry https://npm.pkg.github.com/inrupt"
- key: "npmPrivate"
command: "npm install --registry https://registry.npmjs.org/ && npm publish --registry https://registry.npmjs.org/"
packagingTemplates:
- templateInternal: solidCommonVocabDependent/typescript/rdfjsRdfDataFactory/package.hbs
fileName: package.json
- templateInternal: generic/typescript/index.hbs
fileName: index.ts
- templateInternal: generic/typescript/tsconfig.hbs
fileName: tsconfig.json
- templateInternal: generic/typescript/rollup.config.hbs
fileName: rollup.config.js
- programmingLanguage: TypeScript
artifactVersion: "1.0.1"
artifactNamePrefix: ""
artifactNameSuffix: -rdfdatafactory
artifactDirectoryName: TypeScript-RdfDataFactory
sourceFileExtension: ts
rdfjsTypesVersion: "^1.0.1"
rdfjsImplVersion: "^1.1.0"
templateInternal: rdfLibraryDependent/typescript/rdfjsRdfDataFactory/vocab.hbs
packaging:
- packagingTool: npm
npmModuleScope: "@inrupt/"
bundleName: "Vocabinrupt3rdParty"
typescriptVersion: "^4.7.4"
rollupVersion: "^2.36.1"
rollupTypescriptPluginVersion: "^0.29.0"
rollupCommonjsPluginVersion: "^17.0.0"
rollupNodeResolveVersion: "^11.0.1"
publish:
- key: "npmInstallAndBuild"
command: "npm install && npm run build"
- key: "npmLocal"
command: "npm unpublish --force --registry http://localhost:4873/ && npm install --registry http://localhost:4873/ && npm run build && npm publish --registry http://localhost:4873/"
# The following command should only run in CI.
- key: "npmPublic"
command: "npm install --registry https://registry.npmjs.org/ && npm run build && npm publish --registry https://registry.npmjs.org/ --access public"
packagingTemplates:
- templateInternal: rdfLibraryDependent/typescript/rdfjsRdfDataFactory/package.hbs
fileName: package.json
- templateInternal: generic/typescript/index.hbs
fileName: index.ts
- templateInternal: generic/typescript/tsconfig.hbs
fileName: tsconfig.json
- templateInternal: generic/typescript/rollup.config.hbs
fileName: rollup.config.js
vocabList:
- widocoLanguages: en-es
inputResources:
- ./EtlTutorial/CopyOfVocab/etl-tutorial.ttl
#
# Just some example vocabularies we define on behalf of 3rd-parties (until
# they get around to defining and publishing their own authoritative
# vocabularies!).
#
- widocoLanguages: en-es
inputResources:
- ./ThirdParty/CopyOfVocab/inrupt-3rd-party-companies-house-uk.ttl
- widocoLanguages: en-es
inputResources:
- ./ThirdParty/CopyOfVocab/inrupt-3rd-party-unilever.ttl
- widocoLanguages: en-es
inputResources:
- ./ThirdParty/CopyOfVocab/inrupt-3rd-party-dnb.ttl
- widocoLanguages: en-es
inputResources:
- ./ThirdParty/CopyOfVocab/inrupt-3rd-party-passport-office-uk.ttl
# We define our own extension for terms we need that may ultimately belong
# in the official Solid terms vocabulary, but aren't there yet.
- nameAndPrefixOverride: solid
inputResources:
- https://www.w3.org/ns/solid/terms
- ./EtlTutorial/Extension/solid-etl-tutorial-ext.ttl
# We'd also like to be able to extend the Inrupt Common vocabulary too, but
# that's currently only published publicly on GitHub, and so we need to use
# the Artifact Generator's ability to override HTTP headers to pull that
# vocab as 'raw content', and then parse it as Turtle.
#
# Note: Unfortunately, GitHub has a rate limit of only 60 unauthenticated
# requests per hour - after which we get JSON responses back (telling us our
# rate limit has been reached), but that blows up the parser 'cos it's
# expecting Turtle (i.e., "Error: Unexpected literal on line 1.").
#
# Note: Doing this raises import issues too - i.e., we are almost certainly
# importing the Inrupt Common bundle anyway, and so trying to extend just
# this one vocab means our IDE will offer two very confusing choices if we
# don't name our extension of that vocabulary differently.
# - vocabAcceptHeaderOverride: application/vnd.github.v3.raw
# vocabContentTypeHeaderOverride: text/turtle
# inputResources:
# - https://api.github.com/repos/inrupt/solid-common-vocab-rdf/contents/inrupt-rdf/Core/CopyOfVocab/inrupt-common.ttl
# - ./EtlTutorial/Extension/inrupt-common-etl-tutorial-ext.ttl
# Unfortunately the above approach (which works on local development
# machines) seems to fail when run from GitHub CI. Until we can look
# into that fully, we can just make a copy of the Inrupt Common vocab
# locally in our Extensions directory!
- inputResources:
- ./EtlTutorial/Extension/inrupt-common-TEMP_COPY.ttl
- ./EtlTutorial/Extension/inrupt-common-etl-tutorial-ext.ttl
- inputResources:
- ./Hobby/CopyOfVocab/Hobby.ttl
- inputResources:
- ./Hobby/CopyOfVocab/PetRock.ttl
- inputResources:
- ./Hobby/CopyOfVocab/Skydiving.ttl
# These will be included in the next release of the 'Common RDF' bundle from
# Inrupt, but including here shows how flexible and powerful the Artifact
# Generator is - in that we could choose to cherry-pick individual terms, or
# extend terms with extra `rdfs:label` or `rdfs:comment` translations, etc.
- inputResources:
- https://w3id.org/dpv#
- inputResources:
- https://w3id.org/dpv/dpv-pd#
- inputResources:
- https://ontologies.semanticarts.com/o/gistCore11.0.0
nameAndPrefixOverride: gist
namespaceOverride: https://ontologies.semanticarts.com/gist/