Closed rrooij closed 4 years ago
Can be related to missing nested json encoding or the like? As uploading this with curl works fine.
curl 'http://localhost:6363/testdb/schema' -X POST -H "Content-Type: application/json" --user ':root' -d@payload.json
payload.json:
{"terminus:turtle": "\n@base <http://example.org/> .\n@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\n@prefix foaf: <http://xmlns.com/foaf/0.1/> .\n@prefix rel: <http://www.perceive.net/schemas/relationship/> .\n\n<#green-goblin>\n rel:enemyof <#spiderman> ;\n a foaf:person ; # in the context of the marvel universe\n foaf:name \"green goblin\" .\n\n<#spiderman>\n rel:enemyof <#green-goblin> ;\n a foaf:person ;\n foaf:name \"spiderman\" .\n", "terminus:schema": "http://localhost:6363/testdb/schema", "@type": "terminus:apiupdate"}
Anyone know the status of this issue?
This no longer applies - problem is in original script :root should be base64 encoded
Error
The following error appears when trying to change the schema from the terminus-server API:
Expected result
A clear error message or a changed schema.
How to reproduce
testdb
.