My desire is to be able to write an RDF file that when inserted into Dgraph using
dgraph live -r myfile.rdf.gz that no matter how many times I run it, it will not insert duplicates of any of the triples.
So far from what I’ve been reading and testing, it doesn’t seem like there is a way to do this. So my last ditch is to post here and see what you guys think or whether there are alternative suggestions.
The use case is our data is being collected asynchronously and sent to the graph via events. I’d like for each event to generate an RDF file that ends up being fed to
dgraph live but from what I’m seeing I’ll actually have to write code to do a transaction and manual query for each predicate.
On a side note, also not sure what to query to find out which node is the “lead” node. Querying http://127.0.0.1:8080/state doesn’t return anything. It would be nice to have a list of HTTP endpoints in the docs, or maybe I missed it.