Difference between revisions of "Demo embedded Neo4j"

From Earth Science Information Partners (ESIP)
(Created page with "<html> <head> <title>DataViz</title> <style type="text/css"> #viz { width: 900px; height: 700px; }...")
 
m
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
How do SDGs relate to selected publications?  What you see below is the result of a query to a graph database that is used to experiment with finding connections between information and data.  The query was issued from within an IPython notebook to a Neo4j database.  The results from the query were then sent to the Graphistry server for visualization. 
 +
 
<html>
 
<html>
    <head>
+
<iframe
        <title>DataViz</title>
+
    src="https://hub.graphistry.com/graph/graph.html?dataset=004057dbce984843b3caeaa66320d286&type=arrow&viztoken=3c91494a-05bd-497c-bd2e-a93d18a62267&usertag=99009945-pygraphistry-0.15.0&splashAfter=1611067668&info=true&play=2000&showArrows=True&showLabels=True&showLabelOnHover=True&pointsOfInterestMax=50&pointSize=25"
        <style type="text/css">
+
     style="border: 1px solid black; width: 100%; height: 100%; min-height: 600px"
            #viz {
+
></iframe>
                width: 900px;
 
                height: 700px;
 
            }
 
        </style>
 
        <script src="https://rawgit.com/neo4j-contrib/neovis.js/master/dist/neovis.js"></script>
 
    </head> 
 
    <script>
 
        function draw() {
 
            var config = {
 
                container_id: "viz",
 
                server_url: "bolt://54.88.38.186:32889",
 
                server_user: "neo4j",
 
                server_password: "change-guest-honks",
 
                labels: {
 
                    "Troll": {
 
                        caption: "user_key",
 
                        size: "pagerank",
 
                        community: "community"
 
                    }
 
                },
 
                relationships: {
 
                    "RETWEETS": {
 
                        caption: false,
 
                        thickness: "count"
 
                    }
 
                },
 
                initial_cypher: "MATCH p=(:Troll)-[:RETWEETS]->(:Troll) RETURN p"
 
            }
 
 
 
            var viz = new NeoVis.default(config);
 
            viz.render();
 
        }
 
     </script>
 
    <body onload="draw()">
 
        <div id="viz"></div>
 
    </body>
 
 
</html>
 
</html>

Latest revision as of 13:54, January 19, 2021

How do SDGs relate to selected publications? What you see below is the result of a query to a graph database that is used to experiment with finding connections between information and data. The query was issued from within an IPython notebook to a Neo4j database. The results from the query were then sent to the Graphistry server for visualization.