{"id":21068942,"url":"https://github.com/cloudprivacylabs/lsa-neo4j","last_synced_at":"2026-04-21T20:03:18.237Z","repository":{"id":37680765,"uuid":"421609857","full_name":"cloudprivacylabs/lsa-neo4j","owner":"cloudprivacylabs","description":"Neo4j storage for layered schemas","archived":false,"fork":false,"pushed_at":"2023-08-04T19:23:49.000Z","size":661,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T21:39:29.763Z","etag":null,"topics":["graph","graph-database","neo4j"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudprivacylabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-10-26T23:07:28.000Z","updated_at":"2023-02-12T12:58:29.000Z","dependencies_parsed_at":"2024-11-14T14:25:44.304Z","dependency_job_id":"92cf59aa-5f8a-491d-b621-865157ec2bbb","html_url":"https://github.com/cloudprivacylabs/lsa-neo4j","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudprivacylabs%2Flsa-neo4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudprivacylabs%2Flsa-neo4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudprivacylabs%2Flsa-neo4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudprivacylabs%2Flsa-neo4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudprivacylabs","download_url":"https://codeload.github.com/cloudprivacylabs/lsa-neo4j/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243510056,"owners_count":20302296,"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":["graph","graph-database","neo4j"],"created_at":"2024-11-19T18:29:37.957Z","updated_at":"2025-12-28T20:34:27.299Z","avatar_url":"https://github.com/cloudprivacylabs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GoDoc](https://godoc.org/github.com/cloudprivacylabs/lsa-neo4j?status.svg)](https://godoc.org/github.com/cloudprivacylabs/lsa-neo4j)\n[![Go Report Card](https://goreportcard.com/badge/github.com/cloudprivacylabs/lsa-neo4j)](https://goreportcard.com/report/github.com/cloudprivacylabs/lsa-neo4j)\n\n# Neo4J Storage Driver for Layered Schemas\n\nThis Go package contains the Neo4J graph database driver to store\ngraphs generated by layered schemas. It also has a command line tool\nthat can be paired with `layers` command line tool to ingest data and\nstore in a Neo4J database.\n\n## Graph Mapping\n\nThe data ingested using layered schemas is represented as a labeled\nproperty graph. There are some minor differences between the Neo4J\ngraph representation and a more generic labeled property graph used by\nlabeled schemas, so a mapping is necessary. This section describes how\nthat mapping is done.\n\n * Every node of a data graph is stored as a Neo4J node.\n   * The data graph node id is stored as the string property neo4j_id\n   * All node properties of the data graph are stored as Neo4j node\n     properties, with string or []string values\n   * The types associated with a data graph node are stored as Neo4j node labels.\n\n * Every edge of a data graph is stored as a Neo4J edge.\n   * The graph node edge label is stored as the Neo4J edge label\n   * All edge properties of the graph node are stored as string or []string property values\n\nAs an example:\n\n```\nData Graph:\n+----------------------------+                                  +---------------------------+\n|  @id = node_1              |                                  |  @id = node_2             |\n+----------------------------+                                  +---------------------------+\n|  @type = [ type1, type2 ]  |-------- edgeLabel      ---------\u003e|  @type = [ type3, type4 ] |\n|  property = value          |         edgeProperty = value     |  property2 = value2       +\n+----------------------------+                                  +---------------------------+\n\n\nNeo4J:\n+---------------------+                                      +---------------------------+\n|  :type1 :type2      |                                      |     :type3 :type4         |\n+-------------------- +                                      +---------------------------+\n|  neo4j_id = node_1  |----------- :edgeLabel --------------\u003e|   neo4j_id = node_2       |\n|                     |             edgeProperty = value     |   property2 = value2      |\n|  property = value   |                                      +---------------------------+\n+---------------------+\n\n```\n\n## Command Line Tool\n\nTo build the command line tool, use the Go build system:\n\n```\ncd lsaneo\ngo mod tidy\ngo build\n```\n\nThat should build the `lsaneo` binary for your platform\n\nYou can pair `lsaneo` with the `layers` tool to ingest data and store graphs:\n\n```\nlayers ingest csv --schema myschema.json inputdata.csv | lsaneo create --user userName --pwd password --uri dburi\n```\n\nYou can also store saved graph files (in JSON-LD flattened format):\n\n```\nlsaneo create --user userName --pwd password --uri dbUri \u003cfileName\u003e\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudprivacylabs%2Flsa-neo4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudprivacylabs%2Flsa-neo4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudprivacylabs%2Flsa-neo4j/lists"}