From: Smith, Tim <smith.2@pg...> - 2010-08-10 01:43:16
My recent attempt at using the Ontology Import bot in SMW+ 1.5.0 with the TSC, has resulted in some interesting behavior.
Essentially, if the ontology I'm importing contains an object (class/category, property, or instance) with the same name as one that is already in the ontology, the import bot will essentially DELETE the semantic relationships (triples) associated with the object in the wiki and replace them with the semantic relationships contained in the imported ontology.
Take the Person category for example. In the default ontology included with SMW 1.5.0, Person is a subcategory of Locatable Entity and of Resource. These subcategory relationships are used in many forms for auto-completion, etc..
In my ontology that I'm going to import, I have a Person class that is a subcategory of "Legal Entity".
Here's where it gets confusing. When I imported the ontology, the log file stated:
Imported: Person (merging)
I took this to mean that it was merging (as in union of) the triples already present in the wiki with the triples defined in my ontology for the Person Category.
However, after importing an ontology with only two classes - Person defined as a subclass of Legal Entity - Person was correctly defined as a subcategory of Legal Entity but the subcategories of Locatable Entity and Resource had been removed.
Does anyone know if this behavior is correct?
If so, how do you import ontologies that build from the ontologies already in the wiki? It seems like you would have to completely export the wiki to OWL and then re-import it along with any new ontologies. (But the Export bot does not create a valid OWL/RDFS export when you export the domain/range information which would be required to re-import)
Thanks in advance for your help,