I'm doing some SWRL rules in OWL ontology like this:
..., hasHazardCode(?a, H350) -> DangerousProduct(?a)
..., hasHazardCode(?a, H350i) -> DangerousProduct(?a)
..., hasHazardCode(?a, H400) -> DangerousProduct(?a)
..., hasHazardCode(?a, H401) -> DangerousProduct(?a)
......
H350
, H350i
, H400
and H401
are some named individuals. As we can see that the pattern of these SWRL rules are similar. So I think maybe we can replace these rules with only one rule that goes like:
..., hasHazardCode(?a, {H350, H350i, H400, H401}) -> DangerousProduct(?a)
I tried this syntax in the Rules tab in Protege, but it didn't work. Does SWRL have support for individual enumeration statement like that?