1. Create a World
Every application begins with an isolated persistent Semantic World.
Build applications on persistent Semantic Worlds using Cosinia APIs and SDKs.
Cosinia lets applications create Semantic Worlds, observe knowledge, and perform deterministic Semantic Retrieval.
Every application begins with an isolated persistent Semantic World.
Submit natural language or structured semantic observations.
Query deterministic semantic knowledge from the Semantic World.
npm install cosiniaCosinia supports simple SDK integration for applications and direct REST integration for infrastructure and advanced systems.
The fastest way to integrate Cosinia into an application.
Direct protocol access for infrastructure, pipelines, and enterprise systems.
Use the SDK to create a world, observe knowledge, and retrieve semantic results through one interface.
import Cosinia from "cosinia";
const cosinia = new Cosinia({
apiKey: "YOUR_API_KEY"
});
const world = await cosinia.world("my-world");
await world.observe(
"John gave Mary a book."
);
const result = await world.retrieve(
"Who received the book?"
);
console.log(result);For direct integration, Cosinia exposes REST endpoints for world management, observation, semantic retrieval, and API access.
| Endpoint | Purpose |
|---|---|
| POST /worlds | Create or manage Semantic Worlds |
| POST /observe | Submit observations |
| POST /retrieve | Perform Semantic Retrieval |
| GET /api-keys | Manage API credentials |
curl https://api.cosinia.com/observe \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"world_id": "my-world",
"text": "John gave Mary a book."
}'| Concept | Meaning |
|---|---|
| Semantic World | An isolated persistent semantic universe. |
| Observation | A semantic assertion submitted into a Semantic World. |
| Semantic Compiler | Transforms observations into deterministic semantic structures. |
| Semantic Retrieval | Returns structured knowledge from persistent semantic memory. |
| API Key | Authenticates access to Semantic Worlds. |
Cosinia is designed to extend beyond predefined vocabularies and single-language use cases. The deterministic Semantic Compiler is contract-based, allowing organizations to introduce domain-specific semantics without changing the underlying engine.
Cosinia is designed around isolated Semantic Worlds and deterministic computation. Enterprise deployments can extend this model with private infrastructure, secure execution, governance, and dedicated runtime environments.
You've seen how Cosinia integrates into applications. Continue with the complete documentation or explore the platform interactively in Semantic Studio.
Browse SDK guides, REST APIs, Semantic Protocol specifications, and enterprise integration guides.