You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2012/11/07 15:49:12 UTC

[jira] [Commented] (JENA-338) RulesetNotFoundException when using umlauts in comments

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

Hudson commented on JENA-338:
-----------------------------

Integrated in Jena_Development_Test_Windows #6 (See [https://builds.apache.org/job/Jena_Development_Test_Windows/6/])
    Updated Release Notes to note fix FOR JENA-338 (Revision 1401780)
Fix for JENA-338, Rule.rulesFromURL() now throws a RulesetNotFoundException only if FileManager.get().open(uri) returns null.  WrappedIOExceptions are not caught and rewrapped incorrectly as highlighted by this bug (Revision 1401773)

     Result = UNSTABLE
rvesse : 
Files : 
* /jena/trunk/jena-core/ReleaseNotes.txt

rvesse : 
Files : 
* /jena/trunk/jena-core/src/main/java/com/hp/hpl/jena/reasoner/rulesys/Rule.java
* /jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/reasoner/rulesys/test/TestPackage.java
* /jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/reasoner/rulesys/test/TestRuleLoader.java
* /jena/trunk/jena-core/testing/reasoners/bugs/bad-encoding.rules

                
> RulesetNotFoundException when using umlauts in comments
> -------------------------------------------------------
>
>                 Key: JENA-338
>                 URL: https://issues.apache.org/jira/browse/JENA-338
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Reasoners
>    Affects Versions: Jena 2.7.0
>            Reporter: Ooser
>            Assignee: Rob Vesse
>            Priority: Minor
>              Labels: reasoner, rules
>             Fix For: Jena 2.10.0
>
>
> A RulesetNotFoundException occurs, when loading rules (Rule.rulesFromUrl(..)) from a text file that contains umlauts in comments. 
> EDIT:
> I wasn't aware of that, but yes the file is encoded in latin-1. However, I found it confusing that a 'NoRulesetFoundException' was thrown when the file obviously existed. Apart from the file's location there was no indication of what exactly the problem was. 
> Anyway, here is the code, a sample rule and the exception I am getting. 
> Rule.rulesFromURL("file:C:\\example.rules");
> @prefix ex: <http://www.example.org#>
> @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
> @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
> //öäü
> [
> 	(?x rdfs:label ?y)
> 	->
> 	(?x ex:hasLabel ?y)
> ]
> com.hp.hpl.jena.shared.RulesetNotFoundException: file:C:/example.rules
> 	at com.hp.hpl.jena.reasoner.rulesys.Rule.rulesFromURL(Rule.java:488)

--
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