0

I am currently working on creating Ontology (OWL) files for my project, and I need to specify a large set of SWRL rules (more than 100).

In my current understanding, importing these rules one by one is the only way to do it in the Protege program. However, I am wondering if there is a method to import a batch of SWRL rules into my ontology, bypassing the need to import each rule individually.

I am open to using other programs besides Protege, as long as they offer the functionality to import SWRL rules in bulk.

Pam Cesar
  • 73
  • 1
  • 6
  • isn't Protege itself sufficient? `Refactor -> Merge Ontologies` might be one way to solve your task if your used to Protege? Or am I missing something here? – UninformedUser Jun 15 '23 at 07:52

1 Answers1

2

You can do this using the ROBOT command line tool using the merge operation. For example:

robot merge -i my-ontology.owl -i my-rules.swrl -o combined.owl

The .owl and .swrl files can be any OWL syntax that supports SWRL.

Chris Mungall
  • 629
  • 5
  • 13