Delete Graph Schema
Empty the Graph of all its contents
:DELETE /db/{graph}/schema
Example Request:
:DELETE /db/rage/schema
HTTP API
Schema
Delete Graph Schema
Empty the Graph of all its contents
:DELETE /db/{graph}/schema
Example Request:
:DELETE /db/rage/schema
Get Node Types
Retrieve the existing Node Types as a list of Strings
:GET /db/{graph}/schema/nodes
Example Request:
:GET /db/rage/schema/nodes
Example Response:
[ "Node", "User" ]
Retrieve the existing Node Type as map of the properties and property types
:GET /db/{graph}/schema/nodes/{type}
Example Request:
:GET /db/rage/schema/nodes/User
Example Response:
{ "age": "integer", "name": "string", "valid": "boolean" }
Create a Node Type
:POST /db/{graph}/schema/nodes/{type}
Example Request:
:POST /db/rage/schema/nodes/User
Delete a Node Type
:DELETE /db/{graph}/schema/nodes/{type}
Example Request:
:DELETE /db/rage/schema/nodes/User
Retrieve the existing Relationship Types as a list of Strings
:GET /db/{graph}/schema/relationships
Example Request:
:GET /db/rage/schema/relationships
Example Response:
[ "KNOWS", "LOVES" ]
Retrieve the existing Relationship Type as map of the properties and property types
:GET /db/{graph}/schema/relationships/{type}
Example Request:
:GET /db/rage/schema/relationships/KNOWS
Example Response:
{ "weight": "double" }
Create a Relationship Type
:POST /db/{graph}/schema/relationships/{type}
Example Request:
:POST /db/rage/schema/relationships/KNOWS
Delete a Relationship Type
:DELETE /db/{graph}/schema/relationships/{type}
Example Request:
:DELETE /db/rage/schema/relationships/KNOWS