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

qudt:CurrencyUnit a rdfs:Class,
        owl:Class,
        sh:NodeShape ;
    rdfs:label "Currency Unit" ;
    dcterms:description """
  Currency Units have their own subclass of unit because:
   (a) they have additional properties such as 'country' and
   (b) their URIs do not conform to the same rules as other units.
  """^^rdf:HTML ;
    rdfs:isDefinedBy <http://qudt.org/3.2.1/schema/qudt>,
        <http://qudt.org/3.2.1/schema/shacl/qudt> ;
    rdfs:subClassOf [ a owl:Restriction ;
            owl:allValuesFrom xsd:string ;
            owl:onProperty qudt:currencyNumber ],
        [ a owl:Restriction ;
            owl:allValuesFrom xsd:string ;
            owl:onProperty qudt:currencyCode ],
        [ a owl:Restriction ;
            owl:allValuesFrom xsd:integer ;
            owl:onProperty qudt:currencyExponent ],
        qudt:DimensionlessUnit ;
    sh:property qudt:CurrencyUnit-currencyCode,
        qudt:CurrencyUnit-currencyExponent,
        qudt:CurrencyUnit-currencyNumber .

