IfcOpenShell Python Skill for Graph-RAG IFC Parser

Parse IFC files into geometry-enriched NetworkX knowledge graphs using IfcOpenShell.

1|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/469-ragtag/rag-tag --skill ifcopenshell-python-skill-for-graph-rag-ifc-parser
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: IfcOpenShell Python Skill for Graph-RAG IFC Parser
Source: https://github.com/469-ragtag/rag-tag/tree/main/.agents/skills/ifcopenshell-python
Command: npx skills add https://github.com/469-ragtag/rag-tag --skill ifcopenshell-python-skill-for-graph-rag-ifc-parser

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ifcopenshell, networkx, numpy, pydantic-ai, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a robust Python-based solution for parsing Industry Foundation Classes (IFC) files, enabling the transformation of complex BIM data into queryable graph structures for advanced analysis and AI integration.

Core Features & Use Cases

  • IFC Parsing: Read and interpret IFC files using the IfcOpenShell library.
  • Graph Representation: Convert IFC entities and relationships into a NetworkX graph.
  • Geometry Extraction: Access and process 3D geometry data from IFC models.
  • Use Case: Integrate IFC data into a Graph RAG system to enable natural language queries about building components, their properties, and spatial relationships.

Quick Start

Use the IfcOpenShell Python Skill to parse the attached IFC file and build a NetworkX graph representation of its contents.

Frequently Asked Questions about IfcOpenShell Python Skill for Graph-RAG IFC Parser

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I parse IFC files and extract geometry for BIM data analysis in Python?

Parsing IFC files and extracting geometry for BIM data analysis in Python involves reading the IFC model using the IfcOpenShell library to access element properties, relationships, and 3D spatial geometry. This process transforms complex building data into queryable structures.

What is the best way to convert IFC BIM data into a knowledge graph?

Converting IFC BIM data into a knowledge graph is best achieved by using IfcOpenShell to parse entities and relationships, then mapping them into a NetworkX graph structure. This geometry-enriched representation enables semantic and spatial querying for digital twins.

Can I use NetworkX and IfcOpenShell to query spatial relationships in BIM models?

You can use IfcOpenShell with NetworkX to query spatial relationships in BIM models by transforming IFC entities and their spatial geometry into a graph structure. This allows detailed extraction and querying of how building components relate.

Does this IFC parsing approach support integration with a Graph RAG system?

This IFC parsing approach supports integration with a Graph RAG system by providing geometry-enriched knowledge graphs built from IFC files. Facilitating semantic and spatial querying of BIM data enables AI-driven analysis and natural language queries.

How do I extract element properties and relationships from an IFC file using Python?

Extracting element properties and relationships from an IFC file using Python requires the IfcOpenShell library to interpret the model. It supports detailed extraction of element attributes and their connections, which can then be structured as graph nodes and edges.

What dependencies do I need to build a graph from IFC data for digital twins?

Building a graph from IFC data for digital twins requires dependencies including ifcopenshell for parsing, networkx for graph representation, numpy for geometry processing, and pydantic-ai for AI integration. These tools collectively enable spatial querying and analysis.