ontopia-tldr 0.0.4-java → 0.1.0-java
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/ChangeLog +4 -0
- data/README +9 -9
- data/Rakefile +15 -11
- data/config.ru.sample +1 -3
- data/lib/ontopia/tldr/version.rb +3 -3
- data/lib/ontopia/tldr/views/layout.erb +4 -4
- data/lib/ontopia/tldr.rb +8 -8
- metadata +30 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67b761ffceb044f08ac02b2183e169b32b3f1722
|
4
|
+
data.tar.gz: b5e4fb9456b4c90d995a43c0de4f2d7086e50832
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ee09340b8d60d0dcba85da7cc5601db487c18cab47df2795972f0d657763dd4df7f0d71587234c2f2a73f3efaf2d68fb5aba737b52dd9b4c432043f951990b9
|
7
|
+
data.tar.gz: f56a26befe0b84b6866424360f82ce359ec76ac6b92660ed5705d4883a964c1e96707b73e062a326394328e0bf232c2cc2aed205c011d0cfc1acb7f8c483de11
|
data/ChangeLog
CHANGED
data/README
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
== VERSION
|
4
4
|
|
5
|
-
This documentation refers to ontopia-tldr version 0.0
|
5
|
+
This documentation refers to ontopia-tldr version 0.1.0
|
6
6
|
|
7
7
|
|
8
8
|
== DESCRIPTION
|
@@ -23,7 +23,7 @@ own <tt>config.ru</tt> file; e.g. (see Ontopia::TLDR for available options):
|
|
23
23
|
|
24
24
|
require 'ontopia/tldr'
|
25
25
|
|
26
|
-
Ontopia::TLDR.set(
|
26
|
+
run Ontopia::TLDR.set(
|
27
27
|
dbm_file: File.expand_path('../tldr.dbm', __FILE__),
|
28
28
|
xtm_file: File.expand_path('../tldr.xtm', __FILE__),
|
29
29
|
|
@@ -33,8 +33,6 @@ own <tt>config.ru</tt> file; e.g. (see Ontopia::TLDR for available options):
|
|
33
33
|
title: 'YOUR TITLE'
|
34
34
|
)
|
35
35
|
|
36
|
-
run Ontopia::TLDR
|
37
|
-
|
38
36
|
Assuming the following directory layout:
|
39
37
|
|
40
38
|
/srv/tldr
|
@@ -77,16 +75,18 @@ Then put the following snippet in Apache's VirtualHost configuration:
|
|
77
75
|
== SUPPORTED PLATFORMS
|
78
76
|
|
79
77
|
Ontopia::TLDR requires JRuby[http://jruby.org]. It has been tested with jruby
|
80
|
-
1.7.4 (1.9.3p392) on OpenJDK 64-Bit Server VM 1.6.0_27-b27 [linux-amd64]
|
78
|
+
1.7.4 (1.9.3p392) on OpenJDK 64-Bit Server VM 1.6.0_27-b27 [linux-amd64] and
|
79
|
+
jruby 9.0.0.0 (2.2.2) on OpenJDK 64-Bit Server VM 24.79-b02 1.7.0_79-b14
|
80
|
+
[linux-amd64].
|
81
81
|
|
82
82
|
|
83
83
|
== LINKS
|
84
84
|
|
85
|
-
Documentation:: https://blackwinter.github.io/ontopia-tldr/
|
86
|
-
Source code:: https://github.com/blackwinter/ontopia-tldr
|
87
|
-
RubyGem:: https://rubygems.org/gems/ontopia-tldr
|
88
85
|
Ontopia:: http://ontopia.net/
|
89
86
|
Demo:: http://ixtrieve.fh-koeln.de/ghn
|
87
|
+
Documentation:: https://blackwinter.github.com/ontopia-tldr
|
88
|
+
Source code:: https://github.com/blackwinter/ontopia-tldr
|
89
|
+
RubyGem:: https://rubygems.org/gems/ontopia-tldr
|
90
90
|
|
91
91
|
|
92
92
|
== AUTHORS
|
@@ -96,7 +96,7 @@ Demo:: http://ixtrieve.fh-koeln.de/ghn
|
|
96
96
|
|
97
97
|
== LICENSE AND COPYRIGHT
|
98
98
|
|
99
|
-
Copyright (C) 2013-
|
99
|
+
Copyright (C) 2013-2015 Jens Wille
|
100
100
|
|
101
101
|
ontopia-tldr is free software: you can redistribute it and/or modify it
|
102
102
|
under the terms of the GNU Affero General Public License as published by
|
data/Rakefile
CHANGED
@@ -4,17 +4,21 @@ begin
|
|
4
4
|
require 'hen'
|
5
5
|
|
6
6
|
Hen.lay! {{
|
7
|
-
:
|
8
|
-
:
|
9
|
-
:
|
10
|
-
:
|
11
|
-
:
|
12
|
-
:
|
13
|
-
:
|
14
|
-
:
|
15
|
-
:
|
16
|
-
:
|
17
|
-
:
|
7
|
+
gem: {
|
8
|
+
name: %q{ontopia-tldr},
|
9
|
+
version: Ontopia::TLDR::VERSION,
|
10
|
+
summary: %q{Tolog Document Retrieval with Ontopia.},
|
11
|
+
author: %q{Jens Wille},
|
12
|
+
email: %q{jens.wille@gmail.com},
|
13
|
+
license: %q{AGPL-3.0},
|
14
|
+
homepage: :blackwinter,
|
15
|
+
platform: 'java',
|
16
|
+
extra_files: FileList['*.sample', 'lib/ontopia/tldr/{public,views}/*'].to_a,
|
17
|
+
dependencies: {
|
18
|
+
'midos' => '~> 0.2',
|
19
|
+
'ontopia-topicmaps' => ['~> 0.0', '>= 0.0.4'],
|
20
|
+
'sinatra-bells' => '~> 0.1'
|
21
|
+
}
|
18
22
|
}
|
19
23
|
}}
|
20
24
|
rescue LoadError => err
|
data/config.ru.sample
CHANGED
data/lib/ontopia/tldr/version.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# #
|
4
4
|
# ontopia-tldr -- Tolog Document Retrieval with Ontopia. #
|
5
5
|
# #
|
6
|
-
# Copyright (C) 2013-
|
6
|
+
# Copyright (C) 2013-2015 Jens Wille #
|
7
7
|
# #
|
8
8
|
# ontopia-tldr is free software: you can redistribute it and/or modify it #
|
9
9
|
# under the terms of the GNU Affero General Public License as published by #
|
@@ -27,8 +27,8 @@ module Ontopia
|
|
27
27
|
module Version
|
28
28
|
|
29
29
|
MAJOR = 0
|
30
|
-
MINOR =
|
31
|
-
TINY =
|
30
|
+
MINOR = 1
|
31
|
+
TINY = 0
|
32
32
|
|
33
33
|
class << self
|
34
34
|
|
@@ -12,9 +12,9 @@
|
|
12
12
|
<h1><%=h title %></h1>
|
13
13
|
|
14
14
|
<div id="header">
|
15
|
-
<%=
|
16
|
-
<%=
|
17
|
-
<%=
|
15
|
+
<%= a_ 'Topics', href: url('/topics') %> (<%= a_ 'XTM', href: url('/xtm') %>) |
|
16
|
+
<%= a_ 'Documents', href: url('/documents') %> (<%= a_ 'DBM', href: url('/dbm') %>) |
|
17
|
+
<%= a_ 'New query', href: url('/') %>
|
18
18
|
<% if @filter && !instance_variable_get("@#{@filter}").empty? %>
|
19
19
|
| <form><input onkeyup="filter(this.value, '<%=h @filter %>');" placeholder="Filter <%=h @filter %>..." /></form>
|
20
20
|
<% end %>
|
@@ -31,7 +31,7 @@
|
|
31
31
|
<div id="footer">
|
32
32
|
<em>powered by</em> <a href="http://ontopia.net">Ontopia</a>
|
33
33
|
<em>and</em> <a href="http://sinatrarb.com">Sinatra</a>
|
34
|
-
|
34
|
+
— <a href="http://blackwinter.github.com/ontopia-tldr">ontopia-tldr</a>
|
35
35
|
<strong>v<%= Ontopia::TLDR::VERSION %></strong>
|
36
36
|
</div>
|
37
37
|
</body>
|
data/lib/ontopia/tldr.rb
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
# #
|
6
6
|
# ontopia-tldr -- Tolog Document Retrieval with Ontopia. #
|
7
7
|
# #
|
8
|
-
# Copyright (C) 2013-
|
8
|
+
# Copyright (C) 2013-2015 Jens Wille #
|
9
9
|
# #
|
10
10
|
# ontopia-tldr is free software: you can redistribute it and/or modify it #
|
11
11
|
# under the terms of the GNU Affero General Public License as published by #
|
@@ -272,25 +272,25 @@ select $TYPE, $TOPIC from
|
|
272
272
|
end
|
273
273
|
|
274
274
|
def render_topics(topics = @topics)
|
275
|
-
|
276
|
-
|
275
|
+
ul_(topics.sort, id: :topics) { |topic|
|
276
|
+
li_(link_to_topic(topic),
|
277
277
|
' (', settings.topic_index[topic].size, ')',
|
278
278
|
'data-index' => topic_to_s(topic).downcase)
|
279
279
|
}
|
280
280
|
end
|
281
281
|
|
282
282
|
def render_documents(documents = @documents)
|
283
|
-
|
284
|
-
|
283
|
+
ul_(documents.sort_by { |k,| k }, id: :documents) { |id, doc|
|
284
|
+
li_(link_to_document(id, doc),
|
285
285
|
'data-index' => doc_to_s(id, doc).downcase)
|
286
286
|
}
|
287
287
|
end
|
288
288
|
|
289
289
|
def render_topics_hash(hash)
|
290
|
-
|
291
|
-
|
290
|
+
ul_(hash.map { |k, v| [topic_to_s(k), k, v] }.sort) { |name, key, value|
|
291
|
+
li_(link_to_topic(key, name),
|
292
292
|
value.is_a?(Hash) ? render_topics_hash(value) :
|
293
|
-
|
293
|
+
ul_(value.sort.uniq) { |topic| li_(link_to_topic(topic)) })
|
294
294
|
}
|
295
295
|
end
|
296
296
|
|
metadata
CHANGED
@@ -1,71 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ontopia-tldr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Jens Wille
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: midos
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '0.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
26
|
+
version: '0.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: ontopia-topicmaps
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.0'
|
31
34
|
- - ">="
|
32
35
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
36
|
+
version: 0.0.4
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
41
|
+
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0.0'
|
38
44
|
- - ">="
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
46
|
+
version: 0.0.4
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: sinatra-bells
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
|
-
- - "
|
51
|
+
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
53
|
+
version: '0.1'
|
48
54
|
type: :runtime
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
|
-
- - "
|
58
|
+
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
60
|
+
version: '0.1'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: hen
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0.8'
|
59
68
|
- - ">="
|
60
69
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
70
|
+
version: 0.8.3
|
62
71
|
type: :development
|
63
72
|
prerelease: false
|
64
73
|
version_requirements: !ruby/object:Gem::Requirement
|
65
74
|
requirements:
|
75
|
+
- - "~>"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0.8'
|
66
78
|
- - ">="
|
67
79
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
80
|
+
version: 0.8.3
|
69
81
|
- !ruby/object:Gem::Dependency
|
70
82
|
name: rake
|
71
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -111,13 +123,13 @@ licenses:
|
|
111
123
|
metadata: {}
|
112
124
|
post_install_message: |2+
|
113
125
|
|
114
|
-
ontopia-tldr-0.0
|
126
|
+
ontopia-tldr-0.1.0 [2015-10-02]:
|
115
127
|
|
116
|
-
*
|
128
|
+
* Minor refactoring.
|
117
129
|
|
118
130
|
rdoc_options:
|
119
131
|
- "--title"
|
120
|
-
- ontopia-tldr Application documentation (v0.0
|
132
|
+
- ontopia-tldr Application documentation (v0.1.0)
|
121
133
|
- "--charset"
|
122
134
|
- UTF-8
|
123
135
|
- "--line-numbers"
|
@@ -138,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
150
|
version: '0'
|
139
151
|
requirements: []
|
140
152
|
rubyforge_project:
|
141
|
-
rubygems_version: 2.
|
153
|
+
rubygems_version: 2.4.8
|
142
154
|
signing_key:
|
143
155
|
specification_version: 4
|
144
156
|
summary: Tolog Document Retrieval with Ontopia.
|