Updated the ontology by adding an DataProperty "hasDurationPattern" 
and updated the code correspondingly.