add rules and ontology