{"id":22768421,"url":"https://github.com/neo4j-graph-examples/stackoverflow","last_synced_at":"2025-04-15T01:51:21.568Z","repository":{"id":37784766,"uuid":"409589763","full_name":"neo4j-graph-examples/stackoverflow","owner":"neo4j-graph-examples","description":"Stack Overflow Questions, Answers, Tags, and Comments ","archived":false,"fork":false,"pushed_at":"2024-10-08T08:27:06.000Z","size":14480,"stargazers_count":18,"open_issues_count":24,"forks_count":7,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-28T13:44:54.644Z","etag":null,"topics":["neo4j-approved","neo4j-auradb-approved","neo4j-auradb-dev-approved","stackoverflow"],"latest_commit_sha":null,"homepage":"https://sandbox.neo4j.com/?usecase=stackoverflow","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neo4j-graph-examples.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-23T12:49:34.000Z","updated_at":"2025-02-16T00:35:56.000Z","dependencies_parsed_at":"2023-02-09T15:30:42.046Z","dependency_job_id":"2c55cda0-e583-4c1a-a676-b3dcf137fb67","html_url":"https://github.com/neo4j-graph-examples/stackoverflow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo4j-graph-examples%2Fstackoverflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo4j-graph-examples%2Fstackoverflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo4j-graph-examples%2Fstackoverflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo4j-graph-examples%2Fstackoverflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neo4j-graph-examples","download_url":"https://codeload.github.com/neo4j-graph-examples/stackoverflow/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248991539,"owners_count":21194894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["neo4j-approved","neo4j-auradb-approved","neo4j-auradb-dev-approved","stackoverflow"],"created_at":"2024-12-11T14:11:29.939Z","updated_at":"2025-04-15T01:51:21.548Z","avatar_url":"https://github.com/neo4j-graph-examples.png","language":"Go","readme":"//Stack Overflow \n:name: stackoverflow\n//graph example description\n:long-name: Stack Overflow Questions, Answers, Tags, and Comments \n:description: Stack Overflow questions, answers, tags, and comments and the relationships between them.\n//icon representing graph example\n:icon: documentation/img/icon.svg\n//associated search tags, separate multiple tags with comma\n:tags: stackoverflow-example-data, stackoverflow-dataset, stackoverflow-template-data, stackoverflow-example, stackoverflow-template, stackoverflow-model\n//graph example author\n:author: Neo4j Devrel\n//true if this example is available on the demodb. Set to false if not used\n:demodb: false\n//data flat files (csv, json, etc). Set to false if not used\n:data: false\n//use a script to generate/process data? Set to either path for script, or false if not used\n:use-load-script: false\n//use a graph dump file for initial data set? Set to either path for dump file, or false if not used\n:use-dump-file: data/stackoverflow-4-3-1.dump\n//if a zip file exists for the data, specify here. Set to false if not used\n:zip-file: false\n//use a plugin for the database, separate multiple plugins with comma. 'public' plugins are apoc, graph-algorithms. \n//other algorithms are specified by path, e.g. apoc,graph-algorithms; Set to false if not used\n:use-plugin: apoc\n//target version of the database this example should run on\n:target-db-version: 4.0,4.3\n//specify a Bloom perspective, or false if not used\n:bloom-perspective: false\n//guide for the graph example. Should be friendly enough to be converted into various document formats\n:guide: documentation/stackoverflow.neo4j-browser-guide\n//temporary for rendered guides\n:rendered-guide: https://guides.neo4j.com/sandbox/{name}\n//guide for modeling decisions. Should be friendly enough to be converted into various document formats\n:model: documentation/img/model.svg\n:example: documentation/img/example.png\n:nodes: 6193\n:relationships: 11540\n\nimage::{icon}[width=100]\n\n== {long-name} Graph Example\n\nDescription: _{description}_\n\nifeval::[{todo} != false]\nTo Do: {todo}\nendif::[]\n\nNodes {nodes} Relationships {relationships}\n\n.Model\nimage::{model}[]\n\n.Example\nimage::{example}[width=600]\n\n.Example Query:\n\n:param-name: tagName\n:param-value: neo4j\n\n[source,cypher,role=query-example-params,subs=+attributes]\n----\n:param {param-name} =\u003e \"{param-value}\"\n----\n\n[source,cypher,role=query-example,param-name={param-name},param-value={param-value},result-column=answerer,expected-result=\"A value\"]\n----\nMATCH (t:Tag {name:$tagName})\u003c-[:TAGGED]-(q:Question)\u003c-[:ANSWERED]-(a:Answer {is_accepted:true})\u003c-[:PROVIDED]-(u:User)\nRETURN u.display_name as answerer LIMIT 5\n----\n\n=== Setup\n\nThis is for Neo4j version: {target-db-version}\n\nifeval::[{use-plugin} != false]\nRequired plugins: {use-plugin}\nendif::[]\n\nifeval::[{demodb} != false]\nThe database is also available on https://demo.neo4jlabs.com:7473\n\nUsername \"{name}\", password: \"{name}\", database: \"{name}\"\nendif::[]\n\nRendered guide available via: `:play {rendered-guide}`\n\nUnrendered guide: link:{guide}[]\n\nLoad graph data via the following:\n\nifeval::[{data} != false]\n==== Data files: `{data}`\n\nImport flat files (csv, json, etc) using Cypher's https://neo4j.com/docs/cypher-manual/current/clauses/load-csv/[`LOAD CSV`], https://neo4j.com/labs/apoc/[APOC library], or https://neo4j.com/developer/data-import/[other methods].\nendif::[]\n\nifeval::[{use-dump-file} != false]\n==== Dump file: `{use-dump-file}`\n\n* 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.\n\n* Use the neo4j-admin tool to load data from the command line with the command below.\n\n[source,shell,subs=attributes]\n----\nbin/neo4j-admin load --from {use-dump-file} [--database \"database\"]\n----\n\n* Upload the dump file to Neo4j Aura via https://console.neo4j.io/#import-instructions\nendif::[]\n\nifeval::[{use-load-script} != false]\n==== Data load script: `{use-load-script}`\n\n[source,shell,subs=attributes]\n----\nbin/cypher-shell -u neo4j -p \"password\" -f {use-load-script} [-d \"database\"]\n----\n\nOr import in Neo4j Browser by dragging or pasting the content of {use-load-script}.\nendif::[]\n\nifeval::[{zip-file} != false]\n==== Zip file\n\nDownload the zip file link:{repo}/raw/master/{name}.zip[{name}.zip] and add it as \"project from file\" to https://neo4j.com/developer/neo4j-desktop[Neo4j Desktop^].\nendif::[]\n\n=== Code Examples\n\n* link:code/javascript/example.js[JavaScript]\n* link:code/java/Example.java[Java]\n* link:code/csharp/Example.cs[C#]\n* link:code/python/example.py[Python]\n* link:code/go/example.go[Go]\n\n=== Feedback\n\nFeel free to submit issues or pull requests for improvement on this repository.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneo4j-graph-examples%2Fstackoverflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneo4j-graph-examples%2Fstackoverflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneo4j-graph-examples%2Fstackoverflow/lists"}