Best Practice: Storing Files in Neo4J

744 views
Skip to first unread message

Holly M.

unread,
Oct 15, 2015, 3:20:01 PM10/15/15
to Neo4j
Hello everyone,

I am in the modeling phase of a project using Neo4J as a storage-backend.
The data I want to store is in form of a graph, so a graph database was the first choice.

But now I'm running into problems modeling the data structure.

In some cases I have to store whole files or documents. They are of different shape and format (xml, object files, .sh, .f etc)
and have nearly arbitrary length.
I want these datasets within my graph (or at least a reference for them or something)

It will not be necessary to search within the files a lot, but its important to find the files themselves when needed.

Now is my question: What is a recommended way of storing files or documents within graph database Neo4J?

Can I get them in a special labled node, or do I have to use references and another storing system just for the files to find them again?
Are there other possibilities of solving this problem?

Hoping for some advice,
Holly

Davis, Sean (NIH/NCI) [E]

unread,
Oct 15, 2015, 3:23:26 PM10/15/15
to ne...@googlegroups.com
What are your requirements in terms of atomicity? Will the files and their relationships be changing often? Do you need to be able to “ship” the database around?

Sean
signature.asc

Holly M.

unread,
Oct 16, 2015, 12:15:41 AM10/16/15
to Neo4j
In most cases the tracked data will be fix. In some cases a data transfer could happen, but if the files are copied and stored afterwards then there will be no change in the data at all. Its just for read access.

Holly

Mahesh Lal

unread,
Oct 16, 2015, 1:10:32 AM10/16/15
to Neo4j

One of the ways this can be solved is by storing the files on a file server or on disk and storing the metadata on them in Neo4j.
The metadata can be periodically updated while the nodes have a URL at which the file is stored.

On 16-Oct-2015 9:45 am, "Holly M." <holly...@gmail.com> wrote:
>
> In most cases the tracked data will be fix. In some cases a data transfer could happen, but if the files are copied and stored afterwards then there will be no change in the data at all. Its just for read access.
>
> Holly
>

> --
> You received this message because you are subscribed to the Google Groups "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages