I created a simple 6 line test.rdf file:
{
set {
_:test_1 <dgraph.type> "Contact" .
_:test_1 <Contact.firstName> "Test" .
}
}
curl -H "Content-Type: application/rdf" "localhost:8080/mutate?commitNow=true" -XPOST --data-binary '@.notes/test.rdf'
and it worked successfully:
{"data":{"code":"Success","message":"Done","queries":null,"uids":{"test_1":"0x2713"}},"extensions":{"server_latency":{"parsing_ns":18100,"processing_ns":223770300,"assign_timestamp_ns":927500,"total_ns":224831800},"txn":{"start_ts":10163,"commit_ts":10164,"preds":["1-Contact.firstName","1-dgraph.type"]}}}
I am still getting the same error as before though when trying to process import.rdf in the same file.