Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 1.63 KB

bql_practical_examples.md

File metadata and controls

29 lines (24 loc) · 1.63 KB

BQL Practical Examples

You may find a collection of examples on the examples folder. Each example file targets a particular BQL feature. The list shown below list each of the example files with a brief description.

  • First steps: This example show how to create a graph, insert data, query the graph, and drop the graph. The query shows basic functionality on how how to express your graph query using graph clauses. The example shows how to search for particular patterns and extract IDs from from graph nodes.

  • Expressing graph patterns and grouping: This example show how you can express complex graph queries by properly binding graph clauses together. You will also find examples on how to summary the results via the GROUP BY clause.

  • Summarizing and sorting data queries across graphs: Sometimes you want to queries data that is stored across multiple graphs. This example shows how you can express queries across multiple graphs, by simple listing them in the FROM clause, and summarize the results accordingly. It also shows how to sort the resulting tables using via the ORDER BY clause. It is important to highlight that BQL FROM clause does not express table joins, but the union of the specified graphs.

  • Filtering results: The HAVING clause is useful for filtering rows out from the resulting results table. This example shows some simple examples of how you can easily achieve it by simply providing the filtering criteria on the where clause.