rtm 0.1.0 → 0.1.1
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.
- data/lib/activetopicmaps.rb +229 -0
- data/lib/rtm/backend/active_record/association_and_role.rb +54 -0
- data/lib/rtm/backend/active_record/locators.rb +53 -0
- data/lib/rtm/backend/active_record/name_variant_occurrence.rb +44 -0
- data/lib/rtm/backend/active_record/quaaxtm2rtm.rb +113 -0
- data/lib/rtm/backend/active_record/quaaxtm2rtmviews.rb +134 -0
- data/lib/rtm/backend/active_record/set_wrapper.rb +98 -0
- data/lib/rtm/backend/active_record/tm_construct.rb +62 -0
- data/lib/rtm/backend/active_record/tm_delegator.rb +420 -0
- data/lib/rtm/backend/active_record/tm_set_delegator.rb +195 -0
- data/lib/rtm/backend/active_record/tmdm.rb +0 -1
- data/lib/rtm/backend/active_record/topic.rb +153 -0
- data/lib/rtm/backend/active_record/topic_map.rb +285 -0
- data/lib/rtm/backend/active_record.rb +9 -1350
- data/lib/rtm/io/to_jtm.rb +5 -1
- metadata +74 -68
data/lib/rtm/io/to_jtm.rb
CHANGED
|
@@ -3,7 +3,11 @@ module RTM::IO
|
|
|
3
3
|
# JTM Export.
|
|
4
4
|
# Each Topic Maps Construct gets a to_jtm method.
|
|
5
5
|
module TOJTM
|
|
6
|
-
|
|
6
|
+
begin
|
|
7
|
+
require 'json/ext'
|
|
8
|
+
rescue LoadError
|
|
9
|
+
require 'json/pure'
|
|
10
|
+
end
|
|
7
11
|
|
|
8
12
|
module TopicMap
|
|
9
13
|
# returns the JTM representation of this topic map
|
metadata
CHANGED
|
@@ -1,53 +1,52 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
3
|
+
requirements:
|
|
4
|
+
- - '>='
|
|
5
|
+
- !ruby/object:Gem::Version
|
|
6
|
+
version: !str 0
|
|
7
|
+
version:
|
|
8
|
+
email: bb--rtm-gem@bockb.de
|
|
9
|
+
cert_chain: []
|
|
10
|
+
summary: Ruby Topic Maps is a Topic Maps engine written in Ruby.
|
|
11
|
+
post_install_message:
|
|
12
|
+
extra_rdoc_files: []
|
|
13
|
+
homepage: http://rtm.rubyforge.org/
|
|
14
|
+
signing_key:
|
|
2
15
|
name: rtm
|
|
3
|
-
|
|
4
|
-
version: 0.1.0
|
|
5
|
-
platform: ruby
|
|
6
|
-
authors:
|
|
7
|
-
- Benjamin Bock
|
|
16
|
+
rdoc_options: []
|
|
8
17
|
autorequire:
|
|
9
|
-
|
|
10
|
-
cert_chain: []
|
|
11
|
-
|
|
12
|
-
date: 2007-04-02 00:00:00 +02:00
|
|
13
|
-
default_executable:
|
|
14
|
-
dependencies:
|
|
15
|
-
- !ruby/object:Gem::Dependency
|
|
16
|
-
name: activerecord
|
|
17
|
-
version_requirement:
|
|
18
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
19
|
-
requirements:
|
|
20
|
-
- - ">="
|
|
21
|
-
- !ruby/object:Gem::Version
|
|
22
|
-
version: 2.0.1
|
|
23
|
-
version:
|
|
24
|
-
- !ruby/object:Gem::Dependency
|
|
25
|
-
name: activesupport
|
|
26
|
-
version_requirement:
|
|
27
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
28
|
-
requirements:
|
|
29
|
-
- - ">="
|
|
30
|
-
- !ruby/object:Gem::Version
|
|
31
|
-
version: 2.0.1
|
|
32
|
-
version:
|
|
33
|
-
description: Ruby Topic Maps is a Topic Maps engine written in Ruby.
|
|
34
|
-
email: bb--rtm-gem@bockb.de
|
|
18
|
+
rubyforge_project: rtm
|
|
35
19
|
executables: []
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
extra_rdoc_files: []
|
|
40
|
-
|
|
20
|
+
description: Ruby Topic Maps is a Topic Maps engine written in Ruby.
|
|
21
|
+
specification_version: 2
|
|
22
|
+
default_executable:
|
|
41
23
|
files:
|
|
24
|
+
- lib/activetopicmaps.rb
|
|
42
25
|
- lib/Rakefile.rb
|
|
43
|
-
- lib/rtm
|
|
44
|
-
- lib/rtm/backend/active_record/tmdm.rb
|
|
45
|
-
- lib/rtm/backend/active_record.rb
|
|
26
|
+
- lib/rtm.rb
|
|
46
27
|
- lib/rtm/base.rb
|
|
47
28
|
- lib/rtm/connect.rb
|
|
48
29
|
- lib/rtm/core_ext.rb
|
|
49
30
|
- lib/rtm/extensions.rb
|
|
50
31
|
- lib/rtm/helpers.rb
|
|
32
|
+
- lib/rtm/locator_helpers.rb
|
|
33
|
+
- lib/rtm/pimp_my_api.rb
|
|
34
|
+
- lib/rtm/psi.rb
|
|
35
|
+
- lib/rtm/validation.rb
|
|
36
|
+
- lib/rtm/backend/active_record.rb
|
|
37
|
+
- lib/rtm/backend/active_record/001_initial_schema.rb
|
|
38
|
+
- lib/rtm/backend/active_record/association_and_role.rb
|
|
39
|
+
- lib/rtm/backend/active_record/locators.rb
|
|
40
|
+
- lib/rtm/backend/active_record/name_variant_occurrence.rb
|
|
41
|
+
- lib/rtm/backend/active_record/quaaxtm2rtm.rb
|
|
42
|
+
- lib/rtm/backend/active_record/quaaxtm2rtmviews.rb
|
|
43
|
+
- lib/rtm/backend/active_record/set_wrapper.rb
|
|
44
|
+
- lib/rtm/backend/active_record/tmdm.rb
|
|
45
|
+
- lib/rtm/backend/active_record/tm_construct.rb
|
|
46
|
+
- lib/rtm/backend/active_record/tm_delegator.rb
|
|
47
|
+
- lib/rtm/backend/active_record/tm_set_delegator.rb
|
|
48
|
+
- lib/rtm/backend/active_record/topic.rb
|
|
49
|
+
- lib/rtm/backend/active_record/topic_map.rb
|
|
51
50
|
- lib/rtm/io/from_xtm2.rb
|
|
52
51
|
- lib/rtm/io/from_xtm2_jaxp.rb
|
|
53
52
|
- lib/rtm/io/from_xtm2_libxml.rb
|
|
@@ -56,40 +55,47 @@ files:
|
|
|
56
55
|
- lib/rtm/io/to_xtm1.rb
|
|
57
56
|
- lib/rtm/io/to_xtm2.rb
|
|
58
57
|
- lib/rtm/io/to_yaml.rb
|
|
59
|
-
- lib/rtm/locator_helpers.rb
|
|
60
58
|
- lib/rtm/merging/merging.rb
|
|
61
|
-
- lib/rtm/pimp_my_api.rb
|
|
62
|
-
- lib/rtm/psi.rb
|
|
63
|
-
- lib/rtm/validation.rb
|
|
64
|
-
- lib/rtm.rb
|
|
65
59
|
- COPYRIGHT
|
|
66
60
|
- DISCLAIMER
|
|
67
61
|
- README
|
|
68
|
-
|
|
69
|
-
homepage: http://rtm.rubyforge.org/
|
|
70
|
-
post_install_message:
|
|
71
|
-
rdoc_options: []
|
|
72
|
-
|
|
73
|
-
require_paths:
|
|
74
|
-
- lib
|
|
75
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
63
|
requirements:
|
|
77
|
-
- -
|
|
78
|
-
- !ruby/object:Gem::Version
|
|
79
|
-
version:
|
|
80
|
-
version:
|
|
81
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
|
-
requirements:
|
|
83
|
-
- - ">="
|
|
84
|
-
- !ruby/object:Gem::Version
|
|
85
|
-
version: "0"
|
|
64
|
+
- - '>='
|
|
65
|
+
- !ruby/object:Gem::Version
|
|
66
|
+
version: !str 0
|
|
86
67
|
version:
|
|
68
|
+
extensions: []
|
|
69
|
+
rubygems_version: 1.0.1
|
|
87
70
|
requirements:
|
|
88
71
|
- sqlite3-ruby >= 1.2.1
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
summary: Ruby Topic Maps is a Topic Maps engine written in Ruby.
|
|
72
|
+
authors:
|
|
73
|
+
- Benjamin Bock
|
|
74
|
+
date: 2007-04-07 22:00:00 +00:00
|
|
75
|
+
platform: ruby
|
|
94
76
|
test_files: []
|
|
95
|
-
|
|
77
|
+
version: !ruby/object:Gem::Version
|
|
78
|
+
version: 0.1.1
|
|
79
|
+
require_paths:
|
|
80
|
+
- lib
|
|
81
|
+
dependencies:
|
|
82
|
+
- !ruby/object:Gem::Dependency
|
|
83
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
84
|
+
requirements:
|
|
85
|
+
- - '>='
|
|
86
|
+
- !ruby/object:Gem::Version
|
|
87
|
+
version: 2.0.1
|
|
88
|
+
version:
|
|
89
|
+
version_requirement:
|
|
90
|
+
name: activerecord
|
|
91
|
+
- !ruby/object:Gem::Dependency
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - '>='
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: 2.0.1
|
|
97
|
+
version:
|
|
98
|
+
version_requirement:
|
|
99
|
+
name: activesupport
|
|
100
|
+
bindir: bin
|
|
101
|
+
has_rdoc: false
|