ontopia-topicmaps 0.0.2-java → 0.0.3-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +6 -0
- data/README +13 -8
- data/Rakefile +1 -1
- data/lib/ontopia/topicmaps.rb +11 -5
- data/lib/ontopia/topicmaps/packages.rb +2 -0
- data/lib/ontopia/topicmaps/stringifiers.rb +2 -0
- data/lib/ontopia/topicmaps/topicmap.rb +8 -2
- data/lib/ontopia/topicmaps/version.rb +4 -2
- metadata +67 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3441df9dcaf296edacb15f8bffad2a90acb228eb
|
4
|
+
data.tar.gz: c6619f7345c8031ad4ea124c62cccc6e5ac9f429
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ceec25f455e4ba27eab66a3f71aaf9bfdab5d564b8eca4d4133598ce25501e86a3c075e93f6ed93c2ef8ac1cb95b5cdee09dfbe3adc787c201cc28dd88a37cf0
|
7
|
+
data.tar.gz: be48181973378e288d78dff2c8d6ecae6ae798d055bf56eedd9b6bad7235629ecd81b6466d3187307905ba391681d915f4f705b63848dad26681b4d0fc6cc4b9
|
data/ChangeLog
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
|
3
3
|
= Revision history for ontopia-topicmaps
|
4
4
|
|
5
|
+
== 0.0.3 [2014-04-16]
|
6
|
+
|
7
|
+
* Added Ontopia::Topicmaps::Topicmap#extract_query_variables.
|
8
|
+
* Added Ontopia::Topicmaps.file.
|
9
|
+
* Housekeeping.
|
10
|
+
|
5
11
|
== 0.0.2 [2013-07-25]
|
6
12
|
|
7
13
|
* Added Ontopia::Topicmaps::Topicmap#query_maps.
|
data/README
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
== VERSION
|
4
4
|
|
5
|
-
This documentation refers to ontopia-topicmaps version 0.0.
|
5
|
+
This documentation refers to ontopia-topicmaps version 0.0.3
|
6
6
|
|
7
7
|
|
8
8
|
== DESCRIPTION
|
@@ -10,16 +10,21 @@ This documentation refers to ontopia-topicmaps version 0.0.2
|
|
10
10
|
Query topic maps with Ontopia[http://ontopia.net/]. A working
|
11
11
|
installation[http://ontopia.net/doc/current/install.html] of Ontopia needs to
|
12
12
|
be present (point to it through the +OTM_BASE+ environment variable in case it
|
13
|
-
cannot be found automatically). Note, though, that's
|
14
|
-
application server, only the JAR files are needed.
|
13
|
+
cannot be found automatically). Note, though, that it's not required to run the
|
14
|
+
Ontopia application server, only the JAR files are needed.
|
15
|
+
|
16
|
+
|
17
|
+
== SUPPORTED PLATFORMS
|
18
|
+
|
19
|
+
Ontopia::Topicmaps requires JRuby[http://jruby.org]. It has been tested with
|
20
|
+
jruby 1.7.4 (1.9.3p392) on OpenJDK 64-Bit Server VM 1.6.0_45-b06 [linux-amd64].
|
15
21
|
|
16
22
|
|
17
23
|
== LINKS
|
18
24
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
RubyGem:: http://rubygems.org/gems/ontopia-topicmaps
|
25
|
+
Documentation:: https://blackwinter.github.io/ontopia-topicmaps/
|
26
|
+
Source code:: https://github.com/blackwinter/ontopia-topicmaps
|
27
|
+
RubyGem:: https://rubygems.org/gems/ontopia-topicmaps
|
23
28
|
Ontopia:: http://ontopia.net/
|
24
29
|
Demo:: http://ixtrieve.fh-koeln.de/ghn
|
25
30
|
|
@@ -31,7 +36,7 @@ Demo:: http://ixtrieve.fh-koeln.de/ghn
|
|
31
36
|
|
32
37
|
== LICENSE AND COPYRIGHT
|
33
38
|
|
34
|
-
Copyright (C) 2013 Jens Wille
|
39
|
+
Copyright (C) 2013-2014 Jens Wille
|
35
40
|
|
36
41
|
ontopia-topicmaps is free software: you can redistribute it and/or modify it
|
37
42
|
under the terms of the GNU Affero General Public License as published by
|
data/Rakefile
CHANGED
data/lib/ontopia/topicmaps.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# #
|
4
4
|
# ontopia-topicmaps -- Query topic maps with Ontopia. #
|
5
5
|
# #
|
6
|
-
# Copyright (C) 2013 Jens Wille
|
6
|
+
# Copyright (C) 2013-2014 Jens Wille #
|
7
7
|
# #
|
8
8
|
# ontopia-topicmaps is free software: you can redistribute it and/or modify #
|
9
9
|
# it under the terms of the GNU Affero General Public License as published #
|
@@ -27,6 +27,7 @@ require_relative 'topicmaps/version'
|
|
27
27
|
require_relative 'topicmaps/packages'
|
28
28
|
|
29
29
|
module Ontopia
|
30
|
+
|
30
31
|
module Topicmaps
|
31
32
|
|
32
33
|
DEFAULT_JARS = ENV['OTM_JARS'] || 'log4j-*:slf4j-log4j*:ontopia-engine-*'
|
@@ -58,20 +59,24 @@ module Ontopia
|
|
58
59
|
end
|
59
60
|
end
|
60
61
|
|
62
|
+
def file(file)
|
63
|
+
Topicmap.new(file)
|
64
|
+
end
|
65
|
+
|
61
66
|
def count(file, *args)
|
62
|
-
|
67
|
+
file(file).count(*args)
|
63
68
|
end
|
64
69
|
|
65
70
|
def query(file, *args, &block)
|
66
|
-
|
71
|
+
file(file).query(*args, &block)
|
67
72
|
end
|
68
73
|
|
69
74
|
def query_maps(file, *args)
|
70
|
-
|
75
|
+
file(file).query_maps(*args)
|
71
76
|
end
|
72
77
|
|
73
78
|
def topics(file, *args)
|
74
|
-
|
79
|
+
file(file).topics(*args)
|
75
80
|
end
|
76
81
|
|
77
82
|
def base=(base)
|
@@ -126,6 +131,7 @@ module Ontopia
|
|
126
131
|
}
|
127
132
|
|
128
133
|
end
|
134
|
+
|
129
135
|
end
|
130
136
|
|
131
137
|
require_relative 'topicmaps/stringifiers'
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# #
|
4
4
|
# ontopia-topicmaps -- Query topic maps with Ontopia. #
|
5
5
|
# #
|
6
|
-
# Copyright (C) 2013 Jens Wille
|
6
|
+
# Copyright (C) 2013-2014 Jens Wille #
|
7
7
|
# #
|
8
8
|
# ontopia-topicmaps is free software: you can redistribute it and/or modify #
|
9
9
|
# it under the terms of the GNU Affero General Public License as published #
|
@@ -22,6 +22,7 @@
|
|
22
22
|
#++
|
23
23
|
|
24
24
|
module Ontopia
|
25
|
+
|
25
26
|
module Topicmaps
|
26
27
|
|
27
28
|
class Topicmap
|
@@ -102,6 +103,10 @@ select count($TOPIC) from
|
|
102
103
|
self.class.extract_query_projection(query)
|
103
104
|
end
|
104
105
|
|
106
|
+
def extract_query_variables(query)
|
107
|
+
query_wrapper.get_query_processor.parse(query).get_selected_variables.to_a
|
108
|
+
end
|
109
|
+
|
105
110
|
private
|
106
111
|
|
107
112
|
def read(file, reader = nil)
|
@@ -114,7 +119,7 @@ select count($TOPIC) from
|
|
114
119
|
end
|
115
120
|
|
116
121
|
def query_string(query)
|
117
|
-
QUERY.
|
122
|
+
QUERY.key?(query ||= :all_topics) ? QUERY[query] :
|
118
123
|
query.is_a?(Symbol) ? raise("No such query: #{query}") : query
|
119
124
|
end
|
120
125
|
|
@@ -150,4 +155,5 @@ select count($TOPIC) from
|
|
150
155
|
end
|
151
156
|
|
152
157
|
end
|
158
|
+
|
153
159
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# #
|
4
4
|
# ontopia-topicmaps -- Query topic maps with Ontopia. #
|
5
5
|
# #
|
6
|
-
# Copyright (C) 2013 Jens Wille
|
6
|
+
# Copyright (C) 2013-2014 Jens Wille #
|
7
7
|
# #
|
8
8
|
# ontopia-topicmaps is free software: you can redistribute it and/or modify #
|
9
9
|
# it under the terms of the GNU Affero General Public License as published #
|
@@ -22,13 +22,14 @@
|
|
22
22
|
#++
|
23
23
|
|
24
24
|
module Ontopia
|
25
|
+
|
25
26
|
module Topicmaps
|
26
27
|
|
27
28
|
module Version
|
28
29
|
|
29
30
|
MAJOR = 0
|
30
31
|
MINOR = 0
|
31
|
-
TINY =
|
32
|
+
TINY = 3
|
32
33
|
|
33
34
|
class << self
|
34
35
|
|
@@ -49,4 +50,5 @@ module Ontopia
|
|
49
50
|
VERSION = Version.to_s
|
50
51
|
|
51
52
|
end
|
53
|
+
|
52
54
|
end
|
metadata
CHANGED
@@ -1,15 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ontopia-topicmaps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Jens Wille
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
11
|
+
date: 2014-04-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: hen
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
13
55
|
description: Query topic maps with Ontopia.
|
14
56
|
email: jens.wille@gmail.com
|
15
57
|
executables: []
|
@@ -19,16 +61,16 @@ extra_rdoc_files:
|
|
19
61
|
- COPYING
|
20
62
|
- ChangeLog
|
21
63
|
files:
|
64
|
+
- COPYING
|
65
|
+
- ChangeLog
|
66
|
+
- README
|
67
|
+
- Rakefile
|
22
68
|
- lib/ontopia-topicmaps.rb
|
23
69
|
- lib/ontopia/topicmaps.rb
|
24
70
|
- lib/ontopia/topicmaps/packages.rb
|
25
71
|
- lib/ontopia/topicmaps/stringifiers.rb
|
26
72
|
- lib/ontopia/topicmaps/topicmap.rb
|
27
73
|
- lib/ontopia/topicmaps/version.rb
|
28
|
-
- COPYING
|
29
|
-
- ChangeLog
|
30
|
-
- README
|
31
|
-
- Rakefile
|
32
74
|
- spec/data/ItalianOpera.ltm
|
33
75
|
- spec/data/JillsMusic.xtm
|
34
76
|
- spec/data/ghn.xtm
|
@@ -37,33 +79,40 @@ files:
|
|
37
79
|
- spec/spec_helper.rb
|
38
80
|
homepage: http://github.com/blackwinter/ontopia-topicmaps
|
39
81
|
licenses:
|
40
|
-
- AGPL
|
82
|
+
- AGPL-3.0
|
41
83
|
metadata: {}
|
42
|
-
post_install_message:
|
84
|
+
post_install_message: |2+
|
85
|
+
|
86
|
+
ontopia-topicmaps-0.0.3 [2014-04-16]:
|
87
|
+
|
88
|
+
* Added Ontopia::Topicmaps::Topicmap#extract_query_variables.
|
89
|
+
* Added Ontopia::Topicmaps.file.
|
90
|
+
* Housekeeping.
|
91
|
+
|
43
92
|
rdoc_options:
|
44
|
-
- --
|
93
|
+
- "--title"
|
94
|
+
- ontopia-topicmaps Application documentation (v0.0.3)
|
95
|
+
- "--charset"
|
45
96
|
- UTF-8
|
46
|
-
- --line-numbers
|
47
|
-
- --all
|
48
|
-
- --
|
49
|
-
- ontopia-topicmaps Application documentation (v0.0.2)
|
50
|
-
- --main
|
97
|
+
- "--line-numbers"
|
98
|
+
- "--all"
|
99
|
+
- "--main"
|
51
100
|
- README
|
52
101
|
require_paths:
|
53
102
|
- lib
|
54
103
|
required_ruby_version: !ruby/object:Gem::Requirement
|
55
104
|
requirements:
|
56
|
-
- -
|
105
|
+
- - ">="
|
57
106
|
- !ruby/object:Gem::Version
|
58
107
|
version: '0'
|
59
108
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
109
|
requirements:
|
61
|
-
- -
|
110
|
+
- - ">="
|
62
111
|
- !ruby/object:Gem::Version
|
63
112
|
version: '0'
|
64
113
|
requirements: []
|
65
114
|
rubyforge_project:
|
66
|
-
rubygems_version: 2.
|
115
|
+
rubygems_version: 2.2.2
|
67
116
|
signing_key:
|
68
117
|
specification_version: 4
|
69
118
|
summary: Query topic maps with Ontopia.
|