Constructor
new GraphDB(optionsopt)
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
{} | Connection params Properties
|
- Source:
Extends
- Store
Classes
Methods
(async) ask(dbname, sparql, optionsopt)
Issues an ASK query
Parameters:
Name | Type | Attributes | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dbname |
string | ||||||||||||
sparql |
string | query |
|||||||||||
options |
Object |
<optional> |
Properties
|
- Source:
(async) clearDb(dbname)
Empties a database
Parameters:
Name | Type | Description |
---|---|---|
dbname |
string |
- Source:
(async) construct(dbname, sparql, optionsopt)
Issues a CONSTRUCT query
Parameters:
Name | Type | Attributes | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dbname |
string | ||||||||||||
sparql |
string | query |
|||||||||||
options |
Object |
<optional> |
Properties
|
- Source:
(async) createDb(dbname)
Creates a database
Parameters:
Name | Type | Description |
---|---|---|
dbname |
string |
- Source:
(async) describe(dbname, sparql, optionsopt)
Issues a DESCRIBE query
Parameters:
Name | Type | Attributes | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dbname |
string | ||||||||||||
sparql |
string | query |
|||||||||||
options |
Object |
<optional> |
Properties
|
- Source:
(async) dropDb(dbname)
Deletes a database
Parameters:
Name | Type | Description |
---|---|---|
dbname |
string |
- Source:
(async) import(dbname, ntriples, graphopt)
Loads triples or quads into a database
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
dbname |
string | ||
ntriples |
string | Buffer | triples or quads |
|
graph |
string |
<optional> |
named graph to insert to, defaults to default graph |
- Source:
(async) select(dbname, sparql, optionsopt)
Issues a SELECT query
Parameters:
Name | Type | Attributes | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dbname |
string | ||||||||||||
sparql |
string | query |
|||||||||||
options |
Object |
<optional> |
Properties
|
- Source:
sparqlClientFor(dbname, options) → {SparqlHttpClient}
Creates a SPARQL HTTP Client for a database
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dbname |
string | ||||||||||||||||||||||||||||||||||||||||||||||
options |
Object |
Properties
|
- Source:
Returns:
- Type
- SparqlHttpClient
(async) update(dbname, sparql, optionsopt)
Issues a SPARQL UPDATE query
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dbname |
string | ||||||||||||||||||||||
sparql |
string | query |
|||||||||||||||||||||
options |
Object |
<optional> |
Properties
|
- Source: