jekyll-theme-jod 0.2.3 → 0.2.4

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: 9d30bb1cd1bb0db19684f098d6ad39af920e8e0eab2510f3769fb56f209a0598
4
- data.tar.gz: d01d07d87f45768da3a31ab1470c516d3a5a6308780364af89faa0c92511f63b
3
+ metadata.gz: 7349e974ab17f4bf20a7d8de8af3a8b0dfac001d2dee48b70a5549ee2ca41862
4
+ data.tar.gz: 6b73e7bea68f6c655843bbbdce6ee14b8fa64fc5730dfea5bcb551d128cbb6f6
5
5
  SHA512:
6
- metadata.gz: 27df7c6f688672598193e472e4f32a5726453073969f9fc6a9d4fde2519b2ede62aa57cfe938c556ebeaad226f738a6896ee0fa7a4075b855827e6d7e63261fa
7
- data.tar.gz: 9c52b92b79d238b51972229ea351be3033c221325fc7e0775642bdd3a03851d4b8cdba81e0d2ac0ca992146e3c86c673490b167818c116c2f275c1996240dddc
6
+ metadata.gz: 1516ff2135599f0fb957c28f195f1db065a82c83058f651e54faeab5e346698828f663dc4e979b84b911effe3e2651c42698c0b8f4fccb979ae12923e5daa50b
7
+ data.tar.gz: 44e813c9b9296e84891f5874f7f33cb0b2d1796e9fab2d3bf8be0ad1d2084f12795db7320d360bda6ec1ff311d4846f8fb70928b62e25591d1f519fbe2f9e282
@@ -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.3
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: 2021-10-12 00:00:00.000000000 Z
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
- rubyforge_project:
124
- rubygems_version: 2.7.6.2
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.