protegeproject / cellfie-plugin

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

error: cannot cast uk.ac.manchester.cs.owl.owlapi.OWL ClassImpl to org.semanticweb #155

Open MeghanaKB opened 3 years ago

MeghanaKB commented 3 years ago

feed | date | host | feed_Number 4.34 | 2019-07 | A | feed_intake1 4.34 | 2019-07 | B | feed_intake1 7.52 | 2019-07 | C | feed_intake1 11.3 | 2019-07 | D | feed_intake1 20.54 | 2019-07 | E | feed_intake1

The date in my excel looks something like this. I am trying to make feed_Number as my instance with feed(1st column) as the feed_value data property. I did load my ontology and my transformation rules, when I am trying to generate ontology I am getting the error as "error cannot cast uk.ac.manchester.cs.owl.owlapi.OWL ClassImpl to org.semanticweb". Any help would be appreciated.

martinjoconnor commented 3 years ago

Can you post the Mapping Master expression that causes the exception.

MeghanaKB commented 3 years ago

Individual: @IW Types: feed_intake Facts: feed_value @IU Facts: feed_timestamp @M*.

IW - feed_Number, IU - feed, feed_timestamp - date

martinjoconnor commented 3 years ago

It looks you have not pasted the entire exception. ".... org.semanticweb" looks like it is truncated.

You might be trying to convert a class to an individual, for example. Is feed_intake1 a class in your ontology? If it is, the above expression would be trying to convert it into an individual.

Can you post the ontology.