Create a Database with the Python Client
To create a database with an already connected client, you can write:
dbid="MyDatabase"
label="My Database",
description="This is a database which is mine"
prefixes = {'@base' : 'iri:///mydatabase/',
'@schema' : 'iri:///mydatabase#'}
team="MyTeam"
client.create_database(
dbid,
team,
label=label,
description=description,
prefixes=prefixes)
This creates a new database called "MyDatabase"
using the descriptive label "My Database"
.
It starts the database with special @base
and @schema
prefixes, all in the team named "MyTeam"