equipment

IRI: http://draft.ottr.xyz/o2/equipment

Available formats

Specification

@prefix : <http://draft.ottr.xyz/o2/equipment#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

http://draft.ottr.xyz/o2/equipment( :Equipment : 1 , :Component : 1 , :hasQuality : 1 , :uom : 1 , "0.0"^^xsd:float : 1 , "99.9"^^xsd:float : 1 )
  ::
  http://draft.ottr.xyz/o2/partOf( :Equipment , :Component )
  http://draft.ottr.xyz/o2/qualityRange( :Component , :hasQuality , :uom , "0.0"^^xsd:float , "99.9"^^xsd:float ) .

Direct dependency templates

Templates instantiated in the body of this template:

Diagram of pattern

RDF graph visualisation of the expanded body:

Pattern

The pattern the template represents, i.e., the expanded template body.

@prefix :      <http://draft.ottr.xyz/o2/equipment#> .
@prefix partOf: <http://www.ontologydesignpatterns.org/cp/owl/partof.owl#> .
@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl:   <http://www.w3.org/2002/07/owl#> .
@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ns1:   <http://draft.ottr.xyz/o2/qualityRange#> .

ns1:qualityDatum  a  owl:ObjectProperty .

:Component  a            owl:Class ;
        rdfs:subClassOf  [ a                   owl:Restriction ;
                           owl:onProperty      :hasQuality ;
                           owl:someValuesFrom  [ a                  owl:Restriction ;
                                                 owl:allValuesFrom  [ a                   owl:Class ;
                                                                      owl:intersectionOf  ( [ a                   owl:Restriction ;
                                                                                              owl:onProperty      ns1:datumUOM ;
                                                                                              owl:someValuesFrom  [ a          owl:Class ;
                                                                                                                    owl:oneOf  ( :uom )
                                                                                                                  ]
                                                                                            ]
                                                                                            [ a                   owl:Restriction ;
                                                                                              owl:onProperty      ns1:datumValue ;
                                                                                              owl:someValuesFrom  [ a                     rdfs:Datatype ;
                                                                                                                    owl:onDatatype        xsd:float ;
                                                                                                                    owl:withRestrictions  ( [ xsd:minInclusive  "0.0"^^xsd:float ]
                                                                                                                                            [ xsd:maxInclusive  "99.9"^^xsd:float ]
                                                                                                                                          )
                                                                                                                  ]
                                                                                            ]
                                                                                          )
                                                                    ] ;
                                                 owl:onProperty     ns1:qualityDatum
                                               ]
                         ] .

ns1:datumUOM  a  owl:ObjectProperty .

:Equipment  a            owl:Class ;
        rdfs:subClassOf  [ a                   owl:Restriction ;
                           owl:onProperty      partOf:hasPart ;
                           owl:someValuesFrom  :Component
                         ] .

ns1:datumValue  a  owl:DatatypeProperty .

Source

Raw source - http://draft.ottr.xyz/o2/equipment:

@prefix owl:       <http://www.w3.org/2002/07/owl#> .
@prefix rdf:       <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd:       <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs:      <http://www.w3.org/2000/01/rdf-schema#> .

@prefix dc:        <http://purl.org/dc/terms/> .
@prefix skos:      <http://www.w3.org/2004/02/skos/core#> .
@prefix vann:      <http://purl.org/vocab/vann/> .

@prefix ottr:         <http://ns.ottr.xyz/templates#> .

@prefix :    <http://draft.ottr.xyz/o2/equipment#> .

# head:
<http://draft.ottr.xyz/o2/equipment> a owl:Ontology , ottr:Template ;
  ottr:withVariables ( :Equipment :Component :hasQuality :uom "0.0"^^xsd:float "99.9"^^xsd:float ) .

# body:

[ ] ottr:templateRef  <http://draft.ottr.xyz/o2/partOf> ;
  ottr:withValues ( :Equipment :Component ) .

[ ] ottr:templateRef <http://draft.ottr.xyz/o2/qualityRange> ;
  ottr:withValues (:Component :hasQuality :uom "0.0"^^xsd:float "99.9"^^xsd:float ) .