█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

Open Ontologies

किसी production ontology में बदलाव की योजना बनाएं, लागू करें और वापस लें, साथ में blast radius रिपोर्ट और एक derivation certificate जिसे Lean 4 checker verify कर सके

RAG Frameworks & Platformsओपन सोर्स
ताज़ा
v2.1.0
अपडेट किया गया
23 अक्टू॰ 2026
भाषा
Rust
लाइसेंस
MIT

नया क्या है

v2.1.023 अक्टू॰ 2026

The shacl, enforce, unpack and monitor commands now exit non-zero on a failing verdict (0 pass, 1 fail, 2 not determined), and plan and drift exit 1 on an error, so they can gate CI.

संक्षेप में

Open Ontologies क्या है?

Open Ontologies किसी production ontology में बदलाव की योजना बनाएं, लागू करें और वापस लें, साथ में blast radius रिपोर्ट और एक derivation certificate जिसे Lean 4 checker verify कर सके. यह Retrieval & Knowledge (RAG) टूल्स की RAG Frameworks & Platforms श्रेणी में आता है; ओपन सोर्स है, Rust में लिखा गया है और MIT लाइसेंस के तहत है।

अपडेट किया गया Markdown वर्शन ↗

सारांश

Open Ontologies, Rust में लिखा एक ontology engine है जो एक ही binary के रूप में आता है। इसका काम उस पल से जुड़ा है जब production ontology में कोई बदलाव लाइव होता है: आप बदलाव की योजना बनाते हैं, लागू करने से पहले हर असर देखते हैं, फिर उसे लागू करते हैं, drift पर नज़र रखते हैं और गलत निकलने पर rollback करते हैं। README इसे ontologies के लिए Terraform जैसा बताता है, फ़र्क बस इतना है कि plan बदलाव के text को नहीं, उसके अर्थ को जांचता है। इसका मुख्य उदाहरण एक-लाइन का `rdfs:domain` बदलाव है, जिसे text diff और shape diff दोनों हानिरहित मानते हैं, जबकि plan OWL RL rule table के तहत 901 नए असर दिखाता है। यह साफ़ तौर पर ontology editor नहीं है: hierarchies आप Protégé में बनाते हैं और बदलाव पर Open Ontologies चलाते हैं।

इसका खास हिस्सा proof है। जब engine OWL या RDFS पर reasoning करता है, तो वह एक derivation certificate लिखता है: दो tab-separated फ़ाइलें, asserted triples और हर व्युत्पन्न step के लिए एक पंक्ति, जिसमें rule और उसकी premises लिखी होती हैं। core Lean 4 में लिखा एक अलग checker (`oo-cert`, और rule tables के लिए `oo-horn`) हर पंक्ति को दोबारा derive करता है और या तो उसे किसी नामित soundness theorem के तहत स्वीकार करता है, या exit 1 के साथ बाहर निकलता है और उस पंक्ति व rule का नाम बताता है जो सही नहीं है। यानी जाली निष्कर्ष खारिज हो जाता है। checker का engine से कोई कोड साझा नहीं होता, उसे network की ज़रूरत नहीं होती, और कोई reviewer CI में या कोई auditor महीनों बाद उसे चला सकता है। जब आप अपने SWRL, RIF Core या Horn rules देते हैं, तो verdict शब्द `entailed` से बदलकर `entailed_under_supplied_rules` हो जाता है, ताकि certificate आपके rules को तथ्य नहीं, बल्कि मान्यताओं (assumptions) के रूप में दर्ज करे।

Diagram of ies-core.ttl reasoned over and proved: on the left the file produces a certificate checked by Lean 4 oo-cert and Isabelle/HOL while provers Vampire, E, Z3 and Mace4 give opinions; on the right a graph of 233 ontology terms with one forged edge marked in red; a legend counts 426 asserted, 259 certified, 1 rejected and 1 unasked.
One ontology reasoned over: 259 derived triples certified, one forged line refusedOpen Ontologies README ↗

इस loop के आसपास SHACL validation, satisfiability और inconsistency checks हैं, जो finite model या refutation लौटाते हैं। loaders CSV, JSON, XML, YAML, XLSX, Parquet, PostgreSQL और DuckDB को RDF में बदलते हैं, और TPTP, CLIF, SMT-LIB व LADR फ़ॉर्मेट में theorem provers के लिए export भी होता है। retrieval के लिए यह जांच सकता है कि graph का कोई हिस्सा अब भी हर उस दावे को entail करता है या नहीं जिस पर कोई जवाब टिका है, और किसी signature पर ऐसे locality modules निकाल सकता है जिनमें कोई entailment नहीं खोता। engine MCP server के रूप में चलता है, इसलिए Claude, Cursor और अन्य MCP clients बातचीत में इसके `onto_*` tools चला सकते हैं। यह RDF और SPARQL 1.1 के लिए Oxigraph, state और lineage के लिए SQLite, और checkers के लिए Lean 4 पर बना है; एक शुद्ध Python engine, `open-ontologies-lite`, ऐसे certificates बनाता है जिन्हें वही Lean binaries verify करती हैं। engine MIT लाइसेंस के तहत है और Tesseract Semantics के Fabio Rovai द्वारा maintain किया जाता है, जो teams के लिए hosted version बेचती है।

यह क्या करता है

  • लाइव ontologies के लिए change lifecycle: plan, blast radius, risk score, locked IRIs, apply, monitor, drift और rollback
  • OWL और RDFS reasoning जो derivation certificate लिखता है, जिसे core Lean 4 में बना एक स्वतंत्र checker verify करता है और जाली पंक्तियों को खारिज करता है
  • आपके अपने SWRL, RIF Core या Horn rules, अलग verdict शब्द के साथ, ताकि supplied rules कभी मानक rules बनाकर पेश न हों
Side-by-side graphs of the two HQDM ontology files: the RDFS file on the left with 23 undeclared terms and 12 bad range declarations marked red, the OWL file on the right with 39 unsatisfiable classes marked red, and a legend contrasting what a reasoner cannot see with what only a reasoner can see.
Auditing both HQDM renderings: one is not well formed, the other is not coherentOpen Ontologies README ↗
  • SHACL validation, जांचे गए finite model के साथ satisfiability, और inconsistency के लिए refutations
  • CSV, JSON, XML, YAML, XLSX, Parquet, PostgreSQL और DuckDB से RDF में data loaders, साथ ही provers के लिए TPTP / CLIF / SMT-LIB / LADR export
  • Claude Code, Claude Desktop, Cursor, Windsurf, Zed और VS Code के लिए `onto_*` tools उपलब्ध कराने वाला MCP server

शुरू करें

Open Ontologies Apple Silicon macOS और x86_64 Linux के लिए prebuilt binaries, एक GHCR image, और Rust source build के रूप में आता है। README का एक-मिनट वाला demo तीन-triple वाला ontology लोड करता है, उस पर certificate के साथ reasoning करता है, और repository के Lean checker से certificate की जांच करता है।

Binary इंस्टॉल करें

अपने platform के लिए release binary डाउनलोड करें (यहां Linux दिखाया गया है), या Docker image pull करें।

bashbash
curl -LO https://github.com/fabio-rovai/open-ontologies/releases/latest/download/open-ontologies-x86_64-unknown-linux-gnu
chmod +x open-ontologies-x86_64-unknown-linux-gnu && mv open-ontologies-x86_64-unknown-linux-gnu /usr/local/bin/open-ontologies

# or
docker pull ghcr.io/fabio-rovai/open-ontologies:latest

एक छोटा ontology लिखें

bashbash
mkdir /tmp/oo-demo && cd /tmp/oo-demo
cat > coffee.ttl <<'EOF'
@prefix ex:   <http://example.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

ex:Espresso rdfs:subClassOf ex:Coffee .
ex:Coffee   rdfs:subClassOf ex:Drink .
ex:myCup    a               ex:Espresso .
EOF

उसे लोड करें और certificate के साथ reasoning करें

Storage डिफ़ॉल्ट रूप से in-memory होता है, इसलिए persistent mode सेट करें, वरना reason step खाली store से शुरू होगा। `--data-dir` एक flag है, environment variable नहीं।

bashbash
export OPEN_ONTOLOGIES_STORAGE_MODE=persistent
open-ontologies --data-dir /tmp/oo-demo/store load coffee.ttl
open-ontologies --data-dir /tmp/oo-demo/store reason --profile rdfs --certificate ./cert

Lean 4 में certificate की जांच करें

repository की lean/ directory से checkers build करें और run को verify करें। derivations.tsv में एक जाली पंक्ति डालने पर वही command exit 1 के साथ रुकेगा और rule का नाम बताएगा।

bashbash
cd lean && lake build
lake exe oo-cert /tmp/oo-demo/cert/asserted.tsv /tmp/oo-demo/cert/derivations.tsv
# {"ok":true,"asserted":3,"derivations":3,"theorem":"OOCert.certificate_sound"}

इसे Claude से जोड़ें

MCP server को ~/.claude/settings.json (Claude Code) या claude_desktop_config.json (Claude Desktop) में जोड़ें और client restart करें; onto_* tools दिखने लगेंगे। `serve` stdin/stdout पर JSON-RPC बोलता है, इसलिए client का इंतज़ार करते हुए वह terminal में निष्क्रिय दिखता है।

jsonjson
{
  "mcpServers": {
    "open-ontologies": {
      "command": "/path/to/open-ontologies",
      "args": ["serve"]
    }
  }
}

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • production ontology में बदलाव शिप होने से पहले उसकी समीक्षा करें, उसके असर, blast radius और rollback path के साथ
  • किसी auditor या downstream agent को ऐसा certificate दें जिसे वे engine या ontology लिखने वाले model पर भरोसा किए बिना दोबारा जांच सकें
  • Claude या Cursor को MCP tools के जरिए ontology बनाने, validate करने और उस पर reasoning करने दें, free text के बजाय
  • जांचें कि knowledge graph का retrieval slice अब भी उन दावों को entail करता है या नहीं जिन पर कोई जवाब टिका है
Three panels: a crosswalk whose exactMatch claims are downgraded to broadMatch after checking entailments, contexts that disagree reasoned as separate modules, and a matrix product recomputed and certified in Lean.
Three claims checked against real runs: crosswalk match types, disagreeing contexts and a certified numberOpen Ontologies README ↗

How Open Ontologies compares

Open Ontologies alongside other open-source rag frameworks & platforms tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
Dify★ 162kLLM और RAG ऐप विज़ुअल कैनवास पर बनाने के लिए ओपन सोर्स प्लेटफ़ॉर्म
graphify★ 156kकोड, डॉक्स, PDF और इमेज वाले फ़ोल्डर को एक ऐसे नॉलेज ग्राफ़ में बदलें जिसमें query की जा सके
RAGFlow★ 95.1kगहरी डॉक्यूमेंट समझ और स्रोत से जुड़े, ट्रेस किए जा सकने वाले उद्धरणों वाला ओपन सोर्स RAG engine
Context7★ 65.8kनवीनतम, वर्ज़न-विशिष्ट लाइब्रेरी डॉक्स सीधे आपके कोडिंग एजेंट के प्रॉम्प्ट में
Pathway★ 61.9kडेटा बदलने के साथ-साथ अपडेट रहने वाली Python ETL और RAG पाइपलाइन
LightRAG★ 41kग्राफ़-आधारित RAG, जो आपके दस्तावेज़ों को क्वेरी योग्य नॉलेज ग्राफ़ में बदल देता है
PageIndex★ 40.9kVectorless, reasoning-based RAG जो लंबे डॉक्युमेंट से tree index बनाता है
Open Ontologies★ 3.2kकिसी production ontology में बदलाव की योजना बनाएं, लागू करें और वापस लें, साथ में blast radius रिपोर्ट और एक derivation certificate जिसे Lean 4 checker verify कर सके