|
Hi guys,
I wanted to ask you a question relating more python than owlready2. I want to know how to have in input files of different name .owl in a same directory (also current directory) so that you can read them and then write the same thing on them in group.
For example:
import os
file = os.listdir(‘.’)
onto = get_ontology(file).load()
with onto:
class Car(Thing):
pass
onto.save(file=file, format=“rdfxml”)
How is possible to do it?
Many thanks.
Best regards,
Hamico
|