jekyll-theme-jod 0.2.2 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf8b5000b6ee5c97c63c6628fdedc015f85bd214642e49f7e5d238daffdff8eb
4
- data.tar.gz: 9e10cfdf9e17b741e2461cad3a9a894e04403f126309492db8cf29d1cc81e660
3
+ metadata.gz: 3d050f5917b35c2445ceff40f6e70c79216c565f72176b32d09c37b9f69e2b4e
4
+ data.tar.gz: 7cc760314d908c273ef4fb64ce988ca76024c2d4879894d8ba7d7870d6aa5715
5
5
  SHA512:
6
- metadata.gz: 1137c3f8e356f125f6f0f8573d414b6dfdcf150f4b0cb139bfca12fbcd317d57571e6c089dbc3fae6cbcd0fc398d72363d63b9d52f07374fa76b6b5ec67bd71c
7
- data.tar.gz: 6b5e846ad9d32f3bee266a947629fe8440a13816fbfcc356440cf809314e2219991c31af5d20c23695a096ca853454fe759d56bad6c0cce1131dba7497fd5ffd
6
+ metadata.gz: 064e6a8aa7a1edb8a182c0f095ddfa0875499069902b8c36012b3cf9d943f81302b2debf988b1f931545669ccb0ffbcf975a8fc1e71c42fc12b836145b9a7338
7
+ data.tar.gz: b3d68c53c31ce737380168683c52d23c792803b10d48c1abe7c11f8c83d02716d5652210af1a41fd8d796c0712b8f6be423588946768bf26964456b7d93336bb
@@ -1,7 +1,7 @@
1
1
  {%- capture iri -%}<{{include.iri}}>{%- endcapture -%}
2
2
  {%- assign linkedResource = iri | rdf_get -%}
3
3
  <a
4
- href="#{{ linkedResource.iri | md5 }}"
4
+ href="#id-{{ linkedResource.iri | md5 }}"
5
5
  >
6
6
  {%- include label.html iri = linkedResource.iri -%}
7
7
  </a>
@@ -26,6 +26,20 @@ style="position: -webkit-sticky;
26
26
  </a>
27
27
  </li>
28
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 }}">
39
+ {% include label.html iri = result.subject.iri %}
40
+ </a>
41
+ </li>
42
+ {% endfor %}
29
43
  </ul>
30
44
  <script type="text/javascript">
31
45
  function searchInList() {
@@ -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
@@ -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.2
4
+ version: 0.2.5
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: 2021-10-12 00:00:00.000000000 Z
12
+ date: 2022-06-21 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
- rubyforge_project:
124
- rubygems_version: 2.7.6.2
125
- signing_key:
123
+ rubygems_version: 3.3.7
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.