keiffster / program-y

Python 3.x based AIML 2.0 Chatbot interpreter, framework, related programs and knowledge files
https://keiffster.github.io/program-y/
Other
348 stars 138 forks source link

reload rdf fname - causes emptying of entire rdf collection instead of just file collection #252

Closed lspy closed 4 years ago

lspy commented 4 years ago

Hi Trying reload of a single RDF file by calling YADMIN RELOAD RDF filename

Expect to empty just the collection specific to the filename with in the RDFstore, but see that the entire RDFstore is emptied. I only find just the filename reloaded.

Suggestion for a possible Solution: In file ..program-y\src\programy\storage\stores\file\store\rdfs.py in the method reload() below

def reload(self, collection, rdf_name): filename = collection.storename(rdfname) collection.empty() ### should be filename.empty()_ return self._load_file_contents(collection, filename)

Thank you very much for Program-Y, it is an exciting project to play with! Appreciate it very much!

keiffster commented 4 years ago

Yeap, spot on the call to empty at line 58 clears out the entire ref store, I’ll fix and release shortly

lspy commented 4 years ago

Great. Look forward to the release. thanks

lspy commented 4 years ago

Hi @keiffster is there an ETA for the release? Thanks in advance

keiffster commented 4 years ago

Just finished the fix, will likely release a point release tonight after 7pm GMT

lspy commented 4 years ago

Great. Will look out for it.

keiffster commented 4 years ago

Uploaded code to GitHub and release 4.1.1 to pypi