rtm 0.1.6 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/DISCLAIMER +10 -33
- data/LICENSE +201 -0
- data/README +3 -3
- data/lib/rtm.rb +148 -74
- data/lib/rtm/axes.rb +295 -0
- data/lib/rtm/axes/association.rb +76 -0
- data/lib/rtm/axes/associations.rb +96 -0
- data/lib/rtm/axes/assocs_names_occs.rb +56 -0
- data/lib/rtm/axes/characteristic.rb +68 -0
- data/lib/rtm/axes/characteristics.rb +93 -0
- data/lib/rtm/axes/string.rb +76 -0
- data/lib/rtm/axes/strings.rb +87 -0
- data/lib/rtm/axes/topic.rb +233 -0
- data/lib/rtm/axes/topics.rb +280 -0
- data/lib/rtm/{backward_compatibility.rb → deprecated/index_property_set.rb} +3 -0
- data/lib/rtm/engine.rb +58 -0
- data/lib/rtm/extensions.rb +11 -1
- data/lib/rtm/{locator_helpers.rb → helpers/locator.rb} +15 -4
- data/lib/rtm/{helpers.rb → helpers/no_output.rb} +3 -0
- data/lib/rtm/helpers/uri.rb +13 -0
- data/lib/rtm/io.rb +18 -0
- data/lib/rtm/io/from_xtm2_libxml.rb +2 -1
- data/lib/rtm/io/ontopia_io.rb +25 -0
- data/lib/rtm/io/tmapix.rb +234 -0
- data/lib/rtm/io/to_hash.rb +116 -0
- data/lib/rtm/io/to_jtm.rb +53 -103
- data/lib/rtm/io/to_rdf.rb +30 -0
- data/lib/rtm/io/to_string.rb +8 -6
- data/lib/rtm/io/to_xtm1.rb +6 -4
- data/lib/rtm/io/to_xtm2.rb +10 -8
- data/lib/rtm/io/to_yaml.rb +29 -98
- data/lib/rtm/navigation.rb +37 -0
- data/lib/rtm/navigation/association/players.rb +25 -0
- data/lib/rtm/navigation/name/atomify.rb +19 -0
- data/lib/rtm/navigation/name/characteristics.rb +33 -0
- data/lib/rtm/navigation/occurrence/atomify.rb +19 -0
- data/lib/rtm/navigation/occurrence/characteristics.rb +33 -0
- data/lib/rtm/navigation/topic/characteristics.rb +33 -0
- data/lib/rtm/navigation/topic/indicators.rb +31 -0
- data/lib/rtm/navigation/topic/items.rb +31 -0
- data/lib/rtm/navigation/topic/locators.rb +31 -0
- data/lib/rtm/navigation/topic/players.rb +27 -0
- data/lib/rtm/navigation/topic/supertypes.rb +162 -0
- data/lib/rtm/navigation/topic/traverse.rb +51 -0
- data/lib/rtm/navigation/topic/types.rb +107 -0
- data/lib/rtm/psi.rb +33 -2
- data/lib/rtm/sugar.rb +34 -0
- data/lib/rtm/sugar/association/hash_access.rb +46 -0
- data/lib/rtm/sugar/occurrence/dynamic_value.rb +75 -0
- data/lib/rtm/{pimp_my_api.rb → sugar/occurrence/externalize.rb} +3 -0
- data/lib/rtm/sugar/role/counterparts.rb +133 -46
- data/lib/rtm/sugar/topic/characteristics.rb +126 -12
- data/lib/rtm/sugar/topic/counterparts.rb +130 -7
- data/lib/rtm/sugar/topic/hash_access.rb +140 -30
- data/lib/rtm/sugar/topic/scoped.rb +65 -0
- data/lib/rtm/sugar/topic/topic_ref.rb +35 -0
- data/lib/rtm/sugar/topic/typed.rb +159 -0
- data/lib/rtm/sugar/typed/types.rb +38 -0
- data/lib/rtm/validation.rb +8 -5
- data/lib/rtm/version.rb +18 -0
- data/spec/helpers/spec_exampleexamplegroup.rb +14 -0
- data/spec/rtm/axes/association_spec.rb +88 -0
- data/spec/rtm/axes/associations_spec.rb +60 -0
- data/spec/rtm/axes/assocs_names_occs_spec.rb +9 -0
- data/spec/rtm/axes/characteristic_spec.rb +90 -0
- data/spec/rtm/axes/characteristics_spec.rb +85 -0
- data/spec/rtm/axes/string_spec.rb +145 -0
- data/spec/rtm/axes/strings_spec.rb +168 -0
- data/spec/rtm/axes/topic_spec.rb +124 -0
- data/spec/rtm/axes/topics_spec.rb +103 -0
- data/spec/rtm/base_spec.rb +32 -0
- data/spec/rtm/io/tmapix_spec.rb +85 -0
- data/spec/rtm/navigation/association/players_spec.rb +58 -0
- data/spec/rtm/navigation/association_spec.rb +52 -0
- data/spec/rtm/navigation/name/atomify_spec.rb +27 -0
- data/spec/rtm/navigation/name/characteristics_spec.rb +34 -0
- data/spec/rtm/navigation/name_spec.rb +52 -0
- data/spec/rtm/navigation/occurrence/atomify_spec.rb +27 -0
- data/spec/rtm/navigation/occurrence/characteristics_spec.rb +34 -0
- data/spec/rtm/navigation/occurrence_spec.rb +52 -0
- data/spec/rtm/navigation/string_spec.rb +51 -0
- data/spec/rtm/navigation/topic/characteristics_spec.rb +55 -0
- data/spec/rtm/navigation/topic/indicators_spec.rb +43 -0
- data/spec/rtm/navigation/topic/items_spec.rb +44 -0
- data/spec/rtm/navigation/topic/locators_spec.rb +44 -0
- data/spec/rtm/navigation/topic/players_spec.rb +48 -0
- data/spec/rtm/navigation/topic/scope_spec.rb +41 -0
- data/spec/rtm/navigation/topic/supertypes_spec.rb +376 -0
- data/spec/rtm/navigation/topic/traverse_spec.rb +64 -0
- data/spec/rtm/navigation/topic/types_spec.rb +195 -0
- data/spec/rtm/navigation/topic_spec.rb +153 -0
- data/spec/rtm/sugar/association/hash_access_spec.rb +55 -0
- data/spec/rtm/sugar/occurrence/dynamic_value_spec.rb +16 -0
- data/spec/rtm/sugar/role/counterparts_spec.rb +191 -0
- data/spec/rtm/sugar/topic/characteristics_spec.rb +318 -0
- data/spec/rtm/sugar/topic/counterparts_spec.rb +184 -0
- data/spec/rtm/sugar/topic/hash_access_spec.rb +234 -0
- data/spec/rtm/sugar/topic/scoped_spec.rb +131 -0
- data/spec/rtm/sugar/topic/topic_ref_spec.rb +44 -0
- data/spec/rtm/sugar/topic/typed_spec.rb +155 -0
- data/spec/rtm/sugar/typed/types_spec.rb +24 -0
- data/spec/rtm/tmapi/core/association_spec.rb +169 -0
- data/spec/rtm/tmapi/core/construct_spec.rb +25 -0
- data/spec/rtm/tmapi/core/name_spec.rb +85 -0
- data/spec/rtm/tmapi/core/occurrence_spec.rb +96 -0
- data/spec/rtm/tmapi/core/reifiable_spec.rb +168 -0
- data/spec/rtm/tmapi/core/role_spec.rb +73 -0
- data/spec/rtm/tmapi/core/scoped_spec.rb +403 -0
- data/spec/rtm/tmapi/core/topic_map_spec.rb +648 -0
- data/spec/rtm/tmapi/core/topic_spec.rb +992 -0
- data/spec/rtm/tmapi/core/typed_spec.rb +112 -0
- data/spec/rtm/tmapi/core/variant_spec.rb +52 -0
- data/spec/rtm/tmapi/ext/java_util_set_spec.rb +34 -0
- data/spec/rtm/tmapi_spec.rb +44 -0
- data/spec/rtm/utils/sparql_spec.rb +26 -0
- data/spec/rtm_spec.rb +94 -0
- data/spec/spec_helper.rb +23 -0
- data/test/base_unit_test.rb +161 -0
- data/test/{base_test.rb → base_unit_test_tmapi.rb} +46 -43
- metadata +122 -66
- data/COPYRIGHT +0 -4
- data/lib/Rakefile.rb +0 -42
- data/lib/activetopicmaps.rb +0 -278
- data/lib/rtm/backend/active_record.rb +0 -58
- data/lib/rtm/backend/active_record/001_initial_schema.rb +0 -116
- data/lib/rtm/backend/active_record/association_and_role.rb +0 -33
- data/lib/rtm/backend/active_record/locators.rb +0 -55
- data/lib/rtm/backend/active_record/name_variant_occurrence.rb +0 -45
- data/lib/rtm/backend/active_record/quaaxtm2rtm.rb +0 -113
- data/lib/rtm/backend/active_record/quaaxtm2rtmviews.rb +0 -134
- data/lib/rtm/backend/active_record/set_wrapper.rb +0 -98
- data/lib/rtm/backend/active_record/tm_construct.rb +0 -62
- data/lib/rtm/backend/active_record/tm_delegator.rb +0 -345
- data/lib/rtm/backend/active_record/tm_set_delegator.rb +0 -195
- data/lib/rtm/backend/active_record/tmdm.rb +0 -298
- data/lib/rtm/backend/active_record/topic.rb +0 -87
- data/lib/rtm/backend/active_record/topic_map.rb +0 -314
- data/lib/rtm/backend/active_record/traverse_associations.rb +0 -87
- data/lib/rtm/base.rb +0 -92
- data/lib/rtm/connect.rb +0 -92
- data/lib/rtm/core_ext.rb +0 -6
- data/lib/rtm/io/from_xtm2.rb +0 -263
- data/lib/rtm/merging/merging.rb +0 -307
- data/lib/rtm/sugar/topic/identifier_direct.rb +0 -11
- data/lib/rtm/sugar/topic/predefined_associations.rb +0 -42
- data/lib/run_main_project.rb +0 -16
@@ -1,10 +1,14 @@
|
|
1
|
+
# Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig.
|
2
|
+
# License: Apache License, Version 2.0
|
1
3
|
#
|
2
|
-
# Some basic tests
|
3
|
-
#
|
4
|
-
|
4
|
+
# Some basic tests for the Active Reckord Backend, applied to a TMAPI backend
|
5
|
+
# Err
|
6
|
+
# first is not supported for Java::GnuTrove::THashSet
|
7
|
+
# tm.reifier not implemented
|
5
8
|
|
6
|
-
|
9
|
+
$: << File.join(File.dirname(__FILE__), "/../lib")
|
7
10
|
|
11
|
+
require 'rubygems'
|
8
12
|
require 'test/unit'
|
9
13
|
require 'rtm'
|
10
14
|
|
@@ -12,11 +16,12 @@ class BaseTest < Test::Unit::TestCase
|
|
12
16
|
# There are a bunch of global assertions in here so it cannot be parallelized
|
13
17
|
# with other tests, that's why it is all in one. What can we do about that?
|
14
18
|
def test_connect
|
15
|
-
|
16
|
-
|
19
|
+
base = RTM.connect
|
20
|
+
assert base, "Connection to memory backend failed"
|
21
|
+
assert_equal 0, base[].size, "There should be no topic maps in a newly created environment."
|
17
22
|
base_locator = "http://rtm.rubyforge.org/tests/base_test"
|
18
|
-
m =
|
19
|
-
assert_equal 1,
|
23
|
+
m = base.create base_locator
|
24
|
+
assert_equal 1, base[].size, "After creation of a topic map, there should be one."
|
20
25
|
assert_kind_of RTM::TopicMap, m, "RTM.create should create something which includes RTM::TopicMap"
|
21
26
|
assert_equal base_locator, m.base_locator, "The base_locator should be initialized properly."
|
22
27
|
assert m.respond_to?(:topics), "The topic map should respond to :topics"
|
@@ -25,90 +30,84 @@ class BaseTest < Test::Unit::TestCase
|
|
25
30
|
assert_equal 0, m.associations.size, "A new topic map should have no associations."
|
26
31
|
assert m.reifier.nil?, "A new topic map should not be reified yet."
|
27
32
|
assert_equal 0, m.item_identifiers.size, "A new topic map should "
|
28
|
-
|
29
33
|
# assigning a reifier
|
30
34
|
m.reifier = "a_topic_which_reifies_the_topic_map"
|
31
35
|
assert_equal 1, m.topics.size, "A topic should have been created to reify the topic map."
|
32
36
|
assert_kind_of RTM::Topic, m.reifier, "A reifier should be a Topic."
|
33
|
-
|
34
37
|
assert_equal m, m.topics.first.reified, "The only topic out there should reify the map (not generally, but here)."
|
35
38
|
assert_equal m.base_locator, m.topics.first.reified.base_locator, "The only topic out there should reify the map. Check base locator."
|
36
39
|
assert_equal m.__getobj__, m.topics.first.reified.__getobj__, "The only topic out there should reify the map. Look inside."
|
37
|
-
|
38
40
|
t = m.create_topic
|
39
41
|
assert_equal 2, m.topics.size, "There should be 2 topics after creating the second one."
|
40
42
|
assert_kind_of RTM::Topic, t, "The created topic should really be one."
|
41
43
|
assert_kind_of RTM::TopicMap, m
|
42
|
-
assert_equal m, t.parent, "The Topic Map should be the parent of our new topic."
|
44
|
+
assert_equal m, t.parent, "The Topic Map should be the parent of our new topic."
|
43
45
|
# The next tests may look a bit unneeded, but they at least also test the properties be available and initialized somehow.
|
44
46
|
assert_equal 0, t.item_identifiers.size, "New topic has no item_identifiers."
|
47
|
+
|
45
48
|
assert_equal 0, t.subject_identifiers.size, "New topic has no subject_identifiers."
|
46
49
|
assert_equal 0, t.subject_locators.size, "New topic has no subject_locators."
|
47
|
-
assert !t.valid?, "Without item identifiers nor subject identifiers the topic must not be valid."
|
50
|
+
assert !t.valid?, "Without item identifiers nor subject identifiers the topic must not be valid."
|
48
51
|
assert_equal 0, t.names.size, "New topic has no names."
|
49
52
|
assert_equal 0, t.occurrences.size, "New topic has no occurrences."
|
50
53
|
assert_equal 0, t.roles_played.size, "New topic plays no roles."
|
51
54
|
assert_nil t.reified, "New topic does not reify a statement."
|
52
|
-
|
53
55
|
n = t.create_name
|
54
56
|
assert_equal 1, t.names.size, "The topic should have one name now."
|
55
|
-
assert_kind_of RTM::
|
57
|
+
assert_kind_of RTM::Name, n
|
56
58
|
assert_kind_of RTM::Topic, n.parent, "You won't believe but this should be a Topic and right now it not..."
|
57
59
|
# TODO the following assertion does not work - it crashes pp... but why?
|
58
|
-
#assert_equal t, n.parent, "The parent of the name should be the topic on which it was created."
|
60
|
+
# assert_equal t, n.parent, "The parent of the name should be the topic on which it was created."
|
59
61
|
assert_equal 0, n.item_identifiers.size, "I wonder if someone will ever read that."
|
60
|
-
assert_kind_of RTM::
|
62
|
+
assert_kind_of RTM::Name, n, "The topic name shoud be a TopicName... makes sence, he?"
|
61
63
|
assert_equal 0, n.variants.size, "According to Lars Heuer and Robert Barta that should always be 0, not only now."
|
62
64
|
assert_nil n.value, "We haven't set a value yet, where should it come from."
|
63
65
|
assert_nil n.type, "I am really tired of writing this stuff."
|
64
66
|
assert_equal 0, n.scope.size, "Should I really be more serious with this stuff?"
|
65
67
|
assert_nil n.reifier, "No, I guess not... who could ever stand that."
|
66
|
-
|
67
68
|
v = n.create_variant
|
68
69
|
assert_equal 1, n.variants.size, "The topic should have one name now."
|
69
70
|
assert_kind_of RTM::Variant, v
|
70
|
-
assert_kind_of RTM::
|
71
|
+
assert_kind_of RTM::Name, v.parent, "You won't believe but this should be a Topic and right now it not..."
|
71
72
|
# TODO the following assertion does not work - it crashes pp... but why?
|
72
|
-
#assert_equal t, v.parent, "The parent of the name should be the topic on which it was created."
|
73
|
+
# assert_equal t, v.parent, "The parent of the name should be the topic on which it was created."
|
73
74
|
assert_equal 0, v.item_identifiers.size, "I wonder if someone will ever read that."
|
74
75
|
assert_kind_of RTM::Variant, v, "The variant should be a Variant... makes sence, he?"
|
75
76
|
assert_nil v.value, "We haven't set a value yet, where should it come from."
|
77
|
+
|
76
78
|
assert_nil v.datatype, "No datatype set, yet."
|
79
|
+
|
77
80
|
assert_equal 0, v.scope.size, "Should I really be more serious with this stuff?"
|
78
81
|
assert_nil v.reifier, "No, I guess not... who could ever stand that."
|
79
82
|
assert !v.valid?
|
80
|
-
|
81
83
|
o = t.create_occurrence
|
82
84
|
assert_equal 1, t.occurrences.size, "The topic should have one name now."
|
83
85
|
assert_kind_of RTM::Occurrence, o
|
84
|
-
assert_kind_of RTM::Topic, o.parent, "You won't believe but this should be a Topic and right now it not..."
|
86
|
+
assert_kind_of RTM::Topic, o.parent, "You won't believe but this should be a Topic and right now it not..."
|
85
87
|
# TODO the following assertion does not work - it crashes pp... but why?
|
86
|
-
#assert_equal t, o.parent, "The parent of the name should be the topic on which it was created."
|
88
|
+
# assert_equal t, o.parent, "The parent of the name should be the topic on which it was created."
|
87
89
|
assert_equal 0, o.item_identifiers.size, "I wonder if someone will ever read that."
|
88
90
|
assert_kind_of RTM::Occurrence, o, "The occurrence shoud be a Occurrence... makes sence, he?"
|
89
|
-
assert_nil o.value, "We haven't set a value yet, where should it come from."
|
91
|
+
assert_nil o.value, "We haven't set a value yet, where should it come from."
|
90
92
|
assert_nil o.type, "I am really tired of writing this stuff."
|
91
93
|
assert_nil o.datatype
|
92
94
|
assert_equal 0, n.scope.size, "Should I really be more serious with this stuff?"
|
93
95
|
assert_nil n.reifier, "No, I guess not... who could ever stand that."
|
94
|
-
|
95
96
|
a = m.create_association
|
96
97
|
assert_nil a.type
|
97
98
|
assert_equal 0, a.roles.size
|
98
99
|
assert_kind_of RTM::Association, a
|
99
|
-
assert_kind_of RTM::TopicMap, a.parent
|
100
|
+
assert_kind_of RTM::TopicMap, a.parent
|
100
101
|
assert_equal m, a.parent
|
101
102
|
assert_equal 0, a.scope.size
|
102
103
|
assert !a.valid?
|
103
|
-
|
104
104
|
r1 = a.create_role
|
105
105
|
assert_nil r1.type
|
106
106
|
assert_nil r1.player
|
107
|
-
|
107
|
+
|
108
|
+
assert_kind_of RTM::Role, r1
|
108
109
|
assert_kind_of RTM::Association, r1.parent
|
109
110
|
assert_equal 1, a.roles.size
|
110
|
-
|
111
|
-
|
112
111
|
t.item_identifiers << "nr1"
|
113
112
|
assert_equal 1, t.item_identifiers.size
|
114
113
|
fii = t.item_identifiers.first
|
@@ -116,30 +115,25 @@ class BaseTest < Test::Unit::TestCase
|
|
116
115
|
assert_kind_of RTM::Locator, fii
|
117
116
|
assert_kind_of RTM::ItemIdentifier, fii #needed?
|
118
117
|
# TODO: invalidate cache/reload value somehow
|
119
|
-
#assert_equal 1, m.item_identifiers.size, "If you see this, it is probably because TopicMap#item_identifiers.size is cached which is wrong in this case."
|
118
|
+
# assert_equal 1, m.item_identifiers.size, "If you see this, it is probably because TopicMap#item_identifiers.size is cached which is wrong in this case."
|
120
119
|
|
121
120
|
t.subject_identifiers << "si1"
|
122
121
|
fsi = t.subject_identifiers.first
|
123
122
|
assert_equal "si1", fsi.to_s
|
124
123
|
assert_kind_of RTM::Locator, fsi
|
125
124
|
assert_kind_of RTM::SubjectIdentifier, fsi #needed?
|
126
|
-
|
125
|
+
|
127
126
|
t.subject_locators << "sl1"
|
128
127
|
fsl = t.subject_locators.first
|
129
128
|
assert_equal "sl1", fsl.to_s
|
130
129
|
assert_kind_of RTM::Locator, fsl
|
131
130
|
assert_kind_of RTM::SubjectLocator, fsl #needed?
|
132
|
-
|
133
|
-
# create roles with topics
|
134
|
-
# some more stuff.
|
135
|
-
|
136
|
-
|
131
|
+
|
137
132
|
# to be in associations_test later:
|
138
|
-
tm =
|
133
|
+
tm = base.create "urn:/associations_test"
|
139
134
|
a1 = tm.create_association "urn:/assoc_type_with_absolute_uri"
|
140
135
|
assert_not_nil a1.type
|
141
136
|
assert_equal a1.type, tm.get("urn:/assoc_type_with_absolute_uri")
|
142
|
-
|
143
137
|
a2 = tm.create_association :type => "urn:/assoc_type_with_absolute_uri_using_hash"
|
144
138
|
assert_not_nil a2.type
|
145
139
|
assert_equal a2.type, tm.get("urn:/assoc_type_with_absolute_uri_using_hash")
|
@@ -148,15 +142,24 @@ class BaseTest < Test::Unit::TestCase
|
|
148
142
|
assert_not_nil a3.type
|
149
143
|
assert_equal a3.type, tm.get("relative_type")
|
150
144
|
|
151
|
-
|
152
145
|
end
|
153
146
|
def test_sugar_hash_access
|
154
|
-
RTM.connect
|
155
|
-
tm =
|
147
|
+
base = RTM.connect
|
148
|
+
tm = base.create "a:b"
|
156
149
|
bla = tm.get!("bla")
|
157
150
|
bla["-name"] = "test"
|
158
151
|
n = bla["-name"].first
|
159
|
-
|
152
|
+
assert_equal "test", n.value
|
153
|
+
end
|
154
|
+
def test_names
|
155
|
+
base = RTM.connect
|
156
|
+
tm = base.create "a:c"
|
157
|
+
|
158
|
+
# Create 2 more names, this time of type "foo".
|
159
|
+
t4 = tm.create_topic
|
160
|
+
n2 = t4.create_name "http://foo.foo/foo", "bar", []
|
161
|
+
n2 = t4.create_name "http://foo.foo/foo", "bar", ["http://baz.baz/baz"]
|
162
|
+
assert_equal 2, t4.names.size, "The topic should have 2 names now."
|
160
163
|
end
|
161
164
|
|
162
165
|
end
|
metadata
CHANGED
@@ -1,39 +1,23 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Bock
|
8
|
+
- Arnim Bleier
|
9
|
+
- Uta Schulze
|
10
|
+
- Daniel Exner
|
8
11
|
autorequire:
|
9
12
|
bindir: bin
|
10
13
|
cert_chain: []
|
11
14
|
|
12
|
-
date:
|
15
|
+
date: 2010-02-05 00:00:00 +01:00
|
13
16
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
version_requirement:
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">="
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 2.1.0
|
24
|
-
version:
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: activesupport
|
27
|
-
type: :runtime
|
28
|
-
version_requirement:
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 2.1.0
|
34
|
-
version:
|
35
|
-
description: Ruby Topic Maps is a Topic Maps engine written in Ruby.
|
36
|
-
email: bb--rtm-gem@bockb.de
|
17
|
+
dependencies: []
|
18
|
+
|
19
|
+
description: Ruby Topic Maps is a Topic Maps engine written in Ruby with several backends.
|
20
|
+
email: "#rtm+rtm-gem-20100205@topicmapslab.de"
|
37
21
|
executables: []
|
38
22
|
|
39
23
|
extensions: []
|
@@ -41,56 +25,130 @@ extensions: []
|
|
41
25
|
extra_rdoc_files: []
|
42
26
|
|
43
27
|
files:
|
44
|
-
- lib/
|
45
|
-
- lib/
|
46
|
-
- lib/rtm/
|
47
|
-
- lib/rtm/
|
48
|
-
- lib/rtm/
|
49
|
-
- lib/rtm/
|
50
|
-
- lib/rtm/
|
51
|
-
- lib/rtm/
|
52
|
-
- lib/rtm/
|
53
|
-
- lib/rtm/
|
54
|
-
- lib/rtm/
|
55
|
-
- lib/rtm/
|
56
|
-
- lib/rtm/backend/active_record/tmdm.rb
|
57
|
-
- lib/rtm/backend/active_record/topic.rb
|
58
|
-
- lib/rtm/backend/active_record/topic_map.rb
|
59
|
-
- lib/rtm/backend/active_record/traverse_associations.rb
|
60
|
-
- lib/rtm/backend/active_record.rb
|
61
|
-
- lib/rtm/backward_compatibility.rb
|
62
|
-
- lib/rtm/base.rb
|
63
|
-
- lib/rtm/connect.rb
|
64
|
-
- lib/rtm/core_ext.rb
|
28
|
+
- lib/rtm/axes/association.rb
|
29
|
+
- lib/rtm/axes/associations.rb
|
30
|
+
- lib/rtm/axes/assocs_names_occs.rb
|
31
|
+
- lib/rtm/axes/characteristic.rb
|
32
|
+
- lib/rtm/axes/characteristics.rb
|
33
|
+
- lib/rtm/axes/string.rb
|
34
|
+
- lib/rtm/axes/strings.rb
|
35
|
+
- lib/rtm/axes/topic.rb
|
36
|
+
- lib/rtm/axes/topics.rb
|
37
|
+
- lib/rtm/axes.rb
|
38
|
+
- lib/rtm/deprecated/index_property_set.rb
|
39
|
+
- lib/rtm/engine.rb
|
65
40
|
- lib/rtm/extensions.rb
|
66
|
-
- lib/rtm/helpers.rb
|
67
|
-
- lib/rtm/
|
41
|
+
- lib/rtm/helpers/locator.rb
|
42
|
+
- lib/rtm/helpers/no_output.rb
|
43
|
+
- lib/rtm/helpers/uri.rb
|
68
44
|
- lib/rtm/io/from_xtm2_libxml.rb
|
45
|
+
- lib/rtm/io/ontopia_io.rb
|
46
|
+
- lib/rtm/io/tmapix.rb
|
47
|
+
- lib/rtm/io/to_hash.rb
|
69
48
|
- lib/rtm/io/to_jtm.rb
|
49
|
+
- lib/rtm/io/to_rdf.rb
|
70
50
|
- lib/rtm/io/to_string.rb
|
71
51
|
- lib/rtm/io/to_xtm1.rb
|
72
52
|
- lib/rtm/io/to_xtm2.rb
|
73
53
|
- lib/rtm/io/to_yaml.rb
|
74
|
-
- lib/rtm/
|
75
|
-
- lib/rtm/
|
76
|
-
- lib/rtm/
|
54
|
+
- lib/rtm/io.rb
|
55
|
+
- lib/rtm/navigation/association/players.rb
|
56
|
+
- lib/rtm/navigation/name/atomify.rb
|
57
|
+
- lib/rtm/navigation/name/characteristics.rb
|
58
|
+
- lib/rtm/navigation/occurrence/atomify.rb
|
59
|
+
- lib/rtm/navigation/occurrence/characteristics.rb
|
60
|
+
- lib/rtm/navigation/topic/characteristics.rb
|
61
|
+
- lib/rtm/navigation/topic/indicators.rb
|
62
|
+
- lib/rtm/navigation/topic/items.rb
|
63
|
+
- lib/rtm/navigation/topic/locators.rb
|
64
|
+
- lib/rtm/navigation/topic/players.rb
|
65
|
+
- lib/rtm/navigation/topic/supertypes.rb
|
66
|
+
- lib/rtm/navigation/topic/traverse.rb
|
67
|
+
- lib/rtm/navigation/topic/types.rb
|
68
|
+
- lib/rtm/navigation.rb
|
77
69
|
- lib/rtm/psi.rb
|
70
|
+
- lib/rtm/sugar/association/hash_access.rb
|
71
|
+
- lib/rtm/sugar/occurrence/dynamic_value.rb
|
72
|
+
- lib/rtm/sugar/occurrence/externalize.rb
|
78
73
|
- lib/rtm/sugar/role/counterparts.rb
|
79
74
|
- lib/rtm/sugar/topic/characteristics.rb
|
80
75
|
- lib/rtm/sugar/topic/counterparts.rb
|
81
76
|
- lib/rtm/sugar/topic/hash_access.rb
|
82
|
-
- lib/rtm/sugar/topic/
|
83
|
-
- lib/rtm/sugar/topic/
|
77
|
+
- lib/rtm/sugar/topic/scoped.rb
|
78
|
+
- lib/rtm/sugar/topic/topic_ref.rb
|
79
|
+
- lib/rtm/sugar/topic/typed.rb
|
80
|
+
- lib/rtm/sugar/typed/types.rb
|
81
|
+
- lib/rtm/sugar.rb
|
84
82
|
- lib/rtm/validation.rb
|
83
|
+
- lib/rtm/version.rb
|
85
84
|
- lib/rtm.rb
|
86
|
-
-
|
87
|
-
-
|
88
|
-
-
|
85
|
+
- spec/helpers/spec_exampleexamplegroup.rb
|
86
|
+
- spec/rtm/axes/association_spec.rb
|
87
|
+
- spec/rtm/axes/associations_spec.rb
|
88
|
+
- spec/rtm/axes/assocs_names_occs_spec.rb
|
89
|
+
- spec/rtm/axes/characteristic_spec.rb
|
90
|
+
- spec/rtm/axes/characteristics_spec.rb
|
91
|
+
- spec/rtm/axes/string_spec.rb
|
92
|
+
- spec/rtm/axes/strings_spec.rb
|
93
|
+
- spec/rtm/axes/topic_spec.rb
|
94
|
+
- spec/rtm/axes/topics_spec.rb
|
95
|
+
- spec/rtm/base_spec.rb
|
96
|
+
- spec/rtm/io/tmapix_spec.rb
|
97
|
+
- spec/rtm/navigation/association/players_spec.rb
|
98
|
+
- spec/rtm/navigation/association_spec.rb
|
99
|
+
- spec/rtm/navigation/name/atomify_spec.rb
|
100
|
+
- spec/rtm/navigation/name/characteristics_spec.rb
|
101
|
+
- spec/rtm/navigation/name_spec.rb
|
102
|
+
- spec/rtm/navigation/occurrence/atomify_spec.rb
|
103
|
+
- spec/rtm/navigation/occurrence/characteristics_spec.rb
|
104
|
+
- spec/rtm/navigation/occurrence_spec.rb
|
105
|
+
- spec/rtm/navigation/string_spec.rb
|
106
|
+
- spec/rtm/navigation/topic/characteristics_spec.rb
|
107
|
+
- spec/rtm/navigation/topic/indicators_spec.rb
|
108
|
+
- spec/rtm/navigation/topic/items_spec.rb
|
109
|
+
- spec/rtm/navigation/topic/locators_spec.rb
|
110
|
+
- spec/rtm/navigation/topic/players_spec.rb
|
111
|
+
- spec/rtm/navigation/topic/scope_spec.rb
|
112
|
+
- spec/rtm/navigation/topic/supertypes_spec.rb
|
113
|
+
- spec/rtm/navigation/topic/traverse_spec.rb
|
114
|
+
- spec/rtm/navigation/topic/types_spec.rb
|
115
|
+
- spec/rtm/navigation/topic_spec.rb
|
116
|
+
- spec/rtm/sugar/association/hash_access_spec.rb
|
117
|
+
- spec/rtm/sugar/occurrence/dynamic_value_spec.rb
|
118
|
+
- spec/rtm/sugar/role/counterparts_spec.rb
|
119
|
+
- spec/rtm/sugar/topic/characteristics_spec.rb
|
120
|
+
- spec/rtm/sugar/topic/counterparts_spec.rb
|
121
|
+
- spec/rtm/sugar/topic/hash_access_spec.rb
|
122
|
+
- spec/rtm/sugar/topic/scoped_spec.rb
|
123
|
+
- spec/rtm/sugar/topic/topic_ref_spec.rb
|
124
|
+
- spec/rtm/sugar/topic/typed_spec.rb
|
125
|
+
- spec/rtm/sugar/typed/types_spec.rb
|
126
|
+
- spec/rtm/tmapi/core/association_spec.rb
|
127
|
+
- spec/rtm/tmapi/core/construct_spec.rb
|
128
|
+
- spec/rtm/tmapi/core/name_spec.rb
|
129
|
+
- spec/rtm/tmapi/core/occurrence_spec.rb
|
130
|
+
- spec/rtm/tmapi/core/reifiable_spec.rb
|
131
|
+
- spec/rtm/tmapi/core/role_spec.rb
|
132
|
+
- spec/rtm/tmapi/core/scoped_spec.rb
|
133
|
+
- spec/rtm/tmapi/core/topic_map_spec.rb
|
134
|
+
- spec/rtm/tmapi/core/topic_spec.rb
|
135
|
+
- spec/rtm/tmapi/core/typed_spec.rb
|
136
|
+
- spec/rtm/tmapi/core/variant_spec.rb
|
137
|
+
- spec/rtm/tmapi/ext/java_util_set_spec.rb
|
138
|
+
- spec/rtm/tmapi_spec.rb
|
139
|
+
- spec/rtm/utils/sparql_spec.rb
|
140
|
+
- spec/rtm_spec.rb
|
141
|
+
- spec/spec_helper.rb
|
142
|
+
- test/base_unit_test.rb
|
143
|
+
- test/base_unit_test_tmapi.rb
|
144
|
+
- LICENSE
|
89
145
|
- DISCLAIMER
|
90
146
|
- README
|
91
|
-
has_rdoc:
|
92
|
-
homepage: http://rtm.
|
93
|
-
|
147
|
+
has_rdoc: true
|
148
|
+
homepage: http://rtm.topicmapslab.de/
|
149
|
+
licenses: []
|
150
|
+
|
151
|
+
post_install_message: "You have successfully installed RTM. Please be aware you need to install a backend implementation to use it. Examples: rtm-ontopia, rtm-tinytim, rtm-activerecord"
|
94
152
|
rdoc_options: []
|
95
153
|
|
96
154
|
require_paths:
|
@@ -107,14 +165,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
165
|
- !ruby/object:Gem::Version
|
108
166
|
version: "0"
|
109
167
|
version:
|
110
|
-
requirements:
|
111
|
-
|
112
|
-
- sqlite3-ruby >= 1.2.2
|
113
|
-
- libxml-ruby >= 0.6.0
|
168
|
+
requirements: []
|
169
|
+
|
114
170
|
rubyforge_project: rtm
|
115
|
-
rubygems_version: 1.3.
|
171
|
+
rubygems_version: 1.3.5
|
116
172
|
signing_key:
|
117
|
-
specification_version:
|
118
|
-
summary: Ruby Topic Maps is a Topic Maps engine written in Ruby
|
173
|
+
specification_version: 3
|
174
|
+
summary: Ruby Topic Maps is a Topic Maps engine written in Ruby
|
119
175
|
test_files: []
|
120
176
|
|
data/COPYRIGHT
DELETED
data/lib/Rakefile.rb
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Rakefile.rb
|
3
|
-
#
|
4
|
-
# Created on 02.10.2007, 11:40:17
|
5
|
-
#
|
6
|
-
# To change this template, choose Tools | Templates
|
7
|
-
# and open the template in the editor.
|
8
|
-
|
9
|
-
|
10
|
-
require 'rake'
|
11
|
-
require 'rake/clean'
|
12
|
-
require 'rake/testtask'
|
13
|
-
require 'rake/rdoctask'
|
14
|
-
|
15
|
-
|
16
|
-
task :default => [:test]
|
17
|
-
|
18
|
-
Rake::RDocTask.new do |t|
|
19
|
-
t.rdoc_files.include("lib/**/*.rb")
|
20
|
-
end
|
21
|
-
|
22
|
-
desc "Run all tests"
|
23
|
-
task :test => :test_units
|
24
|
-
|
25
|
-
desc "Run unit tests"
|
26
|
-
Rake::TestTask.new("test_units") do |t|
|
27
|
-
t.pattern = '../test/*_test.rb'
|
28
|
-
t.verbose = true
|
29
|
-
t.warning = true
|
30
|
-
end
|
31
|
-
|
32
|
-
desc "List all lines with TODO, FIXME or XXX in ruby source files"
|
33
|
-
task :todo do
|
34
|
-
FileList.new("**/*.rb").each do |source|
|
35
|
-
File.open(source) do |f|
|
36
|
-
f.each_line do |line|
|
37
|
-
puts "#{source}, #{f.lineno}: #{line.strip}" if line =~ /(FIXME|TODO|XXX)/
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|