Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mneedham/neo4j-subtypes
https://github.com/mneedham/neo4j-subtypes
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mneedham/neo4j-subtypes
- Owner: mneedham
- Created: 2014-10-07T16:38:46.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-08T09:33:52.000Z (about 10 years ago)
- Last Synced: 2024-04-14T09:10:05.756Z (9 months ago)
- Language: Ruby
- Size: 65.3 MB
- Stars: 0
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
= Modelling Sub Types with Neo4j
A commonly asked question is how to model sub types in a graph so this project shall aim to answer that question!
== The Data
Our data set is a link:http://portal.louisvilleky.gov/dataset/animaltag-data?page=20[list of animals processed by Animal Services] in Louiseville, Kentucky.
=== Importing into Neo4j
First we need to unpack the animal data set:
[source, bash]
----
tar -xzf data/Animal_Tag_DATA.tgz -C data
----which should leave us with a CSV file in the data directory:
[source, bash]
----
ls -alh data/total 507696
drwxr-xr-x 4 markneedham staff 136B 7 Oct 18:00 .
drwxr-xr-x 10 markneedham staff 340B 7 Oct 18:00 ..
-rw-r-----@ 1 markneedham staff 215M 2 Oct 17:06 Animal_Tag_DATA.csv
-rw-r--r-- 1 markneedham staff 33M 7 Oct 17:41 Animal_Tag_DATA.tgz
----== Interesting links
* Pull in more data on different breeds - http://www.thekennelclub.org.uk/activities/dog-showing/breed-standards/
* Hierarchies / Sub Types - http://www.cs.utexas.edu/~cannata/dbms/Class%20Notes/02%20Categories%20in%20RDBMs.pdf