Cross Reference: mapping_serializer.rb
xref
: /
ontohub
/
app
/
serializers
/
mapping_serializer.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
mapping_serializer.rb revision ccbad7548e27ece3cbc085fc7367635cc06c5e56
class
MappingSerializer
<
ApplicationSerializer
class
Reference
<
ApplicationSerializer
attributes
:
iri
attributes
:
name
def
iri
qualified_locid_for
(
object
)
end
end
attributes
:
iri
attributes
:
name
, :
kind
, :
theorem
, :
proven
, :
local
has_one
:
ontology
,
serializer
:
OntologySerializer
::
Reference
has_one
:
source_ontology
,
serializer
:
OntologySerializer
::
Reference
has_one
:
target_ontology
,
serializer
:
OntologySerializer
::
Reference
def
iri
Reference.new
(
object
)
.
iri
end
def
source_ontology
object.source
end
def
target_ontology
object.target
end
end