Introduction
"Ontology is the map that lets AI understand what your business actually means. Building that map has always required fighting with dense standards and steep tooling."
This is article #183 in the "One Open Source Project a Day" series. Today's project is Ontology Playground — Microsoft's open-source zero-backend web tool for learning and designing ontologies, with a specific focus on Microsoft Fabric IQ.
Ontology appears constantly across knowledge engineering, semantic web, and enterprise AI domains, but it's notoriously hard to get started with. OWL, RDF, class hierarchies, property constraints — layers of standards and terminology that stay abstract without hands-on tooling. Ontology Playground converts those abstractions into clickable, draggable, live-preview visual graphs, paired with structured courses that go from fundamentals to working domain ontologies.
Zero backend. Zero server. Opens in any browser. 2,300 Stars. MIT license.
What You'll Learn
- What ontology is and how it relates to knowledge graphs
- What Microsoft Fabric IQ does, and the role ontology plays in it
- Four core features: catalogue, designer, school, embeddable widget
- How to export ontologies in RDF/OWL format for Fabric IQ
- The embeddable widget: interactive ontology diagrams on any webpage with one line of HTML
Prerequisites
- Basic knowledge graph concepts (nodes, edges, relationships)
- Familiarity with data modeling thinking (entities, attributes, relationships)
- No prior RDF/OWL experience needed — that's exactly what the Playground teaches
What Is Ontology
In philosophy, ontology studies "what exists." In computer science, an ontology is a formal description of knowledge in a domain: what types of entities exist, what properties they have, and what relationships connect them.
A retail domain ontology might describe:
- Classes: Product, Order, Customer, Warehouse
- Properties: Product has
price(data property), OrderplacedByCustomer (object property) - Constraints: An Order must correspond to at least one Customer
Customer ──[placedBy]──→ Order ──[contains]──→ Product
↑ ↑ ↑
[Person] [Transaction] [StockItem]This isn't a database schema. It captures business semantics: not just "these tables and columns exist," but "what these entities mean in business logic and what their relationships imply."
Ontology and AI
AI systems — especially LLM-driven agents — need more than data to understand business problems. They need semantic context:
- "Order cancellation rate dropped 5%" requires the AI to know what an "order" is, what "cancellation" means as an operation, and 5% relative to what baseline
- Without a semantic layer, the AI guesses or asks the user to re-explain in every conversation
That's the problem Microsoft Fabric IQ addresses.
Microsoft Fabric IQ: Semantic Foundation for Enterprise AI
Fabric IQ is the semantic layer in the Microsoft Fabric data platform. It links raw data lake content to business ontologies so AI agents can understand business meaning when querying data — not just execute SQL.
Without Fabric IQ:
AI Agent: "Show me high-value customer orders from the last 30 days"
→ AI needs to understand what "high-value customer" means
(Is there a threshold? A customer tier table?)
→ Guesses or asks the user to explainWith Fabric IQ + ontology:
AI Agent: "Show me high-value customer orders from the last 30 days"
→ Queries the ontology: CustomerTier.HIGH_VALUE defined as annual spend > $10,000
→ Generates the correct query directly, no user explanation requiredOntology Playground is the tool for learning how to design and export ontologies for Fabric IQ.
Core Features
1. Ontology Catalogue
Six industry domains, pre-built and ready to explore:
| Domain | Ontology | Entities | Relationships |
|---|---|---|---|
| Retail | Fourth Coffee | 6 | 7 |
| E-Commerce | Online Retail | 5 | 6 |
| Healthcare | Clinical System | 5 | 6 |
| Finance | Banking & Finance | 5 | 6 |
| Manufacturing | Industry 4.0 | 5 | 5 |
| Education | University System | 5 | 6 |
Each ontology has a shareable deep-link URL. Open one and you get an interactive graph — click nodes to inspect properties, follow edges to explore relationships.
2. Visual Designer
Drag-and-drop design interface:
- Node operations: add classes, set names, add data properties (field + type)
- Relationship operations: drag connections to create object properties, set relationship names and cardinality constraints
- Live validation: structural errors shown in real time as you design
- Undo/redo: 50 history levels
- Five domain starter templates: avoid blank-canvas paralysis — pick the closest template and modify
Export to RDF/XML (.rdf or .owl) in exactly the format Microsoft Fabric IQ expects. Round-trip fidelity is verified by automated tests.
3. Ontology School: Nine Structured Courses
Fundamentals track (6 articles):
- What ontology is and why enterprises need it
- RDF and OWL standards introduction
- Microsoft Fabric IQ overview
- Ontology design patterns
- From data model to ontology
- Hands-on lab: 15-entity retail ontology from scratch
Seven domain learning paths: Four progressive articles each, from concepts to hands-on practice, with live embedded graphs in every article.
Interactive features:
- Presentation/slides mode for every article (classroom-ready)
- Multiple-choice quizzes with immediate feedback embedded throughout
4. Embeddable Widget
One line of HTML puts an interactive ontology graph on any webpage:
<!-- Embed the Healthcare ontology from the catalogue -->
<script
src="https://microsoft.github.io/Ontology-Playground/widget.js"
data-ontology-id="healthcare-clinical"
data-theme="dark"
></script>Widget options:
data-theme:darkorlightdata-ontology-id: catalogue item IDdata-ontology-url: external RDF file URLdata-ontology-b64: base64-encoded inline RDF
Useful for embedding ontology diagrams into documentation, blog posts, or internal wikis.
Tech Stack
The entire application is pure static — zero server, zero backend:
| Layer | Technology |
|---|---|
| Framework | React 19 + TypeScript 5 |
| Graph rendering | Cytoscape.js (fcose layout) |
| State management | Zustand |
| Build tool | Vite |
| Animation | Framer Motion |
| Markdown | marked (build-time) |
RDF handling: a custom parser and serializer with full round-trip fidelity for OWL classes, datatype properties, object properties, and cardinality constraints.
Deployment
GitHub Pages (Simplest)
# Fork the repository
# Go to Settings > Pages > enable GitHub Actions deployment
# Every push to main deploys automaticallyAzure Static Web Apps
A GitHub Actions workflow is already configured in the repo. Connect your Azure SWA resource to the GitHub repository and it deploys on push.
Local Development
git clone https://github.com/microsoft/Ontology-Playground
cd Ontology-Playground
npm install
npm run dev
# Open http://localhost:5173Optional: AI Ontology Builder
Enable via environment variable (requires Azure OpenAI):
VITE_ENABLE_AI_BUILDER=trueWith this on, describe a business domain in natural language and the AI drafts an initial ontology structure. Then refine it in the visual designer.
One-Click Catalogue Contributions
GitHub device-flow sign-in unlocks a "submit to catalogue" flow: the app forks the repo, creates a branch, commits your RDF file and metadata, and opens a pull request — all automatically.
Resources
- 🌟 GitHub: microsoft/Ontology-Playground
- 🌐 Live Demo: microsoft.github.io/Ontology-Playground
- 📖 Microsoft Fabric IQ: Microsoft Fabric documentation
Summary
Ontology Playground solves a specific onboarding friction: ontology concepts aren't intrinsically hard, but the lack of immediately usable hands-on tooling has always been the real barrier. RDF/OWL specification documents are dense. Professional ontology editors like Protégé are complete but steep. Opening a browser, dragging out a retail ontology in five minutes, and exporting valid RDF — that difference matters significantly for learners.
The broader context: as AI agents deploy deeper into enterprise settings, "how do we make AI correctly understand business semantics" becomes a genuine engineering problem, not a theoretical one. Fabric IQ is Microsoft's architectural answer. Ontology Playground is the learning path to getting there.
If you're building on Microsoft Fabric for enterprise data, or if you're interested in semantic web and knowledge graphs but unsure where to start, this is worth an afternoon.
Explore PrimeSkills — A marketplace for handpicked AI Agents and skills. Each is validated in real enterprise workflows, stripping away hype and keeping only what truly works.
Welcome to my Homepage for more useful insights and interesting products.