issue-pane 2.6.1 → 3.0.0-a58a4367

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/wf.js DELETED
@@ -1,370 +0,0 @@
1
- module.exports = `
2
- # Issue tracking - Workflow application definition ontology
3
- #
4
- # Finite state automaton ontology
5
- #
6
- # See requirements for tracking tools http://www.w3.org/2005/01/06-tool-req.html
7
- #
8
- @keywords a, is, of.
9
-
10
- @prefix : <http://www.w3.org/2005/01/wf/flow#>.
11
- @prefix wf: <http://www.w3.org/2005/01/wf/flow#>.
12
-
13
- @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
14
- @prefix s: <http://www.w3.org/2000/01/rdf-schema#> .
15
- @prefix owl: <http://www.w3.org/2002/07/owl#>.
16
- @prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
17
-
18
- @prefix doc: <http://www.w3.org/2000/10/swap/pim/doc#> .
19
- @prefix log: <http://www.w3.org/2000/10/swap/log#> .
20
- @prefix foaf: <http://xmlns.com/foaf/0.1/>.
21
- @prefix contact: <http://www.w3.org/2000/10/swap/pim/contact#> .
22
- @prefix doap: <http://usefulinc.com/ns/doap#>.
23
- @prefix dc: <http://purl.org/dc/elements/1.1/>.
24
- @prefix dct: <http://purl.org/dc/terms/>.
25
- @prefix ui: <http://www.w3.org/ns/ui#>.
26
-
27
- <> dc:title "Issue Tracking Ontology";
28
-
29
- dct:creator <http://www.w3.org/People/Berners-Lee/card#i>;
30
-
31
- s:comment """This ontology defines a very general class (Task)
32
- which can used for any kind of bug tracking, issue tracking,
33
- to-do-list management, action items, goal dependency, and so on.
34
- It captures the state of a task as a subclass, so that
35
- subsumption can be used.
36
- It captures a discussion thread about a task.
37
- It captures subtasks structure if necessary.
38
- A "Tracker" defines actual set of states, categories, etc.,
39
- which a task can be in. The data about the tracker
40
- guides the software managing the task.
41
-
42
- There is some workflow modeling finite state machine
43
- terms which are optional for more complex definition
44
- of the transitions allowed.
45
- """.
46
-
47
- Task a s:Class;
48
- s:label "task"@en; owl:disjointUnionOf (Open Closed);
49
- s:comment """Something to be done in a wide sense,
50
- an agenda item at a meeting is one example, but any
51
- issue, task, action item, goal, product, deliverable, milestone, can such a thing.
52
- The requirement for this framework was that it would allow
53
- one to customize ontologies for things such as agenda items,
54
- action items, working group issues with a spec, w3c Last Call issues,
55
- software bugs and administrative requests.
56
- In π-calculus, a process.
57
- Make your type of issue a subclass of Task.
58
- """.
59
-
60
- Open a s:Class; s:subClassOf Task;
61
- s:label "open"@en, "ouvert"@fr;
62
- ui:backgroundColor "#d6f5d6"; # green like github for some reason
63
- s:comment """A task which needs attention. The very crude states of Open and Closed all
64
- interoperability between different systems if the states for a given
65
- application are made subclasses of either Open or Closed. This allows
66
- tasks from different systems to be mixed and treated together with
67
- limited but valuable functionality.
68
- """.
69
-
70
- Closed a s:Class; s:subClassOf Task;
71
- s:label "closed"@en, "fermé"@fr;
72
- ui:backgroundColor "#f5d6d6"; # pink
73
- s:comment """A task which does not need attention. It may be closed because
74
- has been abandoned or completed, for example.
75
- """.
76
-
77
-
78
- ActionItem a s:Class;
79
- s:subClassOf Task;
80
- s:label "action item"@en; owl:disjointUnionOf (Open Closed);
81
- s:comment """An obligation taken on by a person, typically at a meeting.
82
- """.
83
-
84
-
85
- description a rdf:Property;
86
- s:label "description";
87
- s:comment """The description, definition,
88
- or abstract. Information explaining what this is.
89
- Not arbitrary comment about anything, only about the subject.
90
- (Use this property for anything. There is no domain restriction.).""".
91
-
92
- dependent a rdf:Property;
93
- s:label "how"; owl:inverseOf [ s:label "why"];
94
- s:domain Task; s:range Task;
95
- s:comment """Another task upon which this depends, in the sense that
96
- this task cannot be completed without that task being done.
97
- You can't use this for dependencies on anything other than other tasks.
98
- (Note the US spelling of the URI. In the UK, a dependant is a something
99
- which is dependent on somehing else.)""".
100
-
101
- assignee a rdf:Property;
102
- s:label "assigned to"; owl:inverseOf [s:label "assignment"];
103
- # s:domain Task;
104
- s:range foaf:Agent;
105
- s:comment """The person or group to whom this has been assigned.""".
106
-
107
- # use dct:modified
108
- #modified a rdf:Property;
109
- # s:label "last changed".
110
-
111
- modifiedBy a rdf:Property;
112
- s:range foaf:Agent;
113
- s:label "changed by".
114
-
115
- # use dct:created instead
116
- #created a rdf:Property;
117
- # s:range xsd:dateTime;
118
- #
119
- # Use foaf:maker instead
120
- #creator a rdf:Property;
121
- # s:range foaf:Agent;
122
- # s:label "changed by".
123
-
124
- subscriber a rdf:Property;
125
- s:label "subscriber";
126
- s:range foaf:Agent.
127
-
128
-
129
- ################## Products
130
- #
131
- #
132
- # History: The Tracker system included a cocept of a product,
133
- # such that an action could be associated with *either* an issue *or* a product.
134
- # Noah Mendelsohn for the TAG needed to be able make
135
- # and to give products: Goals, scuuess criteria,
136
- # deliverables with dates, schedules, TAG members assigned, related issues.
137
- #
138
-
139
-
140
- Product a s:Class; s:subClassOf Task;
141
- s:label "product";
142
- s:comment """A product is a task which monitors something
143
- which must be produced.""".
144
-
145
- deliverable a rdf:Property; s:subPropertyOf dependent;
146
- s:range Product;
147
- s:label "deliverable"@en;
148
- s:comment """Something which must be delivered to accomplish this""".
149
-
150
- goalDescription a rdf:Property, owl:DatatypeProperty;
151
- s:domain Task; s:range xsd:string;
152
- s:label "goals";
153
- s:comment """A textual description of the goals of this product, etc.""".
154
-
155
- successCriteria a rdf:Property, owl:DatatypeProperty;
156
- s:domain Task; s:range xsd:string;
157
- s:label "success criteria";
158
- s:comment """A textual description of the successs critera.
159
- How when we know this is done?""".
160
-
161
- dateDue a rdf:Property, owl:DatatypeProperty;
162
- s:domain Task; s:range xsd:date;
163
- s:label "due"@en;
164
- s:comment """The date this task is due.
165
- """.
166
-
167
- ################## Attachments
168
-
169
- attachment a rdf:Property;
170
- s:label "attachment";
171
- s:comment """Something related is attached for information.""".
172
-
173
- screenShot a rdf:Property; s:subPropertyOf attachment;
174
- s:label "screen shot"@en;
175
- s:comment """An image taken by capturing the state of a
176
- computer screen, for example to demonstrate a problem""".
177
-
178
- testData a rdf:Property; s:subPropertyOf attachment;
179
- s:label "test data"@en;
180
- s:comment """A file which can be used as inpiut to a test
181
- or to demonstrate a problem. """.
182
-
183
-
184
- terminalOutput a rdf:Property; s:subPropertyOf attachment;
185
- s:label "terminal output"@en;
186
- s:comment """A file showing user interaction from a
187
- text terminal or console etc. """.
188
-
189
-
190
- message a rdf:Property; s:subPropertyOf attachment;
191
- s:label "message"@en;
192
- s:comment """A message about this. Attached for information.""".
193
-
194
-
195
- Message a s:Class; s:label "message"@en.
196
- recipent a rdf:Property; s:label "to"; s:domain Message; s:range foaf:Agent.
197
- sender a rdf:Property; s:label "from"; s:domain Message; s:range foaf:Agent.
198
-
199
- ############################# A Tracker connects and manages issues
200
-
201
- tracker a rdf:Property;
202
- s:label "tracker";
203
- owl:inverseOf [ s:label "issue"];
204
- s:domain Task;
205
- s:range Tracker.
206
-
207
- Tracker a s:Class;
208
- s:label "tracker";
209
- s:comment """A set of issues and
210
- the constraints on how they evolve.
211
- To use this ontology, craete a new tracker.
212
- Copy an existing one or make up your own.""".
213
-
214
- issueClass a rdf:Property;
215
- s:label "all issues must be in";
216
- s:domain Tracker;
217
- s:range s:Class, State;
218
- s:comment """The class of issues which are allowed in this tracker.
219
- This is essemtial to the operation of the tracker,
220
- as it defines which states an issue can be in.
221
- (The issueClass must be a disjointUnionOf the state classes)""".
222
-
223
- issueCategory a rdf:Property;
224
- s:label "issue category";
225
- s:domain Tracker;
226
- s:range s:Class;
227
- s:comment """Issues may be categorized according to the
228
- subclasses of this class""".
229
-
230
- stateStore a rdf:Property;
231
- s:label "state store";
232
- s:domain Tracker;
233
- s:range doc:Document;
234
- s:comment """A read-write document.
235
- The state of the issues is modified here.
236
- When you set up a trcaker, thgis must be set to point
237
- to a writeble data resource on the web.""".
238
-
239
- transactionStore
240
- a rdf:Property;
241
- s:label "transaction store";
242
- s:domain Tracker;
243
- s:range doc:Document;
244
- s:comment """An appendable document. Transactions and messsages
245
- can be written into here""".
246
-
247
- asigneeClass
248
- a rdf:Property;
249
- s:label "assignees must be";
250
- s:domain Tracker;
251
- s:range s:Class; # Subclass of foaf:Agent
252
- s:comment """When an issue is assigned, the assignee must be from this class""".
253
-
254
- initialState
255
- a rdf:Property;
256
- s:label "initial state"@en;
257
- s:label "état initial"@fr;
258
- s:domain Tracker;
259
- s:range State;
260
- s:comment """The initial state for a new issue""".
261
-
262
- # Use this to link a project to a tracker
263
- doap:bug-database owl:inverseOf [ s:label "project"@en ].
264
-
265
-
266
-
267
-
268
- ############################################################
269
- #
270
- # Finite state machines
271
- #
272
- Change a s:Class;
273
- s:label "change";
274
- s:comment """The universal class of things which
275
- change the state of a task.
276
- Included now: Creation, Transition. (Maybe in the future
277
- more π-calculus constructions such as splitting & merging tasks,
278
- and import/export of obligations to a foreign opaque system.)
279
- """.
280
-
281
- Transition a s:Class; s:subClassOf Change;
282
- s:label "transition";
283
- s:comment """A transition is a change of state of
284
- a task. Typical properties include date and/or source
285
- (a document causing the transition), and a final state.""".
286
-
287
- Creation a s:Class; s:subClassOf Change;
288
- s:label "creation";
289
- s:comment """A creation is a change from existence
290
- to non-existence
291
- a task. Typical properties include date and/or source
292
- (a document causing the transition), and a final state.""".
293
-
294
-
295
- date s:range DateTime.
296
-
297
- final a rdf:Property;
298
- s:label "to";
299
- s:domain Transition;
300
- s:range State.
301
-
302
- task a rdf:Property;
303
- s:range Task;
304
- s:label "task".
305
-
306
- requires a rdf:Property;
307
- s:label "requires";
308
- s:domain Transition;
309
- s:range rdf:List; # Of properties for validation
310
- s:comment """To be a valid transition,
311
- a necessary (but not necessarily sufficuent) condition
312
- is that there be recorded these properties for the record""".
313
-
314
- affects a rdf:Property;
315
- s:label "affects";
316
- s:domain doc:Work;
317
- s:range Task.
318
-
319
-
320
- # { ?x a Transition; task ?t; source ?doc } => { ?doc affects ?t }.
321
-
322
-
323
- creates a rdf:Property;
324
- s:label "creates";
325
- s:domain doc:Work;
326
- s:range Task.
327
-
328
-
329
- allowedTransitions a rdf:Property;
330
- s:domain State;
331
- s:range rdf:List; # @@@ of Action
332
- s:label "allowed transitions";
333
- s:comment """The state machine is defined
334
- by these lists of transition allowed for each issue.
335
- (An interesting option in the Web is to make an allowed transition
336
- to a state in soemone else's ontology, which in turn allows
337
- transitions into many ontologies. So a finite state maxchine
338
- may become very large. In practice this means that a task handed
339
- off to another organization may be processed on all kinds of ways.)""".
340
-
341
- # { ?x a TerminalState} => { ?x allowedTransitions () }.
342
-
343
- final a rdf:Property;
344
- s:label "to";
345
- s:range State.
346
-
347
- issue a rdf:Property;
348
- s:label "issue";
349
- s:comment
350
- """A transition changes the state of the given issue.""".
351
-
352
- source a rdf:Property;
353
- s:label "source";
354
- s:comment """The source of a transition is
355
- the document by which it happened""";
356
- s:range doc:Work.
357
- TerminalState a s:Class;
358
- s:subClassOf State;
359
- s:label "terminal state";
360
- s:comment """A state from which there are no transitions.""".
361
-
362
- NonTerminalState a s:Class;
363
- s:label "non-terminal state";
364
- owl:disjointWith TerminalState;
365
- s:comment """A state from which there are transitions.""".
366
-
367
- ######################################################
368
-
369
- #ends
370
- `