Constructor
new Stardog(optionsopt)
Parameters:
Name |
Type |
Attributes |
Default |
Description |
options |
Object
|
<optional>
|
{}
|
Connection params
Properties
Name |
Type |
Attributes |
Default |
Description |
user |
string
|
<optional>
|
admin
|
Username |
password |
string
|
<optional>
|
admin
|
Password |
endpoint |
string
|
<optional>
|
http://localhost:5820
|
Endpoint |
|
- Source:
Extends
Classes
- Stardog
Methods
(async) ask(dbname, sparql, optionsopt)
Parameters:
Name |
Type |
Attributes |
Description |
dbname |
string
|
|
|
sparql |
string
|
|
query |
options |
Object
|
<optional>
|
Properties
Name |
Type |
Attributes |
Default |
Description |
options |
Object
|
<optional>
|
|
Properties
Name |
Type |
Attributes |
Default |
Description |
accept |
string
|
<optional>
|
application/json
|
|
|
params |
string
|
<optional>
|
{}
|
|
additionalHandlers |
string
|
<optional>
|
{}
|
|
|
- Source:
(async) clearDb(dbname, optionsopt)
Parameters:
Name |
Type |
Attributes |
Description |
dbname |
string
|
|
|
options |
Object
|
<optional>
|
Properties
Name |
Type |
Attributes |
Default |
Description |
params |
Object
|
<optional>
|
{}
|
|
|
- Source:
(async) construct(dbname, sparql, optionsopt)
Parameters:
Name |
Type |
Attributes |
Description |
dbname |
string
|
|
|
sparql |
string
|
|
query |
options |
Object
|
<optional>
|
Properties
Name |
Type |
Attributes |
Default |
Description |
options |
Object
|
<optional>
|
|
Properties
Name |
Type |
Attributes |
Default |
Description |
accept |
string
|
<optional>
|
application/json
|
|
|
params |
string
|
<optional>
|
{}
|
|
additionalHandlers |
string
|
<optional>
|
{}
|
|
|
- Source:
(async) createDb(dbname, optionsopt)
Parameters:
Name |
Type |
Attributes |
Description |
dbname |
string
|
|
|
options |
Object
|
<optional>
|
Properties
Name |
Type |
Attributes |
Default |
Description |
databaseOptions |
Object
|
<optional>
|
{}
|
|
options |
Object
|
<optional>
|
{}
|
|
params |
Object
|
<optional>
|
{}
|
|
|
- Source:
(async) describe(dbname, sparql, optionsopt)
Parameters:
Name |
Type |
Attributes |
Description |
dbname |
string
|
|
|
sparql |
string
|
|
query |
options |
Object
|
<optional>
|
Properties
Name |
Type |
Attributes |
Default |
Description |
options |
Object
|
<optional>
|
|
Properties
Name |
Type |
Attributes |
Default |
Description |
accept |
string
|
<optional>
|
application/json
|
|
|
params |
string
|
<optional>
|
{}
|
|
additionalHandlers |
string
|
<optional>
|
{}
|
|
|
- Source:
(async) dropDb(dbname, optionsopt)
Parameters:
Name |
Type |
Attributes |
Description |
dbname |
string
|
|
|
options |
Object
|
<optional>
|
Properties
Name |
Type |
Attributes |
Default |
Description |
params |
Object
|
<optional>
|
{}
|
|
|
- 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) offline(dbname, optionsopt)
Parameters:
Name |
Type |
Attributes |
Description |
dbname |
string
|
|
|
options |
Object
|
<optional>
|
Properties
Name |
Type |
Attributes |
Default |
Description |
params |
Object
|
<optional>
|
{}
|
|
|
- Source:
(async) online(dbname, optionsopt)
Parameters:
Name |
Type |
Attributes |
Description |
dbname |
string
|
|
|
options |
Object
|
<optional>
|
Properties
Name |
Type |
Attributes |
Default |
Description |
params |
Object
|
<optional>
|
{}
|
|
|
- Source:
(async) queries(dbname, sparqlQueries, optionsopt)
Parameters:
Name |
Type |
Attributes |
Description |
dbname |
string
|
|
|
sparqlQueries |
Array.<string>
|
|
queries |
options |
Object
|
<optional>
|
Properties
Name |
Type |
Attributes |
Default |
Description |
options |
Object
|
<optional>
|
|
Properties
Name |
Type |
Attributes |
Default |
Description |
accept |
string
|
<optional>
|
application/json
|
|
|
params |
string
|
<optional>
|
{}
|
|
additionalHandlers |
string
|
<optional>
|
{}
|
|
|
- Source:
(async) select(dbname, sparql, optionsopt)
Parameters:
Name |
Type |
Attributes |
Description |
dbname |
string
|
|
|
sparql |
string
|
|
query |
options |
Object
|
<optional>
|
Properties
Name |
Type |
Attributes |
Default |
Description |
options |
Object
|
<optional>
|
|
Properties
Name |
Type |
Attributes |
Default |
Description |
accept |
string
|
<optional>
|
application/json
|
|
|
params |
string
|
<optional>
|
{}
|
|
additionalHandlers |
string
|
<optional>
|
{}
|
|
|
- Source:
sparqlClientFor(dbname, options) → {SparqlHttpClient}
Parameters:
Name |
Type |
Description |
dbname |
string
|
|
options |
Object
|
Properties
Name |
Type |
Attributes |
Default |
Description |
headers |
HeadersInit
|
<optional>
|
|
HTTP headers to send with every endpoint request |
user |
string
|
<optional>
|
username set when instantiating the store
|
user used for basic authentication |
password |
string
|
<optional>
|
password set when instantiating the store
|
password used for basic authentication |
endpointUrl |
string
|
<optional>
|
URL generated based on the store endpoint
|
SPARQL Query endpoint URL |
updateUrl |
string
|
<optional>
|
URL generated based on the store endpoint
|
SPARQL Update endpoint URL |
storeUrl |
string
|
<optional>
|
|
Graph Store URL |
fetch |
fetch
|
<optional>
|
nodeify-fetch
|
fetch implementation |
factory |
factory
|
<optional>
|
uses @rdfjs/data-model by default
|
RDF/JS DataFactory |
|
- Source:
Returns:
-
Type
-
SparqlHttpClient
(async) update(dbname, sparql, optionsopt)
Parameters:
Name |
Type |
Attributes |
Description |
dbname |
string
|
|
|
sparql |
string
|
|
query |
options |
Object
|
<optional>
|
Properties
Name |
Type |
Attributes |
Default |
Description |
options |
Object
|
<optional>
|
|
Properties
Name |
Type |
Attributes |
Default |
Description |
accept |
string
|
<optional>
|
application/json
|
|
|
params |
string
|
<optional>
|
{}
|
|
additionalHandlers |
string
|
<optional>
|
{}
|
|
|
- Source: