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/
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.
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.
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.
We have a requirement in our project, where we want to create visualization profile using Neo4j java api's. I googled, but didn't get anything useful.
Is there anyway to create the style visualization profile using neo4j java api's. We are using neo4j-1.8.1.
You can use getExecutionPlanDescription from your result to get the execution plan of your query.
Result result = graphDb.execute(query);
System.out.println(result.getExecutionPlanDescription());
I'm currently developing a location based social network in Ruby on Rails. I also want to include a recommendation system. For testing the algorithms of this recommendations I need some real, anonymous training data. I've found the data from the Netflix Prize, but they are only including .
I'm searching for data that includes
users
friendships
locations or venues
check-ins (like in foursquare)
Does anybody know a good source for such data? Or a proven algorithm for generating this data? Or any other idea?
Search for random graph generation algorithms (more prciese, "social graph generation") to simulate social graph. Try retrieving the some test geolocation data by Google maps API or similar services. Unfortunately, I don't know what is "check-ins (like in foursquare)".
Also see Free Social Graph Data
I've finally solved it by using the gowalla API. Here you get a lot of information about users, without asking the users to permit the access to their data (kinda strange, but it works).
check it out: http://gowalla.com/api/explorer#/users/sco