You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2012/11/02 21:27:13 UTC
[jira] [Closed] (JENA-338) RulesetNotFoundException when using
umlauts in comments
[ https://issues.apache.org/jira/browse/JENA-338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne closed JENA-338.
------------------------------
> 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