background preloader

Neo4j

Facebook Twitter

Batch Importer – Part 2. If you’ve been following along, we got Michael’s Batch Importer, compiled it, created some test data, ran it and saw millions of nodes and relationships loaded into Neo4j. So now we’re ready for our own data. I am going to show you how to get data from a Relational Database like PostgreSQL into a format we can use. If you’re using SQL Server, MySQL, Oracle, etc, the directions will be slightly different, but you’ll get the picture. So let’s say we have an identities table with the following layout: We need to assign reference ids to the items in the tables that will become our nodes. The row_number window function is perfectly suited for this trick. Let’s go ahead and create a new table with this data by using the INTO command: Getting the nodes was easy enough… how about relationships?

Grantors vouch for Requesters using a Term. So we can build that with: In this case we have about 75 terms that I will use as relationship types. …and we’ll go get another soda…whoops, no time, it’s done. Neo4j: World's Leading Graph Database. Bio4j blog | news and updates on bio4j. Hello everyone, I’m happy to announce a new set of features for our tool Bio4jExplorer plus some changes in its design. I hope this may help both potential and current users to get a better understanding of Bio4j DB structure and contents. Node & Relationship properties You can now check with Bio4jExplorer the properties that has either a node or relationship in the table situated on the lower part of the interface. Five columns are included: Name: property name Type: property type (String, int, float, String[], …) Indexed: either the property is indexed or not (yes/no) Index name: name of the index associated to this property -if there’s any Index name: type of the index associated to this property -if there’s any Node & Relationship Data source You can also see now from which source a Node or Relationship was imported, some examples would be Uniprot, Uniref, GO, RefSeq… Relationships Name property Get proteins (accession and names) associated to an interpro motif (limited to 10 results)

Neo4j Blog. Neo4j Internals: File Storage. NOTE: This post is quite outdated, stuff has changed since i wrote this. While you can somewhat safely ignore the alterations for increased address space of entities, the Property store has changed in a fundamental way. Please find the new implementation here. Ah, the physical layer! Storing bits and bytes on spinning metal, away from the security and comfort of objects and high-level abstractions. This is the realization of any database system, the sole purpose for which it is build. In this post I will try to explain the storage subsystem of Neo4j, exposing the structure and purpose of all those "neostore. *" files that your graph lives in.

Which files again? By now you should be aware that your graph lives in a bunch of files under the directory which you instructed your instance to store them. Recycling Ids I will tell a lie now but I have to start somewhere. The IdGenerator and its data file Restoring the truth Record - oriented storage : The primitives Node store Relationship store. Neo4j « Romiko Derbynew's Blog.