Forum Discussion
How to interact programatically with Ontology?
- 5 months ago
Hi jaryszek,
The API you mentioned for creating an ontology item in Microsoft Fabric does exist, but it’s important to note its current capabilities and limitations. The Create Ontology API is part of the Fabric REST API, introduced for Fabric IQ scenarios, and is currently in preview or limited rollout. Right now, it mainly allows you to provision the ontology item within a workspace, similar to creating other Fabric resources like a Lakehouse or Warehouse.
Currently, this API does not support full programmatic management of ontology content. Actions such as creating or updating concepts, defining relationships, managing mappings, or editing the internal structure are not available through public APIs yet. So, while you can create the ontology artifact programmatically, detailed modeling and management still need to be done in the Fabric UI.
API availability can also depend on tenant settings and Fabric IQ feature rollout. For automation, you can use Fabric REST APIs to manage related assets such as semantic models, metadata, and lineage, but ontology configuration still requires the UI. Full programmatic control of ontology structure is not generally available at this time.
Thankn you.
Hi jaryszek,
This will depend on what you mean by Ontology. If it’s part of a specific platform, you can usually interact programmatically using that platform’s APIs and endpoints.
For Microsoft Fabric, there isn’t a separate ontology object available. In most cases, ontology refers to the semantic layer, including semantic models, relationships, business metadata, or governance concepts. You can interact programmatically through:
Fabric / Power BI REST APIs (for managing items, metadata, and lineage)
XMLA endpoint (for working with semantic models via TOM or external tools)
Admin & Metadata scanning APIs (for catalog, lineage, and governance)
Microsoft Purview integration (for business glossary or governed metadata)
There isn’t a dedicated “ontology service” in Fabric, so you generally work with the semantic model, metadata, or governance layers instead.
If you mean ontology in a broader sense (such as OWL/RDF-based semantic web or knowledge graph ontologies), interaction is typically done using standards like SPARQL, graph APIs, or specialized tools.
Ultimately, programmatic access depends on the specific product or service hosting the ontology. If you specify the platform or tool, it will be easier to provide targeted guidance.
Thank you and Continue using Microsoft Fabric Community Forum.
thanks, I am refering to Fabric IQ Ontology.
Best,
Jacek