For this kind of rules that generate new URIs or literals, there is no direct support yet. However, you can do the following.

Assume you have a model named A, let's create a new empty model called B.

1) Now run OWLPrime (or RDFS etc) inference using A and B together.

2) Insert into model B with the results, (e hasDuration d), coming from a SEM_MATCH based SQL that implements your rule. Depending on your application logic, you may want to repeat 1) and 2) till a closure
is reached.

You may also be able to leverage the incremental inference feature as an optimization.