Code Monkey home page Code Monkey logo

opencog-neo4j's Introduction

opencog-neo4j

Google Summer of Code 2015 Proposal to implement Neo4j Graph Backing Store as described in http://wiki.opencog.org/w/Neo4j_Backing_Store

Bio scheme files

We'll use the OpenCog Bio knowledge base (dataset in separate repo at [email protected]:opencog-bio/bio-data.git), a moderately sized dataset about 212 MiB in size, to test performance.

mmc4.scm patch

mmc4.scm must be patched as follows due to typo and ConceptNode name mismatch:

(define count (count-all))
(define message (string-append " Atoms loaded " "\n"))
(display count)
(display message)
(define start_time (current-time))
(InheritanceLink 
     (ConceptNode "Aging-Mythelation_GeneSet")
     (ConceptNode "Geneset")
)

(EvaluationLink 
     (PredicateNode "organism_of"
     (ListLink 
        (ConceptNode "Aging-Mythelation_GeneSet")
        (ConceptNode "Homo sapiens"))
     )
)

(EvaluationLink 
     (PredicateNode "source_PubMedID"
     (ListLink 
        (ConceptNode "Aging-Mythelation_GeneSet")
        (NumberNode "#23177740"))
     )
)

(EvaluationLink 
     (PredicateNode "brief_description_of"
     (ListLink 
        (ConceptNode "Aging-Mythelation_GeneSet")
        (PhraseNode "Genes Associated with Aging in Both the Methylome and th Transcript."))
     )
)

Generating the Neo4j Database

After running OpenCogNeo4jGraphBackingStoreApplication, a Neo4j database will be created at ~/tmp/opencog-neo4j. You can inspect it by running:

neo4j-shell -path ~/tmp/opencog-neo4j  

If you want to use the Neo4j Web UI, first make it writable by Neo4j:

sudo adduser neo4j ceefour
chmod -Rc ug+rw ~/tmp/opencog-neo4j

Edit /etc/neo4j/neo4j-server.properties and comment:

org.neo4j.server.database.location=data/graph.db

then add:

org.neo4j.server.database.location=/home/ceefour/tmp/opencog-neo4j

then restart:

sudo service neo4j-service restart

Now you can access at http://localhost:7474/

Use this query:

MATCH (g:opencog_Gene), (c:opencog_Concept), (l:opencog_EvaluationLink)--(x) RETURN g, c, l, x LIMIT 75

opencog-neo4j's People

Contributors

ceefour avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.