ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehaseclass MappingSerializer < ApplicationSerializer
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase class Reference < ApplicationSerializer
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase attributes :iri
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase attributes :name
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase def iri
d327eb79653cf7820fe583473ab35816d44cd757Eugen Kuksa url_for(object)
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase end
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase end
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase attributes :iri
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase attributes :name, :kind, :theorem, :proven, :local
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase has_one :ontology, serializer: OntologySerializer::Reference
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase has_one :source_ontology, serializer: OntologySerializer::Reference
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase has_one :target_ontology, serializer: OntologySerializer::Reference
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase def iri
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase Reference.new(object).iri
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase end
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase def source_ontology
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase object.source
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase end
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase def target_ontology
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase object.target
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehase end
ccbad7548e27ece3cbc085fc7367635cc06c5e56Tim Reddehaseend