Internet Yellow Pages

A knowledge graph for Internet resources!

Learn how to query IYP

basics

IYP Gallery

List of different query examples

gallery

Data analytics with IYP

  • Run IYP locally
  • Import data into IYP

Internet Yellow Pages

A knowledge graph for Internet resources!

This guide will show you how to retrieve and display data from IYP. Let's start simple, the below query find which IXPs AS2497 is member of. Click on below icon to run the query:

 MATCH (iij:AS)-[:MEMBER_OF]-(ix:IXP)
   WHERE iij.asn = 2497
   RETURN iij, ix
  1. The MATCH keyword means that we are looking for a pattern in the graph. The pattern is given in a ASCII art representation where nodes are depicted by a pair of parentheses, (a), and relationship are depicted
    
                    (iij:AS)-[:MEMBER_OF]-(ix:IXP)
                  
    describes a path that starts from a node we'll call iij that connects to another node we'll call ix. iij and ix are identifiers that allow us to refer to a certain node later on. In IYP all nodes and relationships have a type (actually called labels for nodes) that convey what the nodes and relationships represent. The labels/types are given after the colon, for example (:AS) means a node that represents an AS, and, [:MEMBER_OF] is relationship of type member of. You can find all node labels and relationship types by clicking on the top right database icon on this page. So putting all of this together, our pattern means that we are looking for links that connect an AS and an IXP with the relationship MEMBER_OF.
  2. The WHERE keyword allows us to specify which particular nodes or relationship we are interested in. In the above example we specify that the node called iij should have a property asn that equals to 2497.
  3. The RETURN statement describes the nodes and links we want to display.

Title two

Same query different syntaxes

MATCH (iij:AS {asn: 2497})-->(ix:IXP) RETURN iij, ix
Find the produce suppliers.
CREATE INDEX ON :Category(categoryID)
CREATE INDEX ON :Supplier(supplierID)

More code