Semantic Annotation for Process Models: - Department of Computer ...
Semantic Annotation for Process Models: - Department of Computer ...
Semantic Annotation for Process Models: - Department of Computer ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
191<br />
Algorithm 1 Goal <strong>Annotation</strong> Algorithm <strong>for</strong> Case A<br />
Require: weight parameters α and β<br />
initialize values <strong>of</strong> weight f oractivityonto, weight f oractivityname, σ, τ as 0<br />
onto = OD(av) {av is the activity to be annotated in goal annotation, and OD(av)<br />
gets the domain ontological concept which was annotated to av in model annotation}<br />
r = SR(av, onto) {SR(av, onto) gets the semantic relationship between av and onto}<br />
<strong>for</strong> each target activity av ′ <strong>of</strong> a g in goal ontology do<br />
if o equals av ′ 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 orativityonto = weight f oractivityonto+σ<br />
if av.name equals av ′ .name by string match then<br />
τ = 1<br />
else if av.name partly equals av ′ .name by string match then<br />
τ = 0.5<br />
end if<br />
weight f oractivityname = weight f oractivityname+τ<br />
end <strong>for</strong><br />
return α ∗ weight f oractivityonto+β ∗ weight f oractivityname<br />
Algorithm 2 Goal <strong>Annotation</strong> Algorithm <strong>for</strong> Case B.I<br />
Require: weight parameters θ<br />
initialize value <strong>of</strong> weight f oroutput as 0<br />
Arrayout[] is a set <strong>of</strong> output associated with av {av is the activity to be annotated<br />
in goal annotation. out[] is got from has_Output relationship}<br />
<strong>for</strong> each output in out[] do<br />
onto = OD(out) {OD(out) gets the domain ontological concept which was annotated<br />
to output through mapped_to relationship}<br />
<strong>for</strong> each target artifact a f ′ <strong>of</strong> a g in goal ontology do<br />
if onto equals a f then<br />
weight f oroutput = weight f oroutput+ 1<br />
end if<br />
end <strong>for</strong><br />
end <strong>for</strong><br />
return θ ∗ weight f oroutput