Cross Reference: ontology_bean_list_factory.rb
xref
: /
ontohub
/
lib
/
ontology_bean_list_factory.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
ontology_bean_list_factory.rb revision 0c618b936cf24fa5234125a84a55ffbfb09f109b
require
'json'
class
OntologyBeanListFactory
def
initialize
()
@
beanList
= []
end
def
addSmallBean
(
ontology
)
bean
=
makeSmallBean
(
ontology
)
@
beanList.push
(
bean
)
end
def
makeSmallBean
(
ontology
)
return
{
name
:
ontology.name
,
acronym
:
ontology.acronym
,
language
:
ontology.language.name
,
logic
:
ontology.current_version.logic.name
,
iri
:
ontology.iri
,
url
:
ontology.iri
,
acronym
:
ontology.acronym
,
description
:
ontology.description
,
}
end
def
getBeanList
()
return
@
beanList
end
end