GDB in SV 4th_Meetup_12212016

Post on 22-Jan-2017

16 views 0 download

Transcript of GDB in SV 4th_Meetup_12212016

(4th_meetup)-[:IS_ABOUT]->(visualization_tools)

Agenda

1. Graph Visualization Tools

2. A tip of Importing Dataset

3. Map Layers

4. Node Layouts

5. Query Patterns

6. Icons

7. Publishing subgraphs

8. Editing Data (property, edge)

9. Geospatial distance formula

Graph Visualization Tools

Graph Visualization Use Cases

1. Information Technology

- Network topology

- Risk Assessment

2. Intelligence & Government

3. Finance and Insurance

- Fraud detection

4. Social Media analysis

5. Bioscience / Pharmaceuticals

- Knowledge discovery

Graph Data Visualization

A tip of Data Importing (Windows Local File)

1. Start Neo4j

2. Create a new project folder

3. Open the http://localhost:7474/browser/

4. Create the ‘import’ folder under the new project folder Documents\Neo4j\New_Folder\import

5. Copy the CSV file at the ‘import’ folder

6. Import dataset using LOAD CSVLOAD CSV with Headers from "file:///city.csv" AS cityCREATE (ct:city {name: city.city, state: city.state, city_state: city.city_state, lat: city.lat, lng: city.lng, population: city.pop});

Spherical distance using the haversin function

CREATE (a:City { lat: 52.5, lon: 13.4 }),(b:City { lat: 37.5, lon: -122.3 })

RETURN 2 * 6371 * asin(sqrt(haversin(radians(b.lat - a.lat))+ cos(radians(b.lat))* cos(radians(a.lat))* haversin(radians(b.lon - a.lon)))) AS dist

Thank you!