[
https://issues.apache.org/jira/browse/JENA-338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ooser updated JENA-338:
-----------------------
Description:
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.
So here is the code, a sample rule and the exception:
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)
was:A RulesetNotFoundException occurs, when loading rules
(Rule.rulesFromUrl(..)) from a text file that contains umlauts in comments.
> 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
> Priority: Minor
>
> 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.
> So here is the code, a sample rule and the exception:
> 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