andrecastro0o / ontology2smw

automating an RDF ontology import into Semantic Mediawiki
GNU General Public License v3.0
16 stars 5 forks source link

importing non-aeon Terms into SMW without aeon:SMW_datatype #12

Closed andrecastro0o closed 4 years ago

andrecastro0o commented 4 years ago

https://github.com/TIBHannover/ontology2smw/blob/92f19f253b9e751a5e243f160f119251bc1df154/classes.py#L78

In order to distinguish if an ontology term should be a SMW Category or Property we, so far we used in aeon aeon:SMW_datatype and that does the trick, for aeon. What about external ontologies used? Their terms don't use aeon:SMW_datatype :) ?

The issue is handled elegantly by @StroemPhi by also adding `` to the non-aeon terms

###  http://purl.obolibrary.org/obo/BFO_0000015
obo:BFO_0000015 rdf:type owl:Class ; 
...
                aeon:SMW_datatype "Category" ;
                aeon:SMW_import_info "[[Category:BFO]] [[Category:Imported vocabulary]]" .
andrecastro0o commented 4 years ago

Hence we should say that for a term to be imported it requires the property aeon:SMW_datatype as expressed in https://github.com/TIBHannover/ontology2smw/blob/92f19f253b9e751a5e243f160f119251bc1df154/queries/query_class_prop.rq#L29

andrecastro0o commented 4 years ago

https://github.com/TIBHannover/ontology2smw/commit/3ed2d0b90167d6db9604f6e445e688718e473e20