Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Visualizing and Exploring Knowledge Graphs with the New Browser based Gruff

88 views

Published on

By augmenting knowledge graphs with visualizations, users can determine insights that would otherwise elude them. Gruff’s dynamic data visualizations increase users’ understanding of data by instantly illustrating relevant relationships, hidden patterns and data’s significance to outcomes. Gruff also helps make data actionable by displaying it in a way that decision-makers can see the significance of data relative to a business problem or solution.

Gruff enables users to create visual knowledge graphs that display data relationships in views that are driven by the user. Ad hoc and exploratory analysis can be performed by simply clicking on different graph nodes to answer questions. Gruff’s unique ‘Time Machine’ feature provides the capability to explore temporal context and connections within data. The visual query builder within Gruff empowers both novice and expert users to create simple to highly complex queries without writing any code.

Join us for this webinar to learn how Healthcare organizations and Banks are exploring their Knowledge Graphs

"Nice job on Gruff in a browser and I think this will be a gamechanger.” - Louis Rumanes, United Health Group

“Few tools exist that can quickly turn arbitrary RDF graph pattern matches into clear visualizable results.  Gruff is invaluable in turning our knowledge graph data into useful and actionable analytic insights.” - Michael Pool, BNY Mellon Bank

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Visualizing and Exploring Knowledge Graphs with the New Browser based Gruff

  1. 1. Visualizing and Exploring Knowledge Graphs Dr. Jans Aasman (allegrograph.com) Gruff in about 10 Lessons
  2. 2. The 10 lessons [1] Connect to AllegroGraph and load some data [2] Manage your triple store with AGWebView [3] G The Graph View [4] B The Table View [5] O The Outline View [6] W The Query View [7] E The Graphical Query Editor View [8] Discovery [9] Use the time machine for temporal data [10] Using pictures for nodes [Bonus] SPARQL Endpoint on dbpedia
  3. 3. What version of Gruff § Version Gruff 8.0 for AG 7 § Gruff in the browser now included in AG 7.0 § Install on any Linux, WSL, Docker, VM, AMI or use the AWS version: https://aws.amazon.com/marketplace/pp/Franz-Inc-AllegroGraph-Enterprise-Edition/B08746KZHH § And the standalone version of Gruff is here: https://franz.com/agraph/gruff/download/ • AllegroGraph 7 Free up to 5 M triples § Gruff actually works with ANY triple store via SPARQL Endpoint Protocol (Ask Franz Sales for a password to play with it)
  4. 4. The data we are going to use • Download tutorial data from this page: https://franz.com/agraph/gruff/download/ • Actors.ntriples.gz • Extracted from movie data in dbpedia • Crunchbase.nt.gz • Crunchbase data from 2005 to 2014, has nice temporal features • Healthcare.nt.gz • 100 K clinical trials, 4 K diseases, 4 K side effects, 10 K brand names for drugs, 1,8 K FDA approved drugs, MESH indexed, several 1000 anonymous people with medical notes.
  5. 5. [1] connect to the server and load your first data • Download actors.ntriples from franz.com/agraph/gruff/download/ • Start AGWebView at localhost:10035 (or wherever your AG server is) • Create new repository: actors • Load actors triples from an uploaded file • Start Gruff via AGWebView or use standalone version. • Check if everything loaded well: • Display all triples up to a limit (display -> display all triples up to a limit) • Remove all triples from screen (‘z’ till blank, or ctr-alt-x)
  6. 6. [2] Manage your triple store with agwebview • Loading bigger data sets • Although use command line tool ‘agtool’ for really big loads. • Optimize indices • Look at query plans and query plan execution • Monitor the server • Backup and restore • Manage replication • User management • Export triples and quads
  7. 7. [3] Graph View ‘G’ • The view you’ll spend 70 % of your time in (well, I do) • Some easy starters to get something on the screen • Display all triples up to a limit (display menu) • Using freetext indexing (h) • Do simple SPARQL query in query screen (w) .. Select * where { ?x a ?y . } limit 10 .. Click on ‘create-visual-graph’ • Display sample instance node by class hierarchy (ctr-j) • Select the predicates to show on the screen (p) • Use shift-p to find an earlier selection • Explode nodes (f) • Going back to previous state (z) • Reorder graph ( r ) • Center the graph ( c ) • Make the graph more compact (6) • Nudge the graph (d) • Zoom in and out (middle wheel mouse, or use , and .)
  8. 8. [3] More graph view • The corners of nodes are ‘mouse-sensitive’: please play with it • And try our tree rendering using ctr-t (or left bottom node corder)
  9. 9. [3] Graph View ‘G’ continued • Explode node by right-clicking and choosing from a menu or a tree • Select and then delete nodes from the screen (x) • Delete all nodes from the screen (ctr-alt-x) • Eraser mode (ctr-shift-x) • Remove orphans (shift-o) • Show full namespaces (shift-8 .. Not F8) • Toggle predicate names on screen (n) • Find shortest path (shift-f) • Pin nodes, or graph might change too much (i) • Find shortest path with shift-f • What if you can’t find a path? • Choose more predicates and sometimes less J • Create larger time window to search • Buy more memory and solid state drives for your laptop • Check in table view if one of the nodes has the right predicates
  10. 10. [3] Graph View ‘G’ continued • Sometimes you don’t want to see the node labels (ctr-8 or • Visual-graph-options -> node labels -> use label preds for nodes) • Important: you can add your own node labels.. Very useful, I’ll show you an example • You can always see the full URL of a node left under the screen • Double click on node to go to table view (or hit ‘b’) • Go directly to outline view from selected node (o) • Save a graph layout to disk (ctr-s) • Load a graph layout (ctr-l) • Graph layouts are simple text files and can be shared
  11. 11. [4] Table View ‘B’ IF YOU WANT TO SEE YOUR TRIPLES IN A TRADITIONAL TEXTUAL TABLE • Navigate the data by clicking on ‘values’ • Above gray line: s p o (where s is the main node we selected) • Under gray line: o p s (note the ‘is’ predicate ‘of) to denote the other direction • Note how ‘8’ shows you full URLs of nodes • Note how ‘Alt-8’ shows you how we use node-labels • You can create triples in the table view, see manual…
  12. 12. [5] Outline View ‘O’ IF YOU HAVE DEEP HIERARCHICAL DATA AND YOU NEED TO RETAIN THE CONTEXT WHILE NAVIGATING. • Navigate the data by clicking on little arrows • Blue: outgoing triples • Black: triples pointing to previous level (note the ‘is’ … ‘of’ around the predicates • Display: • Note how ‘8’ shows you full URLs of nodes • Note how ‘Alt-8’ shows you how we use node-labels
  13. 13. [6] Query View – ‘W’ Write queries in SPARQL and Prolog – by writing code • Use namespace abbreviations (b) to avoid typing prefixes • Turn output into Graph or CSV • Managing queries • Save queries (ctr-s) • Load queries (ctr-l) • Investigate menu … query options • One can change the time limit..
  14. 14. [7] Visual Query Editor ‘E’ • Build queries visually – no code! • Most things work like the graphical query view • Search for freetext (h) • Right click on screen to create new variables • Right click on variables to create new predicates with drag and drop • Multiple ways to choose names of predicates.. See menus
  15. 15. [8] Discovery: using patterns on the screen to build queries • Create interesting patterns on the screen using everything you learned so far • Find a trail that you think is interesting • Highlight each node in trail (ctr-left-click or ‘h’) • Move highlighted nodes to query editor (ctr-alt-i) • Change some variables manually or let Gruff find the variable names for you
  16. 16. [9] Use the time machine for temporal data • Load Crunchbase.nt.gz in the crunchbase repository • In the graph view set start time, end time and momentary time predicates: • Go to Visual Graph Options -> Time Bar -> start/end/momentary time predicates • Use <shift>-A to start the time bar
  17. 17. [10] Using Pictures for Nodes
  18. 18. [10] Using Pictures for Nodes • Tell Gruff what predicate to use for pixmaps • <jans> <pixmap> “pictureOfJans.ico” • Global-options -> node label predicates -> custom predicates for node label pixmaps. • And tell Gruff the base location of your pixmaps • You can use relative filenames • You can use jpg png bmp ico • Global-options->miscellaneous->document base folder
  19. 19. [11] Gruff for SPARQL Endpoint • The password for May = sphericalwall
  20. 20. The End • Please try it out, and ask questions… • Pls let us know what you think of the new Gruff in the Browser • gruff.allegrograph.com:10035

×