# Neo4j IFC-graph import

## How to import

1. Open **Neo4j Browser** or use `cypher-shell`
2. Run `cypher_import.cypher` against your database
3. Explore the graph using the queries at the bottom of the script

## Connection (adjust to your instance)

```
URL:  bolt://localhost:7687
DB:   neo4j
User: neo4j
```

## Schema overview

- **Node labels**: IfcProject, IfcSite, IfcBuilding, IfcBuildingStorey, IfcSlab, IfcMaterial, IfcColumn, IfcBeam, IfcSpace, IfcWall, IfcOpeningElement, IfcDoor, IfcWindow
- **Relationship types**: RelAggregates, RelContainedInSpatialStructure, covers, hasMaterial, RelSpaceBoundary, RelVoidsElement, RelFillsElement
- **Total nodes**: 4234
- **Total edges**: 8969

## Reference

Based on [IFC-graph](https://github.com/marwiss/IFC-graph)
> Zhu, Wu & Lei — *IFC-graph for facilitating building information access and query*, Automation in Construction (2023)
