1. First part
Please create a data model like below that the university has faculties.
point
Use neo4jrb (activenode) (built with Rails)
Let's implement using has_many etc. without using activerel
Please create university node and undergraduate node from [login to view URL] file
Take the form that the university has an undergraduate and extend the relation [has]
Let's label the university as "university", undergraduate as "undergraduate"
Let's create a university model and an undergraduate model
If you have the same undergraduate, please do not create new undergraduate nodes, please establish relations to existing faculties
Execution of processing can be done by creating a ruby standalone file and executing it, or write it to a method of a controller somewhere.
Attachment picture is an example implementation with neo4j
red is University
Green is undergraduate
And Attachment Json file includes undergraduates.
2. Second part
Creating data model
Please make the player data of all the baseball teams from the site below and create the data in the Neo 4 j database
[login to view URL]
point
Let's use nokogiri
Let's implement using has_many etc. without using activerel
Let's connect it to the same age and height
Let's make each model first, such as height model, blood type model
Let's name a relation name such as "body_height" if height
The place to write the process is the same as the above issue and it's OK anywhere.
About the implementation environment
We used vagrant's centos 6.8
In a virtual environment
ruby - v ruby 2.5.1 p57 (2018 - 03 - 29 revision 63029) [x86 _ 64 - linux]
rails -v Rails 5.2.0