Search: Pattern search
Most graph database support a query language that can be used to express
pattern queries in the graph. Neo4j supports the
Titan and DataStax Enterprise Graph support the
Gremlin language and
AllegroGraph supports the
In Linkurious, you can directly use these query language from the "Find" > "Patterns" menu. Once a query is previewed (using the Preview button), you can click the "Add all" button to add all matching results to the current visualization.
Cypher query language is similar to
SQL and can be learned from
Neo4j's online documentation.
Here is an example Cypher query that is using the Crunchbase dataset (see our online demo):
MATCH (city:CITY)<-[hasCity:HAS_CITY]-(company:COMPANY)WITH count(company) as score, city, company, hasCityRETURN city, company, hasCity, scoreORDER BY score DESCLIMIT 25
This query will match all companies that are connected to a city in the database, count the number of companies in each city, sort the sub-graphs by city and return the 25 cities that have the most companies, with their companies.
Note the Cypher query has to contain a
RETURN statement and that all
information that need to be displayed in Linkurious must be included in