> For the complete documentation index, see [llms.txt](https://docs.unitlab.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unitlab.ai/api-sdk-cli/hi/sdks/ontology-resources.md).

# ओन्टोलॉजी रिसोर्स

Python SDK से वर्कस्पेस ओन्टोलॉजी की सूची देखें, उन्हें पढ़ें, नई ओन्टोलॉजी बनाएँ और अपडेट करें, फ़िल्टर, फ़ील्ड और ज़रूरी अनुमतियों के साथ।

वर्कस्पेस ओन्टोलॉजी दोबारा इस्तेमाल की जा सकती हैं। किसी ओन्टोलॉजी के साथ बनाए गए प्रोजेक्ट को उसकी अपनी कॉपी मिलती है, इसलिए बाद में वर्कस्पेस ओन्टोलॉजी एडिट करने से मौजूदा प्रोजेक्ट नहीं बदलते।

```python
ontology = client.ontologies.create(
    "Robot cell QA",
    description="Grippers and parts on the inspection line",
    structure=structure,
)

for item in client.ontologies.list(title_like="Robot"):
    print(item.id, item.title, item.last_edited_at)

ontology = client.ontologies.get("ONTOLOGY_ID")
ontology.description = "Adds the Fixture class"
ontology.structure.add_object("Fixture", Shape.BOUNDING_BOX)
ontology.save()
```

`create()` ओन्टोलॉजी को तुरंत उपलब्ध कराता है; कोई पब्लिश चरण नहीं है। `save()` `title`, `description` और `structure` लिखता है और एक नया रिविज़न दर्ज करता है।

## सूची फ़िल्टर <a href="#list-filters" id="list-filters"></a>

| फ़िल्टर                           | किससे मिलान करता है            |
| --------------------------------- | ------------------------------ |
| `title_eq`, `title_like`          | सटीक टाइटल, या उसका हिस्सा     |
| `desc_eq`, `desc_like`            | सटीक विवरण, या उसका हिस्सा     |
| `created_before`, `created_after` | ISO 8601 तारीख़ या टाइमस्टैम्प |
| `edited_before`, `edited_after`   | ISO 8601 तारीख़ या टाइमस्टैम्प |

आर्काइव की गई ओन्टोलॉजी सूची में नहीं आतीं।

## फ़ील्ड <a href="#fields" id="fields"></a>

| फ़ील्ड                              | अर्थ                                                                    |
| ----------------------------------- | ----------------------------------------------------------------------- |
| `id`                                | ओन्टोलॉजी ID; इसे `projects.create()` को `ontology_hash` के रूप में दें |
| `title`, `description`, `structure` | सामग्री                                                                 |
| `data_type`                         | संगतता फ़ैमिली, डिफ़ॉल्ट `image`                                        |
| `created_at`, `last_edited_at`      | समय                                                                     |
| `project_id`                        | तब सेट होता है जब ओन्टोलॉजी किसी प्रोजेक्ट की हो                        |

पढ़ने के लिए कुंजी के पास **View ontology**, और बनाने व सेव करने के लिए **Manage ontologies** अनुमति होनी चाहिए।

## संबंधित पेज <a href="#related" id="related"></a>

[Python में ओन्टोलॉजी बनाना](https://docs.unitlab.ai/api-sdk-cli/hi/sdks/build-ontologies-in-python.md) · [CLI: ओन्टोलॉजी और क्लाउड स्टोरेज](https://docs.unitlab.ai/api-sdk-cli/hi/clis/cli-ontologies-and-cloud-storage.md)
