And here is the source of a Drools unit test making use of the KieFileSystem to load a rule from a string.
KieServices ks = KieServices.Factory.get();
KieFileSystem kfs = ks.newKieFileSystem().write( "src/main/resources/r1.drl", str );
ks.newKieBuilder( kfs ).buildAll();
All you have to do is pull the text of the rule definition from your DataStore (Spark or whatever) and add it to a path in your virtual filestore.