whatSocks / stackoverflow

Stack Overflow Questions, Answers, Tags, and Comments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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}

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: 4.0,4.3

Required plugins: apoc,graph-algorithms

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

Load graph data via the following:

Dump file: data/stackoverflow-4-3-1.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-4-3-1.dump [--database "database"]

Code Examples

Feedback

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

About

Stack Overflow Questions, Answers, Tags, and Comments


Languages

Language:Go 37.2%Language:Shell 23.2%Language:JavaScript 14.4%Language:Java 10.4%Language:C# 9.3%Language:Python 5.4%