My problem is that if i want to check if an instance is in range, i use the following rule:
Rule1: Error(?d), TimeRelatedError(?c), TimeRelatedError_start_at(?c, ?s), error_at(?d, ?b), greaterThan(?b, ?s) -> is_after_TimeRelatedError_start(?d, true)
Rule2: Error(?d), TimeRelatedError(?c), TimeRelatedError_end_at(?c, ?e), error_at(?d, ?b), lessThan(?b, ?e) -> is_before_TimeRelatedError_end(?d, true)
It works if i have only one TimeRelatedError in my ontology, if i have more instances, it will always trigger true (because one of the TimeRelatedError are always before/after start/end point). Do you have any ideas how to solve this problem? I think i could tackle the problem if i assign my TimeRelatedError somehow to the Error instance but i do not know how. Please OWL/SWRL professionals help me with this task :)