Skip to content

Commit

Permalink
Add new CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
pseifer committed Jul 9, 2021
1 parent e41c011 commit 7fc49f3
Show file tree
Hide file tree
Showing 13 changed files with 2,007 additions and 39 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
out*

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ This relies on exporting a cypher graph through the cypher-shell (in JSON format
./run-from-cypher.sh <neo4j-db-location> <shapes>
```

where ```<shapes>``` is a file with ASP encoded shapes and ```<neo4j-db-location>``` the local path of the Neo4j instance. The folder [movie-example](movie-example) contains shapes for validating the Neo4j example movie database.
where ```<shapes>``` is a file with ASP encoded shapes and ```<neo4j-db-location>``` the local path of the Neo4j instance. Note, that the configuration option ```apoc.export.file.enabled=true``` has to be set.
The folder [movie-example](movie-example) contains shapes for validating the Neo4j example movie database.
Note, that we convert all property names and labels to lower case. We also replace " with ' in strings. We only support integer and string property values. All other properties are converted to strings via the Python ```str``` function.

Validation of other property graph models is possible by either exporting graphs in the same JSON format as Neo4j (an then using [translate.py](scripts/translate.py)) or by writing a custom conversion to the ASP encoding used by ProGS.
Expand Down
File renamed without changes.
437 changes: 437 additions & 0 deletions legacy/exported.json

Large diffs are not rendered by default.

Loading

0 comments on commit 7fc49f3

Please sign in to comment.