Skip to content

Commit

Permalink
Merge pull request #95 from TriplyDB/#7826-merge-graph
Browse files Browse the repository at this point in the history
#7826 merge graph
  • Loading branch information
TanjaRonzhina authored Oct 30, 2023
2 parents a84b426 + 9c5e3f7 commit 29e407b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/triply-api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ Upper-case letter words in json after `-d` must be replaced by the following val

### Upload data to a dataset


You can upload a data file via the Triply API. You need to [use the API Token](#using-the-api-token) and send an HTTP POST request with data specifying the local file path.
The list of supported file extensions can be checked in [Adding data: File upload](../triply-db-getting-started/uploading-data/#adding-data-file-upload) documentation.

Expand All @@ -119,6 +120,14 @@ Upper-case letter word after `-F` must be replaced by the following value:

- `FILENAME` :: path to the local file, for example `example.ttl`.


You can upload data to an existing dataset without overwriting it by adding and setting the `mergeGraphs` functionality to `true`, like in the example below.

```sh
curl -H 'Authorization: Bearer TOKEN' -X POST https://api.INSTANCE/datasets/ACCOUNT/DATASET/jobs -F file=@FILENAME -F mergeGraphs=true

```

## Accounts

Information about TriplyDB accounts (organizations and users) can be retrieved from the following API path:
Expand Down
2 changes: 2 additions & 0 deletions docs/triply-etl/publish/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ The following options can be specified to configure the destination behavior:
<dd>A configuration object describing a TriplyDB instance that is different from the one associated with the current API Token. (See the section on <a href="#configuring-multiple-triplydb-instances">configuring multiple TriplyDB instance</a> for more information.)</dd>
<dt><code>truncateGraphs</code></dt>
<dd>Whether to delete all graphs in the dataset before uploading any graphs from TriplyETL. Notice that this will also remove graphs that will not be re-uploaded by TriplyETL. The default value is <code>false</code>.</dd>
<dt><code>mergeGraphs</code></dt>
<dd>Whether the results of the new graph should be added to the old graph without overwriting it. The default value is <code>false</code>.</dd>
</dl>


Expand Down

0 comments on commit 29e407b

Please sign in to comment.