You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "tdbrec (JIRA)" <ji...@apache.org> on 2019/07/05 13:29:00 UTC

[jira] [Created] (JENA-1728) Fuseki Assembler ignore ja:rulesFrom on Error

tdbrec created JENA-1728:
----------------------------

             Summary: Fuseki Assembler ignore ja:rulesFrom on Error
                 Key: JENA-1728
                 URL: https://issues.apache.org/jira/browse/JENA-1728
             Project: Apache Jena
          Issue Type: Improvement
          Components: Fuseki
    Affects Versions: Jena 3.12.0
         Environment: GNU/Linux (Debian)
            Reporter: tdbrec


{code:turtle}
:dataset a ja:InfModel ;
    ja:baseModel ..... ;
    ja:reasoner [
        ja:reasonerURL <http://jena.hpl.hp.com/2003/GenericRuleReasoner> ;
        ja:rulesFrom <file:///rules-1> ;
        ja:rulesFrom <file:///rules-2> ;
    ] .
{code}

If one of the files ja:rulesFrom contain syntax errors, Fuseki stops working. It would be useful to have a way for "loading or ignoring" rules, for example ja:rulesOrIgnoreFrom <...>
My use case is that I'm accepting inference rules from users, and the only way to update inference rules is by writing them to a file, append a new ja:rulesFrom in the configuration, and reload Fuseki. Even though this process is pretty cumbersome for updating rules, at least it's doable and I'm OK with that. The major stopper is that there isn't a way to validate rules, so when I ask Fuseki to load a broken file it will refuse to work until I fix the file manually.
A different option could be a new "ja:rulesFromDirectory" that will automatically load all files inside a directory ignoring any file that raise an exception.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)