Hi Johan, you can definitely reload the rules in Apache Jena Fuseki, but it 
requires programming. I did it by creating a custom Dataset implementation 
(which I configured using an Assembler configuration file) that periodically 
reloads the rules, but that might not be the easiest way. Regards, Barry

-----Original Message-----
From: Johan Kumps <[email protected]> 
Sent: maandag 12 oktober 2020 22:16
To: [email protected]
Subject: Re: Add rules at runtime

Hi,

I understand that within Jena rules and data are stored separately but the 
question is whether there is a possibility to reload rules in the given file. 
If so it would be possible to reload the rule set without having to restart the 
server.
Any ideas?

Johan,

Op ma 5 okt. 2020 om 14:12 schreef Nouwt, B. (Barry)
<[email protected]>:

> Hi Johan,
>
> I do not think Apache Jena Fuseki supports uploading a rule file as 
> you would do with data. Apache Jena rules (
> https://jena.apache.org/documentation/inference/) can only be set as 
> part of the configuration of a dataset, I think.
>
> However, if you use another type of constraints/rules (i.e. SWRL or 
> OWL Restrictions), you can maybe upload those as part of your data (as 
> they are part of you ontology, I think). If you then use a reasoner 
> that supports those constraints/rules (Pellet maybe?), it will 
> probably take them into account.
>
> Hope this helps!
>
> Regards, Barry
>
> -----Original Message-----
> From: Johan Kumps <[email protected]>
> Sent: maandag 5 oktober 2020 13:37
> To: [email protected]
> Subject: Add rules at runtime
>
> Hi all,
>
> Is it possible to add rules to Jena at runtime or is it only possible 
> to add rules via a file and restart the server?
>
> It would be very nice if you could upload a rule the same way as you 
> can do to add data to a dataset.
>
> Kind regards,
> Johan,
> This message may contain information that is not intended for you. If 
> you are not the addressee or if this message was sent to you by 
> mistake, you are requested to inform the sender and delete the 
> message. TNO accepts no liability for the content of this e-mail, for 
> the manner in which you use it and for damage of any kind resulting 
> from the risks inherent to the electronic transmission of messages.
>

Reply via email to