I have been having a lot of fun working with ergo-lite and hit a bit of a riddle that I am curious about.
The general experiment was that on a given day, I would 'reify' an intuition I had about some related topics of interest.
Something like:
?- insert{\#1:intuition[of-> ${principleOfExcludedMiddle[orbits-> enaction] \and enaction[launches-> sense[of->legitimacy]]},
on-> "2020-09-19"^^\date]@intuitionsOfThought}.
When I query this on a normal module, the \date (as associated with the on-> key name) value works as expected. When I make the module persistent, the 'round trip' of the datom results in the date showing up as:
datatype(date(1,2020,9,19,1,0,0,(751738, 0))@\prolog,date)@\prolog.
Which, as you might guess, doesn't unify with a date literal. As a person familiar with lisp, I took this to be the equivalent of a quoted s-expr, and I explored around to find the equivalent of 'eval' that would get me something that would allow me to query for 'intuitions' on a given day (as a \date literal).
I searched around the codebase and my best effort per budgeted time was something like
?_:intuition[on-> ?X]@intuitionsOfThought, flora_parse_datatype(?X,_,?Z,_)@\plg(flrdatatype).
But, alas, no dice.
Is what I am curious to do possible? Feel free to correct any misuses of jargon or anything of that sort.
Til then I found that just using a string in the place of a date could get me that minimum of what I wanted tonight--but then I am curious how I could 'lift' the string representing the day into the date type.
Thanks a lot for sharing this project. It is a joy to explore.
Best,
JMSB