-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbundle.yaml
134 lines (134 loc) · 2.57 KB
/
bundle.yaml
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
bundle: operators-ontology
variables:
name: "operators-ontology"
version: "X.x.x"
input: "."
rdf-toolkit: "{input}/tools/serializer/rdf-toolkit.jar"
output: "{name}{version}_release"
tools:
- name: "serializer"
type: "Java"
jar: "{rdf-toolkit}"
arguments:
- "-sfmt"
- "turtle"
- "-tfmt"
- "turtle"
- "-sdt"
- "explicit"
- "-dtd"
- "-sni"
- "-ibn"
- "-s"
- "{inputFile}"
- "-t"
- "{outputFile}"
- name: "xml-serializer"
type: "Java"
jar: "{rdf-toolkit}"
arguments:
- "-sfmt"
- "turtle"
- "-tfmt"
- "rdf-xml"
- "-sdt"
- "explicit"
- "-dtd"
- "-sni"
- "-ibn"
- "-s"
- "{inputFile}"
- "-t"
- "{outputFile}"
- name: "json-serializer"
type: "Java"
jar: "{rdf-toolkit}"
arguments:
- "-sfmt"
- "turtle"
- "-tfmt"
- "json-ld"
- "-sdt"
- "explicit"
- "-dtd"
- "-sni"
- "-ibn"
- "-s"
- "{inputFile}"
- "-t"
- "{outputFile}"
actions:
- action: "mkdir"
directory: "{output}"
- action: "copy"
message: "Substituting version numbers."
source: "{input}"
target: "{output}"
replace:
from: "X.x.x"
to: "{version}"
rename:
from: "(.*)\\.ttl"
to: "\\g<1>{version}.ttl"
includes:
- "*.ttl"
- action: "definedBy"
message: "Adding rdfs:isDefinedBy."
source: "{output}"
target: "{output}"
includes:
- "*.ttl"
- action: "transform"
message: "Turtle serialization."
tool: "serializer"
source: "{output}"
target: "{output}"
includes:
- "*.ttl"
rename:
from: "(.*)\\.ttl"
to: "formatted_\\g<1>.ttl"
- action: "move"
source: "{output}"
target: "{output}"
includes:
- "formatted_*.ttl"
rename:
from: "formatted_(.*)\\.ttl"
to: "\\g<1>.ttl"
- action: "copy"
message: "Copying examples."
source: "{input}/examples"
target: "{output}/examples"
- action: "copy"
message: "Copying license text."
source: "LICENSE.txt"
target: "{output}/LICENSE.txt"
- action: "copy"
message: "Copying readme."
source: "README.md"
target: "{output}/README.md"
- action: "markdown"
message: "Formatting readme."
source: "{output}/README.md"
target: "{output}/README.html"
- action: "transform"
message: "RDF/XML serialization."
tool: "xml-serializer"
source: "{output}"
target: "{output}"
rename:
from: "(.*)\\.ttl"
to: "\\g<1>.rdf"
includes:
- "*.ttl"
- action: "transform"
message: "JSON-LD serialization."
tool: "json-serializer"
source: "{output}"
target: "{output}"
rename:
from: "(.*)\\.ttl"
to: "\\g<1>.jsonld"
includes:
- "*.ttl"