rescs:dash/monetaryamount/MonetaryAmountShape leaf node


URI

http://rescs.org/dash/monetaryamount/MonetaryAmountShape

Label

Monetary amount

Description

A monetary value or range. This type can be used to describe an amount of money such as $50 USD, or a range as in describing a bank account being suitable for a balance between £1,000 and £1,000,000 GBP, or the value of a salary, etc. It is recommended to use [[PriceSpecification]] Types to describe the price of an Offer, Invoice, etc.

Target Classes (1)

Shape Properties

Instances of schema:MonetaryAmount can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

schema:MonetaryAmount
schema:currency 1 1 xsd:string
schema:validFrom 1 xsd:date
schema:validThrough 1 xsd:date
schema:value 1 1 xsd:float
schema:Thing
schema:alternateName xsd:string
schema:description 1
schema:identifier 1
schema:image 1
schema:name 1 1 xsd:string
schema:sameAs
schema:url

Implementation

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

<http://rescs.org/dash/monetaryamount/MonetaryAmountShape> a sh:NodeShape ;
    rdfs:label "Monetary amount"^^xsd:string ;
    rdfs:comment "A monetary value or range. This type can be used to describe an amount of money such as $50 USD, or a range as in describing a bank account being suitable for a balance between £1,000 and £1,000,000 GBP, or the value of a salary, etc. It is recommended to use [[PriceSpecification]] Types to describe the price of an Offer, Invoice, etc."^^xsd:string ;
    sh:and ( [ sh:node <http://rescs.org/dash/structuredvalue/StructuredValueShape> ] [ sh:property [ sh:datatype xsd:string ;
                        sh:description "The currency in which the monetary amount is expressed.\\\\n\\\\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. \\\"USD\\\"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. \\\"BTC\\\"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. \\\"Ithaca HOUR\\\"." ;
                        sh:maxCount 1 ;
                        sh:minCount 1 ;
                        sh:name "currency" ;
                        sh:path schema:currency ;
                        sh:pattern "[A-Z]{3}" ],
                    [ sh:datatype xsd:date ;
                        sh:description "The date when the item becomes valid." ;
                        sh:lessThanOrEquals schema:validThrough ;
                        sh:maxCount 1 ;
                        sh:name "validFrom" ;
                        sh:path schema:validFrom ],
                    [ sh:datatype xsd:float ;
                        sh:description "The value of the quantitative value or property value node.\\\\n\\\\n* For [[QuantitativeValue]] and [[MonetaryAmount]], the recommended type for values is 'Number'.\\\\n* For [[PropertyValue]], it can be 'Text;', 'Number', 'Boolean', or 'StructuredValue'.\\\\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.\\\\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator." ;
                        sh:maxCount 1 ;
                        sh:minCount 1 ;
                        sh:minExclusive 0 ;
                        sh:name "value" ;
                        sh:path schema:value ],
                    [ sh:datatype xsd:date ;
                        sh:description "The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours." ;
                        sh:maxCount 1 ;
                        sh:name "validThrough" ;
                        sh:path schema:validThrough ] ] ) ;
    sh:targetClass schema:MonetaryAmount .