21.01.2014 Views

Semantic Annotation for Process Models: - Department of Computer ...

Semantic Annotation for Process Models: - Department of Computer ...

Semantic Annotation for Process Models: - Department of Computer ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

194 APPENDIX D. ALGORITHM FOR GOAL ANNOTATION<br />

Algorithm 5 Goal <strong>Annotation</strong> Algorithm <strong>for</strong> Case C<br />

Require: weight parameters ε, ζ<br />

initialize value <strong>of</strong> weight f oractoronto, weight f oractorname as 0<br />

Arrayar[] is a set <strong>of</strong> actor-roles associated with av through has_Actor-role<br />

<strong>for</strong> each ar in ar[] do<br />

onto = OD(ar) {OD(ar) gets the domain ontological concept annotated to ar}<br />

<strong>for</strong> each target role ar ′ <strong>of</strong> a g in goal ontology do<br />

r = SR(ar, onto) {SR(ar, onto) gets the semantic relationship between ar and<br />

onto}<br />

initialize σ, τ as 0<br />

if onto equals ar ′ then<br />

if r is "same_as" then<br />

σ = 1<br />

else if r is "kind_<strong>of</strong>" then<br />

σ = 0.8<br />

else if r is "phase_<strong>of</strong>" then<br />

σ = 0.5<br />

end if<br />

end if<br />

weight f oractoronto = weight f oractoronto+σ<br />

if ar.name equals ar ′ .name by string match then<br />

τ = 1<br />

else if ar.name partly equals ar ′ .name by string match then<br />

τ = 0.5<br />

end if<br />

weight f oractorname = weight f orartorname+τ<br />

end <strong>for</strong><br />

end <strong>for</strong><br />

return ε ∗ weight f orarti f actonto+ζ ∗ weight f orarti f actname

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!