typedb/typedb-driver-examples

New migration and query examples with Client Java

Closed this issue · 0 comments

grabl commented

This issue was originally posted by @sorsaffari on 2018-08-22 18:02.

The goal: of this requirement is to:

  1. create migration examples that use our drivers, rather than the Graql Migration templates (how it's currently documented)
  2. write a tutorial for each example
  3. publish the tutorial on the blog and documentation platform
    Examples: For each Grakn Client driver illustrate migrating data from the following formats:
  4. CSV
  5. SQL
  6. JSON
  7. XML

Dataset: For each example must have one or more of the following characteristics:

  1. contains simple data types
  2. contains a simple relationship

Article structure: Given a simple dataset in a given format (e.g. CSV), show how to:

  1. Define the schema of the database
  • make a simple schema
  • load the schema into the database
  • query the schema (through terminal)
  • write an example of insert query (through terminal)
  1. Load the dataset to the database
  • import the driver into the program
  • read the dataset into the program
  • create a database session and transaction in the program
  • produce the insert queries with the dataset
  • write and commit the insert queries, using the transactions, onto the database
  1. Query the data
  • query the data from the database
  • visualise the data

This issue needs #27, needs #28, needs #29, needs #40, needs #41