protegeproject / cellfie-plugin

Protégé plugin for creating OWL ontologies from spreadsheets
104 stars 27 forks source link

mm:Location for new entities is ignored #127

Open donpellegrino opened 7 years ago

donpellegrino commented 7 years ago

When Cellfie generates new Individuals, it uses the settings from Protege -> Preferences -> New Entities. The MappingMaster DSL entity creation directives are ignored.

From the MappingMaster DSL documentation:

"For example, an expression to create an individual for cell D4 while ignoring the contents of the cell can be written: Individual: @D4(mm:Location)"

However, when run in Cellfie with Protege set to use "Auto-generated ID, Globally unique" then UUIDs are used for the Individuals created from D4 instead of a URL created from the location in the spreadsheet.

In general, use of the global Protege settings by Cellfie makes Cellfie inconsistent in its output. It would be better if the behavior was a function of only the rules and the input spreadsheet.

donpellegrino commented 7 years ago

Resetting the global Protege settings to their default seems to affect the behavior of mm:Location.

Test system: Protege 5.2.0.