Not exactly .. which is why I published an example.
The way that I figured out how to use the endpoint was:
- I downloaded the Open API metadata: https://stardog-union.github.io/http-docs/openapi.json
- I modified it to accept security credentials, as described here: Creating Swagger UI Wrapper for API Access to Stardog Cloud Server
- When I went to call the function, I (eventually) noticed that it used a "multipart/form-data" MIME type (first image)
- So I used POSTMAN to set up the call (2nd image)
- Once that succeeded, I used POSTMAN's code-generation capabilities to generate a Node script .. and then adapted that to the Typescript example above.
In the end it was simple, but it took a few guesses and false starts to stumble my way to success.
Since this seems like a particularly handy ETL method, I figured it was worth publishing a simple example to save fellow travelers some time.
Our use case involves ingesting event records from Veeva Vault QMS, so this method seems almost perfect for building a "Quality Event KG" on an event driven basis .. i.e. our agent subscribes to the event system, and stuffs mapped records into the KG upon receipt .. basically a "one-hop" ingestion pipeline with declarative transformation of content (via SMS) .. pretty much as elegant as it gets.