Defining the pipeline asset type

You can define the pipeline asset types in the same way as you define meter asset types.

<rdf:RDF
         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
         xmlns:owl="http://www.w3.org/2002/07/owl#" 
         xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
         xmlns:swg="http://SunshineWaterGroup#" 
         xmlns:cim="http://iec.ch/TC57/CIM-generic#" 
         xml:base="http://SunshineWaterGroup" >

  <rdf:Description rdf:about="http://SunshineWaterGroup#PipeNetwork">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
    <rdfs:label xml:lang="en">PipeNetwork</rdfs:label>
    <rdfs:subClassOf
     rdf:resource="http://iec.ch/TC57/CIM-generic#RSM_WorkEquipment"/>
    <rdfs:comment>Pipe</rdfs:comment>
  </rdf:Description>

  <rdf:Description rdf:about="http://SunshineWaterGroup#Pipe">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
    <rdfs:label xml:lang="en">Pipe</rdfs:label>
    <rdfs:subClassOf
     rdf:resource="http://SunshineWaterGroup#PipeNetwork"/>
         <swg:color>black</swg:color>
         <swg:width>0.5</swg:width>
    <rdfs:comment>Pipe</rdfs:comment>
  </rdf:Description>

  <rdf:Description rdf:about="http://SunshineWaterGroup#Junction">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
    <rdfs:label xml:lang="en">Junction</rdfs:label>
    <rdfs:subClassOf
     rdf:resource="http://SunshineWaterGroup#PipeNetwork"/>
    <rdfs:comment>Junction</rdfs:comment>
  </rdf:Description>

  <rdf:Description rdf:about="http://SunshineWaterGroup#Reservoir">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
    <rdfs:label xml:lang="en">Reservoir</rdfs:label>
    <rdfs:subClassOf
     rdf:resource="http://SunshineWaterGroup#PipeNetwork"/>
    <rdfs:comment>Reservoir</rdfs:comment>
  </rdf:Description>

  <rdf:Description rdf:about="http://SunshineWaterGroup#Valve">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
    <rdfs:label xml:lang="en">Valve</rdfs:label>
    <rdfs:subClassOf
     rdf:resource="http://SunshineWaterGroup#PipeNetwork"/>
    <rdfs:comment>Valve</rdfs:comment>
  </rdf:Description>

  <rdf:Description rdf:about="http://SunshineWaterGroup#Tank">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
    <rdfs:label xml:lang="en">Tank</rdfs:label>
    <rdfs:subClassOf
     rdf:resource="http://SunshineWaterGroup#PipeNetwork"/>
    <rdfs:comment>Tank</rdfs:comment>
  </rdf:Description>

  <!-- relationshiptype start -->
  <rdf:Description rdf:about="http://SunshineWaterGroup#Connects">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/>
    <rdfs:subPropertyOf
     rdf:resource="http://iec.ch/TC57/CIM-generic#RSM_WorkEquipment.connects_WorkEquipment" />
    <rdfs:label xml:lang="en">Connects</rdfs:label>
         <rdfs:domain rdf:resource="http://SunshineWaterGroup#Valve"/>
         <rdfs:range rdf:resource="http://SunshineWaterGroup#Junction"/>
         <owl:inverseOf rdf:resource="http://SunshineWaterGroup#connected"/>
  </rdf:Description>

  <rdf:Description rdf:about="http://SunshineWaterGroup#Contains">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/>
    <rdfs:subPropertyOf
     rdf:resource="http://iec.ch/TC57/CIM-generic#RSM_WorkEquipment.Contains_Equipment" />
    <rdfs:label xml:lang="en">Contains</rdfs:label>
         <rdfs:domain rdf:resource="http://SunshineWaterGroup#Valve"/>
         <rdfs:range rdf:resource="http://SunshineWaterGroup#PRV"/>
         <owl:inverseOf rdf:resource="http://SunshineWaterGroup#ContainedBy"/>
  </rdf:Description>

  <rdf:Description rdf:about="http://SunshineWaterGroup#PressureProvidedBy">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/>
    <rdfs:label xml:lang="en">Pressure Provided By</rdfs:label>
    <rdfs:domain rdf:resource="http://SunshineWaterGroup#Pipe"/>
    <rdfs:range rdf:resource="http://SunshineWaterGroup#PRV"/>
    <owl:inverseOf rdf:resource="http://SunshineWaterGroup#ProvidePressureFor"/>
  </rdf:Description>
  <!-- relationshiptype end -->

  <!-- propertytype start -->
  <rdf:Description rdf:about="http://SunshineWaterGroup#color">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/>
    <rdfs:label xml:lang="en">color</rdfs:label>
    <rdfs:domain rdf:resource="http://SunshineWaterGroup#Pipe"/>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#String"/>
  </rdf:Description>

  <rdf:Description rdf:about="http://SunshineWaterGroup#width">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/>
    <rdfs:label xml:lang="en">width</rdfs:label>
    <rdfs:domain rdf:resource="http://SunshineWaterGroup#Pipe"/>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#Double"/>
    <cim:hasUnit rdf:resource="http://SunshineWaterGroup#meter"/>
  </rdf:Description>
  <!-- propertytype end -->

</rdf:RDF>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
        xmlns:owl="http://www.w3.org/2002/07/owl#"
        xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
        xml:base="http://SunshineWaterGroup">

  <rdf:Description rdf:about="http://SunshineWaterGroup#PipeNetwork">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
    <rdfs:label xml:lang="en">PipeNetwork</rdfs:label>
    <rdfs:subClassOf
     rdf:resource="http://iec.ch/TC57/CIM-generic#RSM_WorkEquipment"/>
    <rdfs:comment>Pipe</rdfs:comment>
  </rdf:Description>

  <rdf:Description rdf:about="http://SunshineWaterGroup#Pipe">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
    <rdfs:label xml:lang="en">Pipe</rdfs:label>
    <rdfs:subClassOf
     rdf:resource="http://SunshineWaterGroup#PipeNetwork"/>
    <rdfs:comment>Pipe</rdfs:comment>
  </rdf:Description>

  <rdf:Description rdf:about="http://SunshineWaterGroup#Junction">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
    <rdfs:label xml:lang="en">Junction</rdfs:label>
    <rdfs:subClassOf
     rdf:resource="http://SunshineWaterGroup#PipeNetwork"/>
    <rdfs:comment>Junction</rdfs:comment>
  </rdf:Description>

  <rdf:Description rdf:about="http://SunshineWaterGroup#Reservoir">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
    <rdfs:label xml:lang="en">Reservoir</rdfs:label>
    <rdfs:subClassOf
     rdf:resource="http://SunshineWaterGroup#PipeNetwork"/>
    <rdfs:comment>Reservoir</rdfs:comment>
  </rdf:Description>

  <rdf:Description rdf:about="http://SunshineWaterGroup#Valve">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
    <rdfs:label xml:lang="en">Valve</rdfs:label>
    <rdfs:subClassOf rdf:resource="http://SunshineWaterGroup#PipeNetwork"/>
    <rdfs:comment>Valve</rdfs:comment>
  </rdf:Description>

  <rdf:Description rdf:about="http://SunshineWaterGroup#Tank">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
    <rdfs:label xml:lang="en">Tank</rdfs:label>
    <rdfs:subClassOf rdf:resource="http://SunshineWaterGroup#PipeNetwork"/>
    <rdfs:comment>Tank</rdfs:comment>
  </rdf:Description>
</rdf:RDF>