You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Andrea Nuzzolese (JIRA)" <ji...@apache.org> on 2012/10/05 14:18:02 UTC

[jira] [Commented] (STANBOL-761) Error while converting datatypes from Stanbol Rules syntax to Clerezza SPARQL

    [ https://issues.apache.org/jira/browse/STANBOL-761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13470264#comment-13470264 ] 

Andrea Nuzzolese commented on STANBOL-761:
------------------------------------------

The issue can be solved by modifying the piece of code starting at line 85

 if (arg2 instanceof Variable) {
    object = new ResourceOrVariable((Variable) arg2);
} else if (dt instanceof Literal) {
    object = new ResourceOrVariable((Literal) arg2);
} else {
    throw new RuleAtomCallExeption(getClass());
}

with the following

if (arg2 instanceof Variable) {
    object = new ResourceOrVariable((Variable) arg2);
} else if (arg2 instanceof LiteralExpression) {
    object = new ResourceOrVariable(((LiteralExpression) arg2).getLiteral());
} else {
    throw new RuleAtomCallExeption(getClass());
}
                
> Error while converting datatypes from Stanbol Rules syntax to Clerezza SPARQL
> -----------------------------------------------------------------------------
>
>                 Key: STANBOL-761
>                 URL: https://issues.apache.org/jira/browse/STANBOL-761
>             Project: Stanbol
>          Issue Type: Bug
>          Components: Rules
>            Reporter: Andrea Nuzzolese
>
> An error occurs during the refactoring.
> It is related to the an bug into the management of datatypes by the Clerezza Adapter for Stanbol Rules.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira