forked from almudenaris/ro
-
Notifications
You must be signed in to change notification settings - Fork 6
/
owl2html-roterms.xslt.xml
101 lines (88 loc) · 2.75 KB
/
owl2html-roterms.xslt.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
>
<xsl:template match="/">
<html>
<body>
<h1><xsl:value-of select="rdf:RDF/owl:Ontology/rdfs:label"/></h1>
<h2>OWL ontology</h2>
<dl>
<dt>Ontology IRI</dt>
<dd><xsl:value-of select="rdf:RDF/owl:Ontology/@rdf:about"/></dd>
<dt>Version IRI</dt>
<dd><xsl:value-of select="rdf:RDF/owl:Ontology/owl:versionIRI/@rdf:resource"/></dd>
<dt>Creator</dt>
<xsl:for-each select="//dc:creator">
<dd><xsl:value-of select="." /></dd>
</xsl:for-each>
<dt>Contributors</dt>
<xsl:for-each select="//dc:contributor">
<dd><xsl:value-of select="." /></dd>
</xsl:for-each>
<dt>Issued</dt>
<xsl:for-each select="//dct:issued">
<dd><xsl:value-of select="." /></dd>
</xsl:for-each>
<dt>Last modified</dt>
<xsl:for-each select="//dct:modified">
<dd><xsl:value-of select="." /></dd>
</xsl:for-each>
</dl>
<p><strong>Please see the <a href="roterms.html">documentation for
<xsl:value-of select="rdf:RDF/owl:Ontology/rdfs:label"/>
</a>.</strong></p>
<p>This HTML is meant to show a simple browser introduction to the ontology and has been
automatically created using XSLT. To see the
source OWL as RDF/XML, either use "Save As" or "View Source".
</p>
<h3>Defined classes</h3>
<dl>
<xsl:for-each select="//owl:Class">
<dt>
<em>
<a href="roterms.html#{@rdf:about}">
<xsl:value-of select="rdfs:label" />
</a>
</em>
 
<code><xsl:value-of select="@rdf:about" /></code>
</dt>
</xsl:for-each>
</dl>
<h3>Defined object properties</h3>
<dl>
<xsl:for-each select="//owl:ObjectProperty">
<dt>
<em>
<a href="roterms.html#{@rdf:about}">
<xsl:value-of select="rdfs:label" />
</a>
</em>
 
<code><xsl:value-of select="@rdf:about" /></code>
</dt>
</xsl:for-each>
</dl>
<h3>Defined data type properties</h3>
<dl>
<xsl:for-each select="//owl:DatatypeProperty">
<dt>
<em>
<a href="roterms.html#{@rdf:about}">
<xsl:value-of select="rdfs:label" />
</a>
</em>
 
<code><xsl:value-of select="@rdf:about" /></code>
</dt>
</xsl:for-each>
</dl>
</body>
</html>
</xsl:template>
</xsl:stylesheet>