Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harshpatel44/marine-animals-vizualization
This is a project in which we scrapped marine animals data from a website and then vizualized using neo4j database and created relationships to understand it better.
https://github.com/harshpatel44/marine-animals-vizualization
animals database marine-biology neo4j neo4j-database python scraping vizualisation
Last synced: 14 days ago
JSON representation
This is a project in which we scrapped marine animals data from a website and then vizualized using neo4j database and created relationships to understand it better.
- Host: GitHub
- URL: https://github.com/harshpatel44/marine-animals-vizualization
- Owner: Harshpatel44
- Created: 2020-05-07T21:36:20.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-07T21:59:57.000Z (almost 5 years ago)
- Last Synced: 2024-11-24T15:14:23.303Z (2 months ago)
- Topics: animals, database, marine-biology, neo4j, neo4j-database, python, scraping, vizualisation
- Language: Python
- Homepage:
- Size: 245 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Marine-animals-vizualization
This is a project in which we scrapped marine animals data from a website and then vizualized using neo4j database and created relationships to understand it better.
Neo4j commands to manipulate data and create relationships
1. Remove duplicates
MATCH (n:feed_habits) WITH n.Feeding_Habits AS habit, collect(n) AS DUPLICATES
WHERE size(duplicates) > 1 FOREACH (n in tail(duplicates) | DELETE n)
2. Connect all the marine animals using "habitat" ecosystem edge
MATCH (n:Marine),(m:Marine)
WHERE NOT m=n and n.Habitat=m.Habitat CREATE (m)-[r:neighbor]->(n) RETURN r
3. Connect all marine animals to feeding habits with an edge
MATCH (m:Marine),(f:feed_habits)
WHERE m.feed_habits=f.feed_habits CREATE (m)-[r:Identical_Feeding_Habits_]->(f) RETURN r![]()
4. Show the animals which are endangered
There are 2 commands that does this thing.
1.
MATCH (n)
WHERE n.ConservationStatus contains 'Endangered' RETURN n
2.
MATCH (m:Marine),(n:feed_habits) WHERE m.ConservationStatus contains 'Endangered' and m.Feeding_Habits = n.Feeding_Habits RETURN m,n![]()