OpenPhacts is a wonderful source of a number of RDFs related to drug discovery (https://www.openphacts.org/). The data is freely available (https://data.openphacts.org/commercial/2.1/)
Unfortunately there is no example of how to load it into a graph database such as neo4j or arangodb (http://support.openphacts.org/support/solutions/articles/168752-can-i-install-open-phacts-locally-)
Could someone provide a basic example on how to import one of the dozen RDFs into a graph database for a novice graph database user?
Thanks
Iain
Check out this post & tool by my colleague
https://jesusbarrasa.wordpress.com/2016/06/07/importing-rdf-data-into-neo4j/
It uses some sensible mapping and provides a Neo4j user defined procedure to do the hard work.
Related
I have a host running neo4j engine, say: neo4jhost:7474
I would like certain users to be able see query results in a browser, from a pre-generated link. Thus, user could explore the graph interactively, without messing with the query syntax.
For example: let the query be
(n)-[r]->(m) where n.id=123 return n,r,m
I need a URL link that produces the above mentioned query, but displays the result in a browser, in neo4j graph visualization format.
Currently, Neo4j Browser does not have this feature.
However, you can use a graph visualization library to embed the graph visualization into your web application. Some examples of JavaScript graph visualization libraries:
D3.js
VivaGraphJS
Sigma
KeyLines
Alchemy.js
Alternatively, since Neo4j Browser is an Open-source tool you can checkout the project and modify it to achieve your goal.
As already mentioned, Neo4j browser does not have this functionality. However, you can have a look at the popoto.js. It might not be exactly what you are looking for, but it has dynamic natural language query tracker and Cypher Query generation functionalities.
I suggest to inspect and do some re-engineering on the functions to figure out more details. Maybe it gives new ideas as well.
Is there any best practise or good example which shows how to document graph ontologies.
I assume you want to document your graph database structure.
I like the idea of neo4j graph gists. It is possible to generate such interactive graph gist using a regular github asciidoc gist which contains cypher code to describe your graph.
Example Neo4j Graph Gist
Github Gist Source
At some point it was also possible to host your own neo4j graph gist portal but I'm not sure whether this is still possible.
I'm making a java application to retrieve data from twitter and then store the data in a graph database Neo4j. I wonder if I can visualize the social graph via my application from java?! I mean , can I visualize the graph using CYPHER queries from java in order to see the different nodes and relationships?!
Thanks
There are many ways of doing that, see
http://neo4j.com/developer/guide-data-visualization/
for a concrete twitter example using vivagraph.js
http://neo4j.com/blog/oscon-twitter-graph/
I'm looking at visualization options for a graph database project that I have coming up. Part of the job is to provide an interactive visualization of the data for public website visitors.
The standard Neo4j Server Web Interface does all I would need it to and more. I was wandering if I could simply embed it in a webpage or provide a public url (that could be accessed without a login) that general users could use to view the visualization without being able to edit it or add nodes/relationships? If you know of any examples of how this can be done, I would be very grateful.
Thanks!
The Neo4j browser is an Angular.js application using d3.js as visualization. The code is all open source an on https://github.com/neo4j/neo4j/tree/2.2/community/browser/lib/visualization so you can check it out there.
In general http://maxdemarzi.com is a good source for visualization blog posts as is http://neo4j.org/develop/visualization
Check out Neo4j GraphGists. A GraphGist allows you to embed a Neo4j database, Cypher queries, and visualize the results in a web page. Lots of examples listed on the GraphGist wiki.
Also take a look at Mashed Datatoes, a bar chart, pie chart like visualization software for Neo4j.
It uses Movie database for demo. Try selecting "Person" as start label.
I used Node js for my webapp and I wanted to create a new user with unique email ID and hence that required me to look up the index table but then I realised that the Node Driver doesn't have the index() function as the one in Java( graphDb.index() ). Any work around for such an issue, like using REST or some Cypher connetor
Neo4j just so happens to have a wonderful REST API that should work for your application. The docs for the api are detailed here:
http://docs.neo4j.org/chunked/milestone/rest-api.html.
It even has an entire section devoted to indexing.