# A Process Decision-Making Method for Planar Machining of Box-Type Components
## 5 Planar Machining Process Decision for Box-Type Components  
The decision-making process for the planar machining methods and process dimension parameters of box-type components also requires the construction of corresponding rules based on the OWL ontology model. The Semantic Web Rule Language (SWRL) [30] is a rule description language directly applicable to ontologies, and it is independent of any specific reasoning engine. It possesses strong logical expression and intelligent reasoning capabilities. In this study, SWRL is used to construct decision rules for the machining methods and process dimension parameters of box-type components. These rules can be categorized into six types, with some of the rules outlined below; other rules follow a similar structure. * Rule1-1: Part(?x) \(\wedge\) ProductionType(?y) \(\wedge\) hasPT(?x,Lb) \(\
eg\) isCMof(?x, SmM)
* Rule1-2: Parts(?x) \(\wedge\) isPMof(?x,Gcr) \(\wedge\) isCMof(?x,SmM) \(\
eg\) Value_DTG(?x,10) \(\wedge\) isMAGof(?x,G)  
Rule 1-1 describes the relationship between the production type and the casting method of box-type components. If the production type of the box-type component is large-scale production, the casting method will be sand casting with machine molding. Rule 1-2 specifies the selection of blank parameters. If the material of the box-type component is gray cast iron and the casting method is sand casting with machine molding, the dimensional tolerance level of the blank is CT10, and the machining allowance level is G.  
* Rule2-1: Part(?x) \(\wedge\) RoughDatum(?y) \(\wedge\) hasRD(?x,?y) \(\
eg\) hasRD(?x,Sh)
* Rule2-2: Part(?x) \(\wedge\) PType(?y) \(\wedge\) hasPT(?x,Lb) \(\
eg\) hasFD(?x,1f2h)  
Rules 2-1 and 2-2 describe the selection of the locating datums for the planar machining of box-type components. If the type of production of the box-type part is a large batch, the coarse datum is the main axis hole, and the fine datum is a plane and two holes. * Rule3-1: Part(?x) \(\wedge\) isPMof(?x,Gcr) \(\wedge\) isHTof(?x,Na) \(\wedge\) MachinedFlat(?y) \(\wedge\) Value_Ra(?y,?b) \(\wedge\) swrlb:lessThanOrEqual(?b,12.5) \(\wedge\) swrlb:greaterThan(?b,3.2) \(\wedge\) isITof(?x,11) \(\wedge\) hasFPT (?x,PA) \(\wedge\) Value_TG(?y,?b) \(\wedge\) swrlb:lessThanOrEqual(?b,9) \(\wedge\) swrlb:greaterThan(?b,6) \(\
eg\) hasCMP(?y,CMP2) \(\wedge\) hasCMM1(?y,Rm) \(\wedge\) hasCMM2(?y,SFm)  
Rule 3-1 outlines the selection of the machining plan for the box-type component's planar surface. If the material of the box-type component is gray cast iron, the heat treatment is natural aging, the surface roughness range of the machined faces is between 3.2 and 12.5, the accuracy level is 11, and the geometric constraint is parallelism with a range of 6 to 9, the machining plan for the face will be CMP2, with the machining method consisting of rough milling followed by semi-finish milling. * Rule4-1: MachinedFlat(?x) \(\wedge\) Value_SBD(?x,?v) \(\wedge\) swrlb:greaterThan(?v0) \(\wedge\) swrlb:lessThan OrEqual(?v,100) \(\wedge\) Part(?y) \(\wedge\) isMAGof(?y,G) \(\wedge\) Value_DTG(?y,10) \(\
eg\) Value_TMA(?x,3.5)* Rule4-2: MachinedFlat(?x) \(\wedge\) Value_SL(?x,?b) \(\wedge\) swrlb:greaterThan(?b,0) \(\wedge\) swrlb:less ThanOrEqual(?b,300) \(\wedge\) Value_SL(?x,?c)/swrlb:greaterThan(?c,0) \(\wedge\) swrlb:lessThanOr Equal(?c,100) \(\wedge\) hasCMP(?x,CMP2) \(\
eg\) Value_SFMA(?x,1.3)
* Rule4-3: MachinedFlat(?x) \(\wedge\) hasCMP(?x,CMP1) \(\wedge\) Value_TMA(?x,?m) \(\wedge\) Value_SFMA (?x,?n) \(\wedge\) swrlb:subtract(?t,?m,?n) \(\
eg\) Value_RMA(?x,?t)  
Rule 4-1 specifies the total machining allowance for the planar machining of box-type components. If the nominal dimension of the machined face is between 0 and 100 mm, the blank dimensional tolerance level is 10, and the machining allowance level is G, the total machining allowance for the face will be 3.5 mm. Rules 4-2 and 4-3 describe the machining allowances for individual machining stages.