This document describes experiments comparing two approaches to implementing rules for reasoning over building information models (BIM) represented as RDF data. The EYE/N3 approach uses the N3Logic rule language to represent rules that are executed by the EYE reasoning engine. The Stardog approach uses Stardog's native rule syntax to represent rules, which are executed at query time. The document outlines scenarios using sample BIM and rule data, and reports the results of executing rules from both approaches to validate their inferences. It concludes by discussing options for further generalizing rule representation and execution.
4. PieterPAUWELS–pipauwels@ugent.be
AnaROXIN–ana-maria.roxin@u-bourgogne.fr
Input files
◼ 2 IFC files converted into ifcOWL (Turtle format)
facts1.ttl
facts2.ttl
◼ Additional statements
@prefix add: <http://www.additionalelements.org/> .
inst:IfcSpace_1021 add:isConnectedToStair inst:IfcStair_593 .
inst:IfcSpace_983 add:isConnectedToStair inst:IfcStair_593 .
inst:IfcSpace_1021 add:isConnectedToStair inst:IfcStair_613 .
inst:IfcSpace_983 add:isConnectedToStair inst:IfcStair_613 .
◼ An ensemble of 8 rules (IF -> THEN)
4
But, this can
also be
handled
through the
proper
elements in
IFC
5. PieterPAUWELS–pipauwels@ugent.be
AnaROXIN–ana-maria.roxin@u-bourgogne.fr
Example Rule – R#7
• A stair is connected to an object having an exit to ground floor
• The distance from the stair to the exit is not greater than 30000IF
• The stair is a valid exitTHEN
5
PREFIX kba: <http://koreanbuildingcode.org/KR-BA-34-01/>
PREFIX math: <http://www.w3.org/2000/10/swap/math#>
PREFIX add: <http://www.additionalelements.org/>
IF {
?s add:isConnectedToStair ?obj .
?obj kba:hasExitOnGroundFloor "true" .
?s kba:hasEscapeDistanceToStaircase ?value .
?value math:notGreaterThan 30000 .
}
THEN {
?s kba:isValid "true" .
}