Skip to content
jorgearj edited this page Mar 28, 2013 · 1 revision

Deduction is a negative price component. The total price will be reduced by a certain amount. Deductions are defined in the same way as any PriceComponent as they are a specialization.

Example 1: Deduction

:PriceComponent_Usage_Discount
      rdf:type usdl-price:Deduction ;
      rdfs:label "Usage Discount"^^xsd:string ;
      usdl-price:hasPriceFuntion
              :Function_Usage_Discount ;
      usdl-price:hasTextFuntion
              "If number of hosted web-sites > 5 apply discount of 10%"^^xsd:string .

In this example we have a Deduction which is a special PriceComponent. This deduction specifies that if one user has more than 5 hosted web-sites he has a discount of 10% in the final price. Note that for better comprehension of the price calculation formula we use the property usdl-price:hasTextFuntion with a natural language description of the expression.

Clone this wiki locally