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

Andy Seaborne commented on JENA-1977:
-------------------------------------

Fix seems to be as simple as:
{noformat}
    public static List<Rule> parseRules(String source,BuiltinRegistry registry)
               throws ParserException {
        BufferedReader reader = new BufferedReader(new StringReader(source));
        Parser parser = rulesParserFromReader(reader, registry);
        return parseRules(parser);
// old code:
//        return parseRules(new Parser(source,registry));
    }
{noformat}

> ja:rule does not process @prefix.
> ---------------------------------
>
>                 Key: JENA-1977
>                 URL: https://issues.apache.org/jira/browse/JENA-1977
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: Jena 3.16.0
>            Reporter: Andy Seaborne
>            Priority: Minor
>
> Report: 
> [https://lists.apache.org/thread.html/rfb65bb5d0a140d80ce8a9e08831a57562fdaea6c7e2255831f91b1b7%40%3Cusers.jena.apache.org%3E]
> {{ja:rule}} does not grok @prefix or @import.
> {{Rule.parseRules(String)}} directly calls the rule parer, whereas 
> {{rulesParserFromReader}} processes the input to handle the header, then 
> calls the rule parser.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to