Unlike with Amazon S3, it is currently not possible to load data to Stardog directly from Azure Blob storage. However, Azure Blob storage has a REST API you can query, and you can chain a call to that to a call to Stardog's REST API to add your data.
First, make sure your data is stored in a data format that Stardog supports. You can find the list of supported formats here.
Next, run the following command:
curl -H "Authorization: Bearer <Azure Blob Storage Token>" "<Azure Blob URL>" | \
curl -u username:password -X POST \
-H "Content-Type: text/turtle" \
-H "Content-Encoding: gzip" \
--data-binary @- http://localhost:5820/myDatabase?graph=urn:graph
- The first
curl
command fetches the data from Azure Blob Storage. Replace<Azure Blob Storage Token>
and<Azure Blob URL>
with your actual Azure token and URL. - The output from the first
curl
is piped into the secondcurl
command using the|
symbol. --data-binary @-
: The@-
tellscurl
to read data fromstdin
(which is being piped in from the firstcurl
command).- This command assumes your data is stored in Azure as turtle compressed with GZIP. Remove the
"Content-Encoding"
line if your data is not compressed, and modify the"Content-Type"
line if your data is not in the turtle format.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article