neo4j-graph-examples / icij-paradise-papers

The Paradise Papers dataset and guide from the International Consortium of Investigative Journalists (ICIJ)
https://sandbox.neo4j.com/?usecase=icij-paradise-papers
10 stars 3 forks source link
data-leaks dataset example-data fraud-data graphdb icij neo4j neo4j-approved paradise-papers

:name: icij-paradise-papers :long-name: Paradise Papers by ICIJ :description: The Paradise Papers dataset and guide from the International Consortium of Investigative Journalists (ICIJ) :icon: documentation/img/icij-logo.png :tags: example-data,dataset,fraud-data,data-leaks,paradise-papers, icij :author: William Lyon :demodb: false :data: false :use-load-script: false :use-dump-file: data/icij-paradise-papers-40.dump :zip-file: false :use-plugin: false :target-db-version: 3.5,4.0 :bloom-perspective: bloom/icij-paradise-papers.bloom-perspective :guide: documentation/icij-paradise-papers.neo4j-browser-guide :rendered-guide: https://guides.neo4j.com/sandbox/icij-paradise-papers/index.html :model: documentation/img/datamodel.png :example: documentation/img/example.png :nodes: 163414 :relationships: 364456

:todo: false image::{icon}[width=100]

== {long-name} Graph Example

Description: {description}

ifeval::[{todo} != false] To Do: {todo} endif::[]

Nodes {nodes} Relationships {relationships}

.Model image::{model}[]

.Example image::{example}[width=600]

.Example Query: [source,cypher,role=query-example,param-name=name,param-value="Ross, Jr. - Wilbur Louis",result-column=name,expected-result="WLR/TRF Shipping GP Ltd."]

MATCH (a:Officer {name:$name})-[r:OFFICER_OF|INTERMEDIARY_OF|REGISTERED_ADDRESS*..10]-(b) RETURN b.name as name LIMIT 20

=== Setup

This is for Neo4j version: {target-db-version}

ifeval::[{use-plugin} != false] Required plugins: {use-plugin} endif::[]

ifeval::[{demodb} != false] The database is also available on https://demo.neo4jlabs.com:7473

Username "{name}", password: "{name}", database: "{name}" endif::[]

Rendered guide available via: :play {rendered-guide}

Unrendered guide: link:{guide}[]

Load graph data via the following:

ifeval::[{data} != false] ==== Data files: {data}

Import 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]. endif::[]

ifeval::[{use-dump-file} != false] ==== Dump file: {use-dump-file}

[source,shell,subs=attributes]

bin/neo4j-admin load --from {use-dump-file} [--database "database"]

ifeval::[{use-load-script} != false] ==== Data load script: {use-load-script}

[source,shell,subs=attributes]

bin/cypher-shell -u neo4j -p "password" -f {use-load-script} [-d "database"]

Or import in Neo4j Browser by dragging or pasting the content of {use-load-script}. endif::[]

ifeval::[{zip-file} != false] ==== Zip file

Download 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^]. endif::[]

=== Code Examples

=== GraphQL API

See link:graphql[/graphql directory] for Node.js GraphQL API server example using link:https://www.npmjs.com/package/@neo4j/graphql[`@neo4j/graphql`]

=== Feedback

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