Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /topoteretes_cognee /cognee /modules /ontology /models.py
| from typing import Any | |
| class AttachedOntologyNode: | |
| """Lightweight wrapper to be able to parse any ontology solution and generalize cognee interface.""" | |
| def __init__(self, uri: Any, category: str): | |
| self.uri = uri | |
| self.name = self._extract_name(uri) | |
| self.category = category | |
| def _extract_name(uri: Any) -> str: | |
| uri_str = str(uri) | |
| if "#" in uri_str: | |
| return uri_str.split("#")[-1] | |
| return uri_str.rstrip("/").split("/")[-1] | |
| def __repr__(self): | |
| return f"AttachedOntologyNode(name={self.name}, category={self.category})" | |
Xet Storage Details
- Size:
- 621 Bytes
- Xet hash:
- b0c2b8770fa977fcd84d601c9eb4ca6bace6b975636b69d5339f328c6d76f5b2
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.