Cross Reference: ontology_serializer.rb
xref
: /
ontohub
/
app
/
serializers
/
ontology_serializer.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
ontology_serializer.rb revision f5ce2d234d8a23051090e64223ae4364662ae502
class
OntologySerializer
<
ApplicationSerializer
class
Reference
<
ApplicationSerializer
attributes
:
iri
attributes
:
name
def
iri
qualified_locid_for
(
object
)
end
end
attributes
:
iri
, :
evaluation_state
attributes
:
name
, :
acronym
, :
description
, :
documentation
attributes
:
basepath
, :
file_extension
has_one
:
logic
,
serializer
:
LogicSerializer
::
Reference
has_one
:
parent
,
serializer
:
OntologySerializer
::
Reference
attributes
:
ontology_versions
, :
symbols
, :
sentences
, :
mappings
def
iri
Reference.new
(
object
)
.
iri
end
def
evaluation_state
object.state
end
def
current_ontology_version
object.current
_version
end
def
ontology_versions
qualified_locid_for
(
object
, :
ontology_versions
)
end
def
symbols
qualified_locid_for
(
object
, :
symbols
)
end
def
sentences
qualified_locid_for
(
object
, :
sentences
)
end
def
mappings
qualified_locid_for
(
object
, :
mappings
)
end
end