# Mathematical expressions

Title: Representing in OWL mathematical expressions.

Description: I wish to be able to express: - "gross income" calculatedBy ("yield" multipliedBy "price") - "net income" calculatedBy ("gross income" minus " cost product")

 Users AldoGangemi, ClaudioBaldassarre, MargheritaSini, ValentinaPresutti Market, Agriculture How to I calculate the gross income? How to I calculate the net income? Agricultural markets

Proposed by Aldo:

GrossIncome equivalentClass

``` (NumericProduct and
(hasFirstOperand some Yield) and
(hasSecondOperand some Price)
(hasResult exactly 1))
```

GrossIncome subClassOf

``` hasFirstOperand all Yield
```

GrossIncome subClassOf

``` hasSecondOperand all Price
```

GrossIncome subClassOf

``` hasResult all xsd:float
```

Yield subClassOf

``` hasValue some xsd:float
```

Price subClassOf

``` hasValue some xsd:float
```

Proposed by Margherita (simpler version):

<rdf:RDF

```   xmlns="http://localhost/default#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:daml="http://www.daml.org/2001/03/daml+oil#">
<hasSecondOperand>
</hasSecondOperand>
<hasFirstOperand>
</hasFirstOperand>
</owl:Class>
<rdfs:subClassOf>
</rdfs:subClassOf>
</owl:Class>
<rdfs:range rdf:resource="http://localhost/default#Multiplication"/>
<rdfs:domain rdf:resource="http://localhost/default#Numeric%20Product"/>
<rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
</owl:ObjectProperty>
<rdfs:range rdf:resource="http://localhost/default#Numeric%20Product"/>
<rdfs:domain rdf:resource="http://localhost/default#Gross%20Income"/>
<rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
</owl:ObjectProperty>
```

</rdf:RDF>