{"id":22768392,"url":"https://github.com/neo4j-graph-examples/pole","last_synced_at":"2025-04-15T01:51:16.963Z","repository":{"id":41847693,"uuid":"244410560","full_name":"neo4j-graph-examples/pole","owner":"neo4j-graph-examples","description":"Crime Investigation - Explore connections in crime data using the POLE - Person, Object, Location, Event - model in a public dataset from Manchester, U.K.","archived":false,"fork":false,"pushed_at":"2024-10-08T08:25:46.000Z","size":26902,"stargazers_count":29,"open_issues_count":26,"forks_count":13,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T13:44:53.756Z","etag":null,"topics":["crime-data","crime-investigation","dataset","example-data","graphdb","neo4j","pole"],"latest_commit_sha":null,"homepage":"https://sandbox.neo4j.com?usecase=pole","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":"2020-03-02T15:50:19.000Z","updated_at":"2025-03-17T10:15:31.000Z","dependencies_parsed_at":"2024-12-11T14:21:27.118Z","dependency_job_id":null,"html_url":"https://github.com/neo4j-graph-examples/pole","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%2Fpole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo4j-graph-examples%2Fpole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo4j-graph-examples%2Fpole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo4j-graph-examples%2Fpole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neo4j-graph-examples","download_url":"https://codeload.github.com/neo4j-graph-examples/pole/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":["crime-data","crime-investigation","dataset","example-data","graphdb","neo4j","pole"],"created_at":"2024-12-11T14:11:24.341Z","updated_at":"2025-04-15T01:51:16.946Z","avatar_url":"https://github.com/neo4j-graph-examples.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":":name: pole\r\n:long-name: Crime Investigation\r\n:description: Explore connections in crime data using the POLE - Person, Object, Location, Event - model in a public dataset from Manchester, U.K.\r\n:icon: documentation/img/pole-icon.png\r\n:tags: example-data,dataset,crime-data,pole,crime-investigation,crime-detection\r\n:author: Joe Depeau\r\n:demodb: false\r\n:data: false\r\n:use-load-script: false\r\n:use-dump-file: data/pole-40.dump\r\n:zip-file: data/pole.zip\r\n:use-plugin: graph-algorithms\r\n:target-db-version: 3.5,4.0\r\n:bloom-perspective: bloom/pole.bloom-perspective\r\n:guide: documentation/pole.neo4j-browser-guide\r\n:rendered-guide: https://guides.neo4j.com/sandbox/{name}/index.html\r\n:model: documentation/img/model.jpeg\r\n:example: documentation/img/example.png\r\n:nodes: 61521\r\n:relationships: 105840\r\n\r\n:todo: false\r\nimage::{icon}[width=100]\r\n\r\n== {long-name} Graph Example ({name})\r\n\r\nDescription: _{description}_\r\n\r\nifeval::[{todo} != false]\r\nTo Do: {todo}\r\nendif::[]\r\n\r\nNodes {nodes} Relationships {relationships}\r\n\r\n.Model\r\nimage::{model}[]\r\n\r\n.Example\r\nimage::{example}[width=600]\r\n\r\n.Example Query:\r\n[source,cypher,role=query-example,param-name=address,param-value=Piccadilly,result-column=crimeDate,expected-result=31/08/2017]\r\n----\r\nMATCH (l:Location {address:$address})\u003c-[r:OCCURRED_AT]-(c:Crime)\r\nRETURN c.date as crimeDate\r\n----\r\n\r\n=== Setup\r\n\r\nThis is for Neo4j version: {target-db-version}\r\n\r\nifeval::[{use-plugin} != false]\r\nRequired plugins: {use-plugin}\r\nendif::[]\r\n\r\nifeval::[{demodb} != false]\r\nThe database is also available on https://demo.neo4jlabs.com:7473\r\n\r\nUsername \"{name}\", password: \"{name}\", database: \"{name}\"\r\nendif::[]\r\n\r\nRendered guide available via: `:play {rendered-guide}`\r\n\r\nUnrendered guide: link:{guide}[]\r\n\r\nLoad graph data via the following:\r\n\r\nifeval::[{data} != false]\r\n==== Data files: `{data}`\r\n\r\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].\r\nendif::[]\r\n\r\nifeval::[{use-dump-file} != false]\r\n==== Dump file: `{use-dump-file}`\r\n\r\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.\r\n\r\n* Use the neo4j-admin tool to load data from the command line with the command below.\r\n\r\n[source,shell,subs=attributes]\r\n----\r\nbin/neo4j-admin load --from {use-dump-file} [--database \"database\"]\r\n----\r\n\r\n* Upload the dump file to Neo4j Aura via https://console.neo4j.io/#import-instructions\r\nendif::[]\r\n\r\nifeval::[{use-load-script} != false]\r\n==== Data load script: `{use-load-script}`\r\n\r\n[source,shell,subs=attributes]\r\n----\r\nbin/cypher-shell -u neo4j -p \"password\" -f {use-load-script} [-d \"database\"]\r\n----\r\n\r\nOr import in Neo4j Browser by dragging or pasting the content of {use-load-script}.\r\nendif::[]\r\n\r\nifeval::[{zip-file} != false]\r\n==== Zip file\r\n\r\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^].\r\nendif::[]\r\n\r\n=== Code Examples\r\n\r\n* link:code/javascript/example.js[JavaScript]\r\n* link:code/java/Example.java[Java]\r\n* link:code/csharp/Example.cs[C#]\r\n* link:code/python/example.py[Python]\r\n* link:code/go/example.go[Go]\r\n\r\n=== Feedback\r\n\r\nFeel free to submit issues or pull requests for improvement on this repository.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneo4j-graph-examples%2Fpole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneo4j-graph-examples%2Fpole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneo4j-graph-examples%2Fpole/lists"}