|
|
Some simple examples of embedded semantic tree. Note that for readability the attributes have been abbreviated
|
|
|
|
|
|
## Single Operation
|
|
|
|
|
|
Original MathML:
|
|
|
```html
|
|
|
<math>
|
... | ... | @@ -45,6 +47,7 @@ Semantically enriched MathML: |
|
|
|
|
|
```
|
|
|
|
|
|
## Operation and Relation
|
|
|
|
|
|
Original MathML:
|
|
|
```html
|
... | ... | @@ -98,4 +101,39 @@ Enriched MathML: |
|
|
</mrow>
|
|
|
</mrow>
|
|
|
</math>
|
|
|
``` |
|
|
\ No newline at end of file |
|
|
```
|
|
|
|
|
|
## Multiple Operations
|
|
|
|
|
|
```html
|
|
|
<math>
|
|
|
<mi>a</mi>
|
|
|
<mo>+</mo>
|
|
|
<mi>b</mi>
|
|
|
<mo>-</mo>
|
|
|
<mi>c</mi>
|
|
|
<mo>+</mo>
|
|
|
<mi>d</mi>
|
|
|
</math>
|
|
|
|
|
|
```
|
|
|
|
|
|
```html
|
|
|
<math>
|
|
|
<mrow semantic-type="infixop" semantic-role="addition" id="9" semantic-content="5" semantic-children="8,6">
|
|
|
<mrow semantic-type="infixop" semantic-role="subtraction" id="8" semantic-content="3" semantic-children="7,4" semantic-parent="8">
|
|
|
<mrow semantic-type="infixop" semantic-role="addition" id="7" semantic-content="1" semantic-children="0,2" semantic-parent="7">
|
|
|
<mi semantic-type="identifier" semantic-role="latinletter" id="0" semantic-parent="0">a</mi>
|
|
|
<mo semantic-type="operator" semantic-role="addition" id="1" semantic-operator="infixop,+" semantic-parent="1">+</mo>
|
|
|
<mi semantic-type="identifier" semantic-role="latinletter" id="2" semantic-parent="2">b</mi>
|
|
|
</mrow>
|
|
|
<mo semantic-type="operator" semantic-role="subtraction" id="3" semantic-operator="infixop,-" semantic-parent="3">-</mo>
|
|
|
<mi semantic-type="identifier" semantic-role="latinletter" id="4" semantic-parent="4">c</mi>
|
|
|
</mrow>
|
|
|
<mo semantic-type="operator" semantic-role="addition" id="5" semantic-operator="infixop,+" semantic-parent="5">+</mo>
|
|
|
<mi semantic-type="identifier" semantic-role="latinletter" id="6" semantic-parent="6">d</mi>
|
|
|
</mrow>
|
|
|
</math>
|
|
|
|
|
|
```
|
|
|
|