Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1728

Fuseki Assembler ignore ja:rulesFrom on Error

    XMLWordPrintableJSON

Details

    Description

      :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> ;
          ] .
      

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tdbrec tdbrec
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: