-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathissue
70 lines (59 loc) · 2 KB
/
issue
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
<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:redfoot="http://redfoot.net/3.0/redfoot#"
xmlns:template="http://redfoot.net/3.0/template#"
xmlns:kid="http://redfoot.net/3.0/kid#"
>
<redfoot:Namespace rdf:about="#">
<rdfs:label>Issue Namespace</rdfs:label>
<rdfs:comment>
An Issue namespace.
</rdfs:comment>
</redfoot:Namespace>
<owl:Ontology rdf:ID="Ontology">
<rdfs:label xml:lang="en">An ontology for Issues.</rdfs:label>
</owl:Ontology>
<owl:Class rdf:ID="Issue">
<rdfs:label>Issue</rdfs:label>
<rdfs:comment></rdfs:comment>
<rdfs:subClassOf rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/>
<template:content>
<kid:PagePartHandler rdf:ID="IssueHandler">
<kid:template rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
<![CDATA[
<span xmlns:kid="http://purl.org/kid/ns#" kid:omit="">
<?python
import time
issue = request.uri.abstract()
ISSUE = redfoot.namespace("http://redfoot.net/2006/issue#")
DC_created = URIRef("http://purl.org/dc/terms/created")
DC_creator = URIRef("http://purl.org/dc/elements/1.1/creator")
creator = redfoot.value(issue, DC_creator)
c = redfoot.value(issue, DC_created)
try:
created = time.strftime("%A %d %B, %Y", time.gmtime(float(c)))
except:
created = None
?>
<p>
<span kid:if="created">The issue was created on ${created}.</span>
<span kid:if="creator">The issue was added by
<a href="${request.relative(creator.concrete())}">${redfoot.label(creator) or creator}</a>.
</span>
</p>
<pre>${redfoot.comment(issue)}</pre>
</span>
]]>
</kid:template>
</kid:PagePartHandler>
</template:content>
</owl:Class>
<owl:Class rdf:ID="Resolved">
<rdfs:label>Resolved Issue</rdfs:label>
<rdfs:comment></rdfs:comment>
<rdfs:subClassOf rdf:resource="#Issue"/>
</owl:Class>
</rdf:RDF>