Apress / ontologies-w-python

Source Code for 'Ontologies with Python' by Lamy Jean-Baptiste
Other
30 stars 30 forks source link

Add OWL file with (only) asserted axioms #2

Open neurorepro opened 3 years ago

neurorepro commented 3 years ago

This is to avoid having to insert all statements in Protege, and to be able to see the differences between the asserted and inferred axioms after running the reasoner.

I may have overlooked something but from what i saw the only changes with the Chap 4 OWL file was to remove the inferred Coccus subclasses (diff below is comparing files in Turtle format):

$ diff ../bacteria_chap3.ttl ../bacteria_chap4.ttl 
201c201,202
<                                     ] .
---
>                                     ] ;
>                 rdfs:subClassOf :Coccus .
231c232,233
<                                    ] .
---
>                                    ] ;
>                rdfs:subClassOf :Coccus .