A scientific article was just released, with the title:
“Cypher4BIM: Releasing the Power of Graph for Building Knowledge Discovery”
(I am not allowed to share the link in this forum)
This article gives some examples of how to use cypher to query IFC in a graph database.
The queries in this article assumes, there is only one building in the database. Of course it is possible to create several databases, one database for each building. But it could also make sense to allow multiple buildings in one graph database.
Not only multiple IfcBuilding-objects, but also multiple IfcSite-objects and multiple IfcProject-objects.
Then the next question is how to query the graph when there are multiple IfcProject-objects in the same database. If you for example only want results from a specific IfcProject-object or a specific IfcSite-object or only from a specific IfcBuilding-object.
This has to be done using Cypher.
One easy way to limit the query, would be to filter out a subgraph in a relationship directed FROM the IfcBuilding-object, IfcSite-object or IfcProject-object.
This is the reason why I would like to ask the following question:
Are all entitites/objects in an IFC step file connected somehow (directly or indirectly) to eachother, or to a specific node. For example to the root of the spatial structure: the IfcProject-object …?
When I write “indirectly” I mean relationships in many steps.
Or can an IFC STEP file contain information (i.e. entitites/objects) that are not somehow in a indirect (or direct) relationship to the spatial structure?
…?