Here is the code as I think it should be:
Code:
<!-- Style Class declaration -->
<dm:ClassOfInformationPresentation rdf:about="MyEquipmentLayerStyle">
<rdf:type rdf:resource="&owl;Class"/>
</dm:ClassOfInformationPresentation>
<!-- Style Class definition -->
<tpl:PresentationDetails rdf:about="T07184c90-212f-11e4-8c21-0800200c9a66">
<rdf:type rdf:resource="&owl;Thing"/>
<tpl:hasObject rdf:resource="MyEquipmentLayerStyle"/>
<tpl:valStyle>stroke:#123456; fill:#123456;</tpl:valStyle>
</tpl:PresentationDetails>
<!-- PolyLine declaration -->
<geom:CanonicallyParameterizedPolyline rdf:about="PL1">
<rdf:type rdf:resource="&owl;Class"/>
</geom:CanonicallyParameterizedPolyline>
<!-- Relationship between Polyline and style class -->
<tpl:PresentationOfThing rdf:about="Tb9001f50-212f-11e4-8c21-0800200c9a66">
<rdf:type rdf:resource="&owl;Thing"/>
<tpl:hasObject rdf:resource="PL1"/>
<tpl:hasPresentation rdf:resource="MyEquipmentLayerStyle"/>
</tpl:PresentationOfThing>
<!-- Polyline definition -->
<tpl:CanonicallyParameterisedPolylineTemplate rdf:about="T5f259160-212d-11e4-8c21-0800200c9a66">
<rdf:type rdf:resource="&owl;Thing"/>
<tpl:hasClassified rdf:resource="PL1"/>
<tpl:hasVertexListOfPolyline rdf:parseType="Collection">
<rdf:Description rdf:about="MSP5"/>
<rdf:Description rdf:about="MSP6"/>
<rdf:Description rdf:about="MSP7"/>
<rdf:Description rdf:about="MSP8"/>
</tpl:hasVertexListOfPolyline>
</tpl:CanonicallyParameterisedPolylineTemplate>
</rdf:RDF>
I want to draw your attention to template DefinitionOfShapeOfClassOfIndividual (
http://www.15926.org/templatespecs/CL-SHAPE-06.xml) that Duhwan Mun and myself developed in order to be able to link the world of ClassOfIndividual with the world of geometry.
DefinitionOfShapeOfIndividual (
http://www.15926.org/templatespecs/IN-SHAPE-03.xml) is the counterpart for the definition of the shape of an individual physical object. In case you are interested in these templates, please contact Duhwan for implementation details.