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

swrlb:eval built-in fails with decimal arguments #66

Open
chcorbato opened this issue Apr 22, 2020 · 2 comments
Open

swrlb:eval built-in fails with decimal arguments #66

chcorbato opened this issue Apr 22, 2020 · 2 comments

Comments

@chcorbato
Copy link

I think this is related to #39

Setup

Protege 5.5.0
SWRLTab Protege 5.0+ Plugin (2.0.6)

Problem

Using swrlb:eval seems to fail, see this swrl rule:
tomasys:FunctionDesign(?fd) ^ abb_scenario3:fd_qa_energy(?fd, ?e) ^ abb_scenario3:fd_qa_safety(?fd, ?s) ^ abb_scenario3:fd_qa_performance(?fd, ?p) ^ swrlm:eval(?r, "(e+s+p)", ?e, ?s, ?p) -> abb_scenario3:fd_qa_tradeoff(?fd, ?r)

Exception

Exception running rule engine: error running Drools rule engine:
[Error: invoker.invoke("QA_tradeoff_avg", "swrlm:eval", 0, false, new VPATH(), new BAVNs("r", "", "e", "s", "p"), new UBA("r"), new L("(e+s+p)", "xsd:string"), $e, $s, $p): built-in exception thrown by built-in swrlm:eval in rule QA_tradeoff_avg: exception thrown by built-in swrlm:eval in rule QA_tradeoff_avg: exception processing expression '(e+s+p)': variable ?e with type xsd:decimal cannot be converted to xsd:double]
@martinjoconnor
Copy link
Member

Does this happen in the latest 2.0.8 version? I think I fixed this.

@chcorbato
Copy link
Author

Does this happen in the latest 2.0.8 version? I think I fixed this.

Thanks for your quick reply!
Yes, just checked in 2.0.8 and I get the same error.

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