f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehaseclass OntologySerializer < ApplicationSerializer
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase class Reference < ApplicationSerializer
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase attributes :iri
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase attributes :name
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase def iri
d327eb79653cf7820fe583473ab35816d44cd757Eugen Kuksa url_for(object)
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase end
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase end
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase attributes :iri, :evaluation_state
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase attributes :name, :acronym, :description, :documentation
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase attributes :basepath, :file_extension
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase has_one :logic, serializer: LogicSerializer::Reference
fd06b6c734f708f4e7492e15d16e4a51840568a3Tim Reddehase has_one :repository, serializer: RepositorySerializer::Reference
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase has_one :parent, serializer: OntologySerializer::Reference
fd06b6c734f708f4e7492e15d16e4a51840568a3Tim Reddehase has_one :current_ontology_version,
fd06b6c734f708f4e7492e15d16e4a51840568a3Tim Reddehase serializer: OntologyVersionSerializer::Reference
fd06b6c734f708f4e7492e15d16e4a51840568a3Tim Reddehase has_many :license_models, each_serializer: LicenseModelSerializer::Reference
fd06b6c734f708f4e7492e15d16e4a51840568a3Tim Reddehase has_one :formality_level,
fd06b6c734f708f4e7492e15d16e4a51840568a3Tim Reddehase serializer: FormalityLevelSerializer::Reference
25f9a993aff8e151368f84017c2054b7cf6c68e2Tim Reddehase has_one :ontology_type,
25f9a993aff8e151368f84017c2054b7cf6c68e2Tim Reddehase serializer: OntologyTypeSerializer::Reference
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase attributes :ontology_versions, :symbols, :sentences, :mappings
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase def iri
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase Reference.new(object).iri
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase end
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase def evaluation_state
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase object.state
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase end
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase def current_ontology_version
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase object.current_version
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase end
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase def ontology_versions
d327eb79653cf7820fe583473ab35816d44cd757Eugen Kuksa url_for([object, :ontology_versions])
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase end
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase def symbols
d327eb79653cf7820fe583473ab35816d44cd757Eugen Kuksa url_for([object, :symbols])
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase end
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase def sentences
d327eb79653cf7820fe583473ab35816d44cd757Eugen Kuksa url_for([object, :sentences])
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase end
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase def mappings
d327eb79653cf7820fe583473ab35816d44cd757Eugen Kuksa url_for([object, :mappings])
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehase end
f5ce2d234d8a23051090e64223ae4364662ae502Tim Reddehaseend