import webanno.custom.EventArg as Event;
import webanno.custom.EventTrigger as Trigger;
Event {
@Trigger.label="Employment" & label="status" -> status_employed="employed";
}
The problem is that I cannot get the status_employed feature to show. If I remove the @Trigger.label="Employment" part then it works just fine, but I can't seem to get it to work with a constrain on the Trigger layer.
Any help will be greatly appreciated!
Without having tried this in the tool right now, the rule should probably look somewhat like this:
import webanno.custom.EventArg as Event;
import webanno.custom.EventTrigger as Trigger;
Event {
arg.target.label="Employment" & label="status" -> status_employed="employed";
}
Unable to evaluate constraints: IllegalStateException: Feature [arg] does not exist on type [webanno.custom.EventArg
So it seems that it is unable to find the arg feature on the current layer, which makes sense since it's actually part of the EventTrigger layer. I've tried playing around with the syntax, but haven't been able to change it in such a way that it works.
What you are saying right now with "Event { @Trigger.label="Employment" ... -> }" is "if there is an annotation of type Trigger at the same location as the current Event annotation and the label feature of that trigger is 'Employment', then activate".
What you probably want to say with "arg.target.label="Employment"" is "if the current event has an argument where the argument has a feature label with value 'Employment', then activate".
Maybe you could provide a screenshot of your layers in action with an annotation of the EventTriggerLayer selected in the right sidebar?


So, the SdohEventTrigger has a link named "Arg" (mind capitalization!) to the SdohEventArg.
In terms of the constraints, that means that features on the SdohEventTrigger can be constraint by either information on the SdohEventTrigger or information on the SdohEventArg it refers to.
However, you cannot constrain features on the SdohEventArg based on information in the SdohEventTrigger because the SdohEventArg does not actually know that it is linked to the SdohEventTrigger. The "link" is directional from SdohEventTrigger to SdohEventArg and constraint rules cannot work in the reverse direction.
If asked how I would model the type of information you are looking at, I would suggest
something like (if you go without role labels)):
-----
"She had a full time job at the hospital."
EventArg [She] (label: person)
EventTrigger [had] (
arg: {target: EventArg[She]}, {target: EventArg[hospital]}
label: "employment status")
EventArg [hospital] (label: organization)
-----
And then define a constraint which says that the label "employment status" on the EventTrigger is induced by the argument labels "person" and "organization":
EventTrigger {
Arg.target.label = "person" & Arg.target.label = "organization" -> label = "employment status";
}



that sounds like a bug to me. It shouldn't make a difference if you have one or ten link features - they should all render their args.
It would be great if you could help by putting your explanation and images into a bug report so we can track it more easily.
If you could attach a minimal project export illustrating the problem, would be even better.
https://github.com/inception-project/inception/issues/new?template=bug_report.md
From a usability/practicality point of view, I would imagine though that a single link feature
should be sufficient for most cases and distinctions could as well be represented in the role label.
Hi RichardOn Thursday, 27 May 2021 at 23:36:26 UTC-7 richard...@gmail.com wrote:that sounds like a bug to me. It shouldn't make a difference if you have one or ten link features - they should all render their args.
It would be great if you could help by putting your explanation and images into a bug report so we can track it more easily.
If you could attach a minimal project export illustrating the problem, would be even better.
https://github.com/inception-project/inception/issues/new?template=bug_report.mdSure, I'll file a bug report. It's getting late so I will likely do it in the morning.
--
You received this message because you are subscribed to a topic in the Google Groups "inception-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/inception-users/HExNHKgsrwo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to inception-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inception-users/b5d89a6a-60f2-4678-a96e-bda2b5378fcdn%40googlegroups.com.