Cross Reference:
xref
: /
ontohub
/
app
/
models
/
entity_mapping.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
entity_mapping.rb revision 21906b8ad15d580e07b5e76ca7c159320240e609
5f5870385cff47efd2f58e7892f251cf13761528
Timo Sirainen
class
EntityMapping
<
ActiveRecord
::
Base
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0
Timo Sirainen
belongs_to
:
source
,
class_name
:
"Entity"
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0
Timo Sirainen
belongs_to
:
target
,
class_name
:
"Entity"
1ac19c5c2b66a12f5598792aad15114ee3eb62e2
Timo Sirainen
belongs_to
:
link
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0
Timo Sirainen
attr_accessible
:
link
, :
source
, :
target
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0
Timo Sirainen
KINDS
= %w
(
subsumes
is
-
subsumed
equivalent
incompatible
has
-
instance
instance
-
of
default
-
relation
)
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0
Timo Sirainen
0371406d952fe51367c7be91703e5634b7d9d225
Timo Sirainen
def
to_s
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0
Timo Sirainen
"#{
self.source
} -> #{
self.target
}"
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0
Timo Sirainen
end
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0
Timo Sirainen
end
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0
Timo Sirainen