jekyll-theme-jod 0.2.1 → 0.2.4
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.
- checksums.yaml +4 -4
- data/_includes/navigation.html +44 -3
- data/_includes/ontology-head.html +6 -0
- data/_layouts/ontology.html +31 -0
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7349e974ab17f4bf20a7d8de8af3a8b0dfac001d2dee48b70a5549ee2ca41862
|
4
|
+
data.tar.gz: 6b73e7bea68f6c655843bbbdce6ee14b8fa64fc5730dfea5bcb551d128cbb6f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1516ff2135599f0fb957c28f195f1db065a82c83058f651e54faeab5e346698828f663dc4e979b84b911effe3e2651c42698c0b8f4fccb979ae12923e5daa50b
|
7
|
+
data.tar.gz: 44e813c9b9296e84891f5874f7f33cb0b2d1796e9fab2d3bf8be0ad1d2084f12795db7320d360bda6ec1ff311d4846f8fb70928b62e25591d1f519fbe2f9e282
|
data/_includes/navigation.html
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
-
<nav class="col-sm-3 col-md-2 col-lg-3 col-xl-3 d-none d-sm-block bg-light
|
1
|
+
<nav class="col-sm-3 col-md-2 col-lg-3 col-xl-3 d-none d-sm-block bg-light"
|
2
|
+
style="position: -webkit-sticky;
|
3
|
+
position: sticky;
|
4
|
+
top: 0;
|
5
|
+
height: 100vh;
|
6
|
+
overflow: auto;">
|
2
7
|
<form class="bd-search d-flex align-items-center">
|
3
8
|
<input
|
4
9
|
type="search"
|
@@ -9,16 +14,52 @@
|
|
9
14
|
spellcheck="false"
|
10
15
|
role="combobox"
|
11
16
|
dir="auto"
|
17
|
+
onkeyup="searchInList()"
|
12
18
|
/>
|
13
19
|
</form>
|
14
20
|
|
15
|
-
<ul class="nav nav-pills flex-column">
|
21
|
+
<ul class="nav nav-pills flex-column" id="search-list">
|
16
22
|
{% for result in classesResultset %}
|
17
23
|
<li class="nav-item">
|
18
|
-
<a class="nav-link" href="#{{ result.subject.iri | md5 }}">
|
24
|
+
<a class="nav-link" href="#id-{{ result.subject.iri | md5 }}">
|
25
|
+
{% include label.html iri = result.subject.iri %}
|
26
|
+
</a>
|
27
|
+
</li>
|
28
|
+
{% endfor %}
|
29
|
+
{% for result in objectPropertiesResultset %}
|
30
|
+
<li class="nav-item">
|
31
|
+
<a class="nav-link" href="#id-{{ result.subject.iri | md5 }}">
|
32
|
+
{% include label.html iri = result.subject.iri %}
|
33
|
+
</a>
|
34
|
+
</li>
|
35
|
+
{% endfor %}
|
36
|
+
{% for result in datatypePropertiesResultset %}
|
37
|
+
<li class="nav-item">
|
38
|
+
<a class="nav-link" href="#id-{{ result.subject.iri | md5 }}">
|
19
39
|
{% include label.html iri = result.subject.iri %}
|
20
40
|
</a>
|
21
41
|
</li>
|
22
42
|
{% endfor %}
|
23
43
|
</ul>
|
44
|
+
<script type="text/javascript">
|
45
|
+
function searchInList() {
|
46
|
+
// Declare variables
|
47
|
+
var input, filter, ul, li, a, i, txtValue;
|
48
|
+
input = document.getElementById('search-input');
|
49
|
+
filter = input.value.toUpperCase();
|
50
|
+
ul = document.getElementById("search-list");
|
51
|
+
li = ul.getElementsByTagName('li');
|
52
|
+
|
53
|
+
// Loop through all list items, and hide those who don't match the search query
|
54
|
+
for (i = 0; i < li.length; i++) {
|
55
|
+
a = li[i].getElementsByTagName("a")[0];
|
56
|
+
txtValue = a.textContent || a.innerText;
|
57
|
+
if (txtValue.toUpperCase().indexOf(filter) > -1) {
|
58
|
+
li[i].style.display = "";
|
59
|
+
} else {
|
60
|
+
li[i].style.display = "none";
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
</script>
|
24
65
|
</nav>
|
@@ -58,6 +58,12 @@
|
|
58
58
|
<span class="badge badge-light">{{ result.classes}}</span>
|
59
59
|
</a>
|
60
60
|
{% endfor %}
|
61
|
+
{% for result in countRdfPropertiesResultSet %}
|
62
|
+
<a class="btn btn-primary btn-lg" href="#rdfProperties" role="button">
|
63
|
+
RDF Properties
|
64
|
+
<span class="badge badge-light">{{ result.rdfProperties}}</span>
|
65
|
+
</a>
|
66
|
+
{% endfor %}
|
61
67
|
{% for result in countObjectPropertiesResultSet %}
|
62
68
|
<a class="btn btn-primary btn-lg" href="#objectProperties" role="button">
|
63
69
|
Object Properties
|
data/_layouts/ontology.html
CHANGED
@@ -24,6 +24,32 @@ rdf_prefix_path: "_data/prefixes.pref"
|
|
24
24
|
' %}
|
25
25
|
{% assign countClassResultSet = page.rdf | sparql_query: countClassQuery %}
|
26
26
|
|
27
|
+
{% assign rdfPropertiesQuery = '
|
28
|
+
SELECT DISTINCT ?subject
|
29
|
+
WHERE
|
30
|
+
{
|
31
|
+
?subject a ?class .
|
32
|
+
FILTER ( ?class IN (rdf:Property) )
|
33
|
+
FILTER NOT EXISTS { ?subject a ?owlPropertyClass .
|
34
|
+
FILTER ( ?owlPropertyClass IN ( owl:ObjectProperty , owl:DatatypeProperty ) )}
|
35
|
+
FILTER isIRI(?subject)
|
36
|
+
}
|
37
|
+
ORDER BY ?label' %}
|
38
|
+
{% assign rdfPropertiesResultset = page.rdf | sparql_query: rdfPropertiesQuery %}
|
39
|
+
|
40
|
+
{% assign countRdfPropertiesQuery = '
|
41
|
+
SELECT DISTINCT (COUNT(?subject) as ?rdfProperties)
|
42
|
+
WHERE
|
43
|
+
{
|
44
|
+
?subject a ?class .
|
45
|
+
FILTER ( ?class IN (rdf:Property) )
|
46
|
+
FILTER NOT EXISTS { ?subject a ?owlPropertyClass .
|
47
|
+
FILTER ( ?owlPropertyClass IN ( owl:ObjectProperty , owl:DatatypeProperty ) )}
|
48
|
+
FILTER isIRI(?subject)
|
49
|
+
}
|
50
|
+
' %}
|
51
|
+
{% assign countRdfPropertiesResultSet = page.rdf | sparql_query: countRdfPropertiesQuery %}
|
52
|
+
|
27
53
|
{% assign objectPropertiesQuery = '
|
28
54
|
SELECT DISTINCT ?subject
|
29
55
|
WHERE
|
@@ -81,6 +107,11 @@ rdf_prefix_path: "_data/prefixes.pref"
|
|
81
107
|
<p>{% include class-card.html iri = result.subject.iri %}</p>
|
82
108
|
{% endfor %}
|
83
109
|
|
110
|
+
<h2 id="rdfProperties">RDF Properties</h2>
|
111
|
+
{% for result in rdfPropertiesResultset %}
|
112
|
+
<p>{% include class-card.html iri = result.subject.iri %}</p>
|
113
|
+
{% endfor %}
|
114
|
+
|
84
115
|
<h2 id="objectProperties">Object Properties</h2>
|
85
116
|
{% for result in objectPropertiesResultset %}
|
86
117
|
<p>{% include class-card.html iri = result.subject.iri %}</p>
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-jod
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Tramp
|
8
8
|
- Natanael Arndt
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-03-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jekyll
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '10.0'
|
84
|
-
description:
|
84
|
+
description:
|
85
85
|
email:
|
86
86
|
- sebastian.tramp@eccenca.com
|
87
87
|
- arndtn@gmail.com
|
@@ -105,7 +105,7 @@ homepage: https://github.com/eccenca/jod
|
|
105
105
|
licenses:
|
106
106
|
- MIT
|
107
107
|
metadata: {}
|
108
|
-
post_install_message:
|
108
|
+
post_install_message:
|
109
109
|
rdoc_options: []
|
110
110
|
require_paths:
|
111
111
|
- lib
|
@@ -120,9 +120,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
- !ruby/object:Gem::Version
|
121
121
|
version: '0'
|
122
122
|
requirements: []
|
123
|
-
|
124
|
-
|
125
|
-
signing_key:
|
123
|
+
rubygems_version: 3.3.5
|
124
|
+
signing_key:
|
126
125
|
specification_version: 4
|
127
126
|
summary: The JOD theme generates documentation web pages from Ontology turtle documents
|
128
127
|
using Jekyll-RDF extension.
|