{"id":15611486,"url":"https://github.com/neo4j-graph-examples/legis-graph","last_synced_at":"2025-04-14T00:43:34.882Z","repository":{"id":37785037,"uuid":"246859295","full_name":"neo4j-graph-examples/legis-graph","owner":"neo4j-graph-examples","description":"US Congress modeled as a Graph - bills, votes, members, and more","archived":false,"fork":false,"pushed_at":"2024-10-08T08:26:53.000Z","size":78982,"stargazers_count":3,"open_issues_count":33,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T14:55:01.229Z","etag":null,"topics":["dataset","example-data","graphdb","legis-graph","legislative-data","neo4j","politics"],"latest_commit_sha":null,"homepage":"https://sandbox.neo4j.com/?usecase=legis-graph","language":"Cypher","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-12T14:46:20.000Z","updated_at":"2024-12-09T03:27:55.000Z","dependencies_parsed_at":"2024-10-22T00:06:05.518Z","dependency_job_id":null,"html_url":"https://github.com/neo4j-graph-examples/legis-graph","commit_stats":{"total_commits":19,"total_committers":5,"mean_commits":3.8,"dds":0.6842105263157895,"last_synced_commit":"827a34e2e9f9fbef6907a2a39262d7d0c887b74e"},"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%2Flegis-graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo4j-graph-examples%2Flegis-graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo4j-graph-examples%2Flegis-graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo4j-graph-examples%2Flegis-graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neo4j-graph-examples","download_url":"https://codeload.github.com/neo4j-graph-examples/legis-graph/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248804721,"owners_count":21164127,"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":["dataset","example-data","graphdb","legis-graph","legislative-data","neo4j","politics"],"created_at":"2024-10-03T06:04:50.902Z","updated_at":"2025-04-14T00:43:34.860Z","avatar_url":"https://github.com/neo4j-graph-examples.png","language":"Cypher","readme":":name: legis-graph\r\n:long-name: Legis Graph\r\n:description: US Congress modeled as a Graph - bills, votes, members, and more\r\n:icon: documentation/img/legisgraph-icon-blue.png\r\n:tags: example-data,dataset,legislative-data,legis-graph,politics\r\n:author: William Lyon\r\n:demodb: false\r\n:data: import/*.csv\r\n:use-load-script: scripts/legis-graph.cypher\r\n:use-dump-file: data/legis-graph-40.dump\r\n:zip-file: false\r\n:use-plugin: false\r\n:target-db-version: 3.5,4.0\r\n:bloom-perspective: bloom/legis-graph.bloom-perspective\r\n:guide: documentation/legis-graph.neo4j-browser-guide\r\n:rendered-guide: https://guides.neo4j.com/sandbox/{name}/index.html\r\n:model: documentation/img/model.png\r\n:example: documentation/img/example.png\r\n\r\n:todo: false\r\nimage::{icon}[width=100]\r\n\r\n== {long-name} Graph Example\r\n\r\nDescription: _{description}_\r\n\r\nifeval::[{todo} != false]\r\nTo Do: {todo}\r\nendif::[]\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=state,param-value=NY,result-column=name,expected-result=\"Hakeem Jeffries\"]\r\n----\r\nMATCH (s:State {code: $state})\u003c-[:REPRESENTS]-(l:Legislator)\r\nRETURN l.firstName+' '+l.lastName as name\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.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneo4j-graph-examples%2Flegis-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneo4j-graph-examples%2Flegis-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneo4j-graph-examples%2Flegis-graph/lists"}