Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading a Graph with Cypher inserts #356

Open
dboshardy opened this issue Apr 16, 2018 · 5 comments
Open

Loading a Graph with Cypher inserts #356

dboshardy opened this issue Apr 16, 2018 · 5 comments

Comments

@dboshardy
Copy link

I'm trying to get this working, but all data I have is stored as a Cypher insert. So far as I can tell, there isn't a way to load data by running arbitrary Cypher queries, they all are using existing data structures.

Is this functionality available?

@Mats-SX
Copy link
Member

Mats-SX commented Apr 17, 2018

So your data is stored as Cypher CREATE statements? The easiest way to integrate that I think would be to setup a Neo4j database (locally, for example), load it with the data from your Cypher statements, then connect CAPS to that Neo4j database via its Bolt address.

To start out, you could follow the outline of the Neo4jWorkflow that you find here. You can put a snippet (or the entirety) of your Cypher data instead of the sample data that's being used in the example. This is a pure in-memory Neo4j instance that you could replace with a real Bolt address as a second step.

Does this help?

@dboshardy
Copy link
Author

Single databases really won't work for my use case. That's why I'm trying CAPS in the first place.

@Mats-SX Mats-SX reopened this Apr 20, 2018
@Mats-SX
Copy link
Member

Mats-SX commented Apr 20, 2018

I'll keep this issue open, because it seems like an interesting use case for us to consider. I believe we have the necessary architecture to support this, but it isn't immediately available yet. In our testing layer we do have a converter from CREATE statements to a CAPSGraph instance, but it hasn't been integrated in any of the APIs yet.

@s1ck
Copy link
Contributor

s1ck commented Apr 24, 2018

@dboshardy would it be sufficient for your use case if we provide a data source that is able to read multiple CREATE statements from a Cypher script, which was exported from Neo4j via apoc.export.cypher.*.

@dboshardy
Copy link
Author

dboshardy commented Apr 24, 2018

For my use case specifically, the CREATE statements are programmatically written based on business logic, not from an export.

I will add, however, that I've decided to pause exploration on Neo4J for my purposes in favor of other methods. If those don't work I'll take a look at Neo4J again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants