cURL
single
curl --request POST \ --url https://neode.ai/api/triples \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "subject": "Elon Musk", "predicate": "founded", "object": "SpaceX", "object_type": "entity", "confidence": 0.95, "source": "https://wikipedia.org/wiki/SpaceX", "graph_id": "550e8400-e29b-41d4-a716-446655440000" } '
{ "success": true, "message": "<string>", "data": { "subject": "<string>", "predicate": "<string>", "object": "<string>", "object_type": "literal", "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "confidence": 0.5, "source": "<string>", "graph_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "index_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "subject_entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "object_entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "created_at": "2023-11-07T05:31:56Z" }, "inserted_count": 123 }
Create a single triple or batch of triples. Entities are automatically created/disambiguated based on subject and object names.
API key for authentication
literal
entity
0 <= x <= 1
Successfully created
A knowledge triple representing a fact as subject-predicate-object
Show child attributes