I have tried to add data to graphs in stardog over HTTP using post requests, but I get the 'INVALID_RDF' error every time. I think that I am getting confused about how to construct the body of the request since the explanation at SPARQL 1.1 Graph Store HTTP Protocol isn't super clear to me - it seems to be saying that we need to place the same RDF payload in the body twice?
It is also unclear to me if the prefix definitions are also meant to be included in the RDF payload or if the payload should consist only of the data/triples. My error response is:
body: {"message":"Expected '<' or '_', found: P [L1]","code":"QEIVR2"}
So it seems to not like the 'PREFIX' start to the body.
I am still new to stardog and any help would be appreciated!