Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MeghanaKB opened this issue Feb 10, 2021 · 3 comments

Comments

@MeghanaKB
Copy link

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
Copy link
Member

martinjoconnor commented Feb 10, 2021

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

@MeghanaKB
Copy link
Author

Individual: @iw*
Types: feed_intake
Facts: feed_value @iu*
Facts: feed_timestamp @m*.

IW - feed_Number, IU - feed, feed_timestamp - date

@martinjoconnor
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants