Skip to content

Latest commit

 

History

History
157 lines (116 loc) · 5.29 KB

README.adoc

File metadata and controls

157 lines (116 loc) · 5.29 KB
icon

Stack Overflow Questions, Answers, Tags, and Comments Graph Example

Description: Stack Overflow questions, answers, tags, and comments and the relationships between them.

To Do: {todo}

Nodes 6193 Relationships 11540

model
Figure 1. Model
example
Figure 2. Example
Example Query:
:param tagName => "neo4j"
MATCH (t:Tag {name:$tagName})<-[:TAGGED]-(q:Question)<-[:ANSWERED]-(a:Answer {is_accepted:true})<-[:PROVIDED]-(u:User)
RETURN u.display_name as answerer LIMIT 5

Setup

This is for Neo4j version: 5.0

Required plugins: apoc

Rendered guide available via: :play https://guides.neo4j.com/sandbox/stackoverflow

Load graph data via the following:

Dump file: data/stackoverflow-50.dump

  • Drop the file into the Files section of a project in Neo4j Desktop. Then choose the option to Create new DBMS from dump option from the file options.

  • Use the neo4j-admin tool to load data from the command line with the command below.

bin/neo4j-admin load --from data/stackoverflow-50.dump [--database "database"]

Code Examples

Troubleshooting

Error: "This database is currently offline"

This is most likely due to the version mismatch between Neo4J database and dump version. The number in the dump file name corresponds to the major and minor version of the matching database version. For example: network-management-50.dump works for 5.0 database. Please recreate database with the matching dump file version

Error: "Unsupported clauses were used: …​"

Looks like the correct database has not been selected. If Neo4j desktop app is used, please make sure that the DB name displayed as

Error loading documentation/img/correct-db.png

Feedback

Feel free to submit issues or pull requests for improvement on this repository.