Hello,
> I need help with owlready and data properties as i am new to owlready
> ontologies and python and have to meet deadline for my reserach. I have a
> list of nouns like city name bamberg which i want to enter in ontology class
> entity and assign it to data property how can i do it using owl ready?
I think you need to create the City class (if not yet existing), and then to create City individuals:
onto.City(name = "Bamberg")
http://owlready2.readthedocs.io/en/latest/class.htmlSee the documentation of Owlready2 here :
http://owlready2.readthedocs.io/en/latest/class.html> Secondly i would like to have all the relations displayed like bamberg is a
> city so can i do that using owlready and python
> Your help will be highly appreciated
You can list city individuals with: onto.City.instances()
Best regards,
Jean-Baptiste Lamy
MCF, LIMICS, Université Paris 13