How to write a SWRL rule using more than one namespace/two or more ontologies.
Hello Jiba,
I have two ontologies and there are property relation betwwen these two ontologies.
i have loaded these ontologies with namespaces as onto1 and onto2 in owlready2.
now I want to write a rule using these both ontology.that I want to use onto1 namespace for first ontology and onto2 for second ontology in a SWRl rule.
Re: How to write a SWRL rule using more than one namespace/two or more ontologies.
Administrator
Hi,
You can use the namespaces optional argument of the set_as_rule() method. This argument is a list of the namespaces, e.g. in your example [onto1, onto2].