Re: Web meeting: Datalog and Datahike

2019-10-19 Thread Daniel Slutsky
will have a web meeting celebrating the new >> Datahike releats: https://lambdaforge.io/2019/09/20/dat >> ahike-release-0.2.0.html… <https://t.co/9OmaHy8iqw?amp=1> Agenda: • >> @konradkuehne <https://twitter.com/konradkuehne> >> about the new Datahike, and Da

Re: Web meeting: Datalog and Datahike

2019-10-09 Thread Daniel Slutsky
g the new > Datahike releats: https://lambdaforge.io/2019/09/20/dat > ahike-release-0.2.0.html… <https://t.co/9OmaHy8iqw?amp=1> Agenda: • > @konradkuehne <https://twitter.com/konradkuehne> > about the new Datahike, and Datalog in general. • Discussion of community > challeng

Web meeting: Datalog and Datahike

2019-09-29 Thread Daniel Slutsky
itter.com/konradkuehne> about the new Datahike, and Datalog in general. • Discussion of community challenges. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new

Natural Language Datalog

2017-12-23 Thread Dennis Heihoff
Alex Warth from HARC (Human Advancement Research Center) wrote a natural language datalog engine. It's is used to represent facts and queries in Bret Victor's https://dynamicland.org/ Could it work with Datomic? Demo: http://alexwarth.com/projects/nl-datalog/ Repo: https://githu

Re: Datomic evals clojure subset in datalog - how can I do this?

2017-09-03 Thread Karsten Schmidt
#expressions Hth! On 1 September 2017 at 14:50, Dustin Getz wrote: > Datomic allows clojure.core fns to be embedded inside datalog queries, > except eval (http://docs.datomic.com/query.html) > > 1. Do we know how secure is this - what if the datalog comes from untrusted > user input? >

Datomic evals clojure subset in datalog - how can I do this?

2017-09-01 Thread Dustin Getz
Datomic allows clojure.core fns to be embedded inside datalog queries, except eval (http://docs.datomic.com/query.html) 1. Do we know how secure is this - what if the datalog comes from untrusted user input? 2. What is the best way to implement restricted-eval like this on jvm, compared to

Nov 20 Q: How can I build datalog queries around a firebase backend?

2016-11-20 Thread Timothy Pratley
tx: x1} With indexes on e, a, v, and tx I think I understand how to do most queries against that manually, but what I want to explore is if there is some way to translate a datalog query into the required Firebase queries... and whether I can answer all the kinds of questions I want to ask

Re: ANN: DataScript, in-memory database and datalog queries in ClojureScript

2014-04-25 Thread Nikita Prokopov
Hi Daniel, First sentence was written from Datomic standpoint. In Datomic, all history is kept in the database ref. Given ref to an immutable DB, you can rewind back to any point in time. I can guess that each DB value consist of indexes to current, latest state + append-only history log. There

Re: ANN: DataScript, in-memory database and datalog queries in ClojureScript

2014-04-25 Thread Daniel Compton
2014 7:38:35 PM UTC+12, Nikita Prokopov wrote: > > Hi! > > I’m glad to announce my new library, DataScript. > > It’s an open-source, from-the-scratch implementation of in-memory > immutable database aimed at ClojureScript with API and data model designed > after

ANN: DataScript, in-memory database and datalog queries in ClojureScript

2014-04-25 Thread Nikita Prokopov
Hi! I’m glad to announce my new library, DataScript. It’s an open-source, from-the-scratch implementation of in-memory immutable database aimed at ClojureScript with API and data model designed after Datomic. Full-featured Datalog queries included. Library is here: https://github.com

Re: Clojure contrib datalog

2012-12-11 Thread Shantanu Kumar
ast I haven't seen >> anything), but at some point in past I extracted it from sources of >> clojure-contrib and put it on github (with few updates to code, nothing >> major): >> >> https://github.com/piranha/datalog >> >> >> On Sun, Dec 9, 2

Re: Clojure contrib datalog

2012-12-10 Thread Bronsa
(with few updates to code, nothing > major): > > https://github.com/piranha/datalog > > > On Sun, Dec 9, 2012 at 1:15 PM, Shantanu Kumar > wrote: > >> Hi, >> >> I saw clojure-contrib datalog has not made it into modular contribs: >> >> https:/

Re: Clojure contrib datalog

2012-12-10 Thread Alexander Solovyov
Hi, I don't think it's maintained somewhere (at least I haven't seen anything), but at some point in past I extracted it from sources of clojure-contrib and put it on github (with few updates to code, nothing major): https://github.com/piranha/datalog On Sun, Dec 9, 2012 at 1:

Clojure contrib datalog

2012-12-09 Thread Shantanu Kumar
Hi, I saw clojure-contrib datalog has not made it into modular contribs: https://github.com/clojure/clojure-contrib/tree/master/modules/datalog http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go http://dev.clojure.org/display/doc/Clojure+Contrib+Libraries Does anybody know if

Re: Accessing collections from Datomic datalog queries

2012-05-09 Thread Stuart Halloway
> I've seen hinted (and I'm pretty sure I've seen examples, but I can't > remember where) that Datomic can incorporate data from regular Clojure > collections. Is there some doc for this or an example? > > Thanks in advance Hi Mark, I have moved this to the Datomic group and answered it the

Accessing collections from Datomic datalog queries

2012-05-06 Thread Mark
I've seen hinted (and I'm pretty sure I've seen examples, but I can't remember where) that Datomic can incorporate data from regular Clojure collections. Is there some doc for this or an example? Thanks in advance -- You received this message because you are subscribed to the Google Groups

Re: DataLog

2010-07-13 Thread Avram
I am new to clojure but learning quickly. I haven't yet tried clojure.contrib.Datalog, but I analyze big data and I can say that I quite like Nathan Marz's Cascalog. Cascalog is reminiscent of datalog syntax but executes queries on Hadoop via Cascading for data that is too big to fit

Re: DataLog

2010-07-12 Thread Meikel Brandmeyer
in my day work where I need to define my own predicates. These can be quite ad-hoc. eg. a part number is be part of a certain family of devices. But two part numbers from the same device family might use different microcontrollers, etc. So datalog sounded very interesting to me. Sincerely Meikel -

DataLog

2010-07-12 Thread Wilson MacGyver
Has anyone used clojure.contrib.Datalog for anything serious? What kind of problem did you run into if any? What is the performance like? Is there a sweet spot beyond that it's completely in memory only? Thanks, -- Omnem crede diem tibi diluxisse supremum. -- You received this message because

Re: questions about datalog

2009-09-14 Thread Mark Engelberg
On Mon, Sep 14, 2009 at 10:02 PM, Tom Faulhaber wrote: > > Did you also read the overview that's part of contrib at > http://richhickey.github.com/clojure-contrib/doc/datalog.html. > So because of this thread, I just went and perused the description of the Clojure datalog libr

Re: questions about datalog

2009-09-14 Thread Tom Faulhaber
ou Josh for your answer. > > I have read the sources of datalog, however, literal.clj and the ideas > of the query language behind it is unknown for me, thus I can not > understand it quite well. The same thing happens when I saw magic.clj, > in which file I saw "magic transform

Re: questions about datalog

2009-09-14 Thread Raoul Duke
> Much of the semantics of the query language is based on Prolog. as an aside, i was under the impression that Datalog was syntactically a subset of Prolog, but was not semantically so much so, since in Prolog order matters e.g. wrt termination. sincer

Re: questions about datalog

2009-09-12 Thread Josh Smith
On Sep 12, 9:53 pm, Robert Luo wrote: > Thank you Josh for your answer. Thank you for being interested in the datalog library. :) > I have read the sources of datalog, however, literal.clj and the ideas > of the query language behind it is unknown for me, thus I can not > u

Re: questions about datalog

2009-09-12 Thread Robert Luo
Thank you Josh for your answer. I have read the sources of datalog, however, literal.clj and the ideas of the query language behind it is unknown for me, thus I can not understand it quite well. The same thing happens when I saw magic.clj, in which file I saw "magic transformation".

Re: questions about datalog

2009-09-12 Thread Josh Smith
sts questions, the memory comsumption is pretty good since the information is stored using standard clojure datastructures. Profiling datalog programs is no different than profiling clojure programs. I haven't seen it to be a problem, but I'm not using it in performance critical applica

Re: questions about datalog

2009-09-12 Thread Robert Luo
Two more questions: 3. In datalog.database , it is required that every tuple must has exactly same field as in database define, is that possible to just define some necessary fields, and tuples appended can have additional optional fields? 4. What is a magic transformation? I googled the term, but

questions about datalog

2009-09-12 Thread Robert Luo
I am trying to use datalog now, have the following questions: 1. How about the memory consumption of datalog? 2. There are examples of datalog, but can I find more detailed document about the query language? --~--~-~--~~~---~--~~ You received this message because

Re: Datalog update

2009-03-07 Thread Jeffrey Straszheim
I've added some Datalog material to the wiki: http://code.google.com/p/clojure-contrib/wiki/DatalogOverview On Wed, Feb 18, 2009 at 4:55 PM, Jeffrey Straszheim < straszheimjeff...@gmail.com> wrote: > Makes sense. That would work. It certainly looks cleaner. > > > On We

Re: Datalog update

2009-02-18 Thread Jeffrey Straszheim
t; > bottom-up > > > > > > > > optimizations for logic programs, particularly from the magic > set > > > > > family, > > > > > > > > and is willing to assist, please contact me. > > > > > > > > > > On S

Re: Datalog update

2009-02-18 Thread Rich Hickey
.@gmail.com> wrote: > > > > > > > > > Stratified negation is working and in trunk. > > > > > > > > > I have some cool ideas of a simple, but powerful, way to > > implement > > > > > > > > evaluable predicates. T

Re: Datalog update

2009-02-18 Thread Jeffrey Straszheim
zheim < > > > > > > > > straszheimjeff...@gmail.com> wrote: > > > > > > > > > Stratified negation is working and in trunk. > > > > > > > > > I have some cool ideas of a simple, but powerful, way to > implement >

Re: Datalog update

2009-02-18 Thread Rich Hickey
> evaluable predicates. They'll likely make it in by midweek. > > > > > > > The the hard part (magic sets) begins. > > > > > > > On Feb 8, 11:43 am, Jeffrey Straszheim < > > straszheimjeff...@gmail.com> > > > > > > wro

Re: Datalog update

2009-02-18 Thread Jeffrey Straszheim
gt; straszheimjeff...@gmail.com> > > > > > wrote: > > > > > > I now have recursive queries working. My next 3 milestones are > > > > > stratified > > > > > > negation, evaluable predicates, and then some version of magic > sets > >

Re: Datalog update

2009-02-18 Thread Rich Hickey
; > > > > I now have recursive queries working. My next 3 milestones are > > > > stratified > > > > > negation, evaluable predicates, and then some version of magic sets > > > > > optimization. But now, as long as your queries are non-negated

Re: Questions about a Clojure Datalog

2009-02-18 Thread Jeffrey Straszheim
I see nothing in his code or documentation for handling negation or stratification. Also, it appears to be a top down evaluator, and I don't see any fixed-point or other recursion handling. I *suspect* this does not guarantee termination over arbitrary safe rules. It is not real Datalog

Re: Questions about a Clojure Datalog

2009-02-18 Thread Jeffrey Straszheim
It is worth looking at. On Wed, Feb 18, 2009 at 12:42 PM, Telman Yusupov wrote: > > Could this be of any help for your development? There is now a version > of Datalog for PLT Scheme: > > Software: > > http://planet.plt-scheme.org/display.ss?package=datalog.

Re: Questions about a Clojure Datalog

2009-02-18 Thread Telman Yusupov
Could this be of any help for your development? There is now a version of Datalog for PLT Scheme: Software: http://planet.plt-scheme.org/display.ss?package=datalog.plt&owner=jaymccarthy Documentation: http://planet.plt-scheme.org/package-source/jaymccarthy/datalog.plt/1/0/planet-docs/dat

Re: Questions about a Clojure Datalog

2009-02-09 Thread Jeffrey Straszheim
I was considering extending my Datalog work with customized evaluable predicates, but have decided against it. The safety guarantees of Datalog are just not worth giving up. To compensate, I have (very tentative) plans of building some sort of logic oriented bottom up computation engine -- think

Re: Questions about a Clojure Datalog

2009-02-09 Thread John Fries
ility of open-world reasoners. I merely asked, > given your assertion that open-world reasoners were more powerful than > Datalog, if they were therefor suitable for the tasks for which I > envisioned using Datalog, e.g. finding complete models, in a typical > data query manner. It

Re: Datalog update

2009-02-09 Thread Jeffrey Straszheim
atified > > > > negation, evaluable predicates, and then some version of magic sets > > > > optimization. But now, as long as your queries are non-negated it is > > > > working. > > > > > >http://code.google.com/p/clojure-datalog/ > > > --~--

Re: Datalog update

2009-02-09 Thread Rich Hickey
stones are > > stratified > > > negation, evaluable predicates, and then some version of magic sets > > > optimization. But now, as long as your queries are non-negated it is > > > working. > > > >http://code.google.com/p/clojure-datalog/ --~--~

Re: Questions about a Clojure Datalog

2009-02-09 Thread Rich Hickey
rld reasoners were more powerful than Datalog, if they were therefor suitable for the tasks for which I envisioned using Datalog, e.g. finding complete models, in a typical data query manner. It seems from your description below that they might not be, i.e. that it is supported but not efficient. R

Re: Datalog update

2009-02-08 Thread Jeffrey Straszheim
; wrote: > > I now have recursive queries working. My next 3 milestones are > stratified > > negation, evaluable predicates, and then some version of magic sets > > optimization. But now, as long as your queries are non-negated it is

Re: Datalog update

2009-02-08 Thread Jeffrey Straszheim
queries working.  My next 3 milestones are stratified > negation, evaluable predicates, and then some version of magic sets > optimization.  But now, as long as your queries are non-negated it is > working. > > http://code.google.com/p/clojure-datalog/ --~--~-~--~~--

Re: Questions about a Clojure Datalog

2009-02-08 Thread John Fries
em that > interfaces to them benefits from all that work. > > -John > > On Thu, Feb 5, 2009 at 2:04 PM, Jeffrey Straszheim < > straszheimjeff...@gmail.com> wrote: > >> There is no reason to have just one option. >> >> >> On Thu, Feb 5, 2009 at 3:59 PM,

Datalog update

2009-02-08 Thread Jeffrey Straszheim
I now have recursive queries working. My next 3 milestones are stratified negation, evaluable predicates, and then some version of magic sets optimization. But now, as long as your queries are non-negated it is working. http://code.google.com/p/clojure-datalog

Re: Questions about a Clojure Datalog

2009-02-07 Thread John Fries
szheimjeff...@gmail.com> wrote: > There is no reason to have just one option. > > > On Thu, Feb 5, 2009 at 3:59 PM, Rich Hickey wrote: > >> >> Thanks for the pointer to Kodkod - it looks very interesting. >> >> I wonder if we aren't talking apples a

Re: Questions about a Clojure Datalog

2009-02-05 Thread Jeffrey Straszheim
There is no reason to have just one option. On Thu, Feb 5, 2009 at 3:59 PM, Rich Hickey wrote: > > Thanks for the pointer to Kodkod - it looks very interesting. > > I wonder if we aren't talking apples and oranges though. Datalog may > be a basic reasoner, but it's

Re: Questions about a Clojure Datalog

2009-02-05 Thread Rich Hickey
Thanks for the pointer to Kodkod - it looks very interesting. I wonder if we aren't talking apples and oranges though. Datalog may be a basic reasoner, but it's a simple recursive query language for data. Can you even get all results out of a SAT solver or do they stop when satisfia

Re: Questions about a Clojure Datalog

2009-02-05 Thread John Fries
Yes. I can make a strong endorsement for Kodkod, a Java-based relational model finder. http://alloy.mit.edu/kodkod/ I used it fairly extensively last year to solve scheduling problems, and I've corresponded with its creator. One problem with Datalog-style reasoners is that, because they wa

Re: Questions about a Clojure Datalog

2009-02-05 Thread Rich Hickey
On Feb 4, 5:22 pm, John Fries wrote: > Guaranteed-termination is very desirable. However, you can have guaranteed > termination with an open-world assumption just as well. And I think an > open-world assumption does a better job of mimicking human reasoning. > Do you have a specific reasoner/

Re: Questions about a Clojure Datalog

2009-02-04 Thread John Fries
eff...@gmail.com> wrote: > > Well, Datalog does give you guaranteed termination, so there is that, > although its bottom-up strategy is A LOT harder to implement (I'm now > trolling trough about a billion journal articles on "magic sets" and > so on to try to fix this). >

Re: Questions about a Clojure Datalog

2009-02-04 Thread Jeffrey Straszheim
Well, Datalog does give you guaranteed termination, so there is that, although its bottom-up strategy is A LOT harder to implement (I'm now trolling trough about a billion journal articles on "magic sets" and so on to try to fix this). I expect to provide full-on evaluable pred

Re: Questions about a Clojure Datalog

2009-02-04 Thread John Fries
AFAICT, Datalog only supports the closed-world assumption. Does anyone prefer an open-world assumption reasoner? In my opinion, they are significantly more powerful. On Feb 4, 6:16 am, Timothy Pratley wrote: > > providing relations from clojure-sets and sql-queries. > > Wow - th

Re: Questions about a Clojure Datalog

2009-02-04 Thread Timothy Pratley
> providing relations from clojure-sets and sql-queries. Wow - this is really neat Erik - thanks for showing --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloj

Re: Questions about a Clojure Datalog

2009-02-03 Thread Jeffrey Straszheim
-reasoner (www.iris- > reasoner.org) mentioned above. > One thing i added is the possiblity to add clojure-sets as named > relations to a iris datalog program. > All the evaluation is done by iris. The wrapper is part of a larger >

Re: Questions about a Clojure Datalog

2009-02-03 Thread hoeck
One thing i added is the possiblity to add clojure-sets as named relations to a iris datalog program. All the evaluation is done by iris. The wrapper is part of a larger library dealing with lazy relational operators and sets. erik --~--~-~--~~~---~--~~ You received

Re: Questions about a Clojure Datalog

2009-02-03 Thread Jeffrey Straszheim
ng > > primitives that could be used to build the same expression without > > parsing. Then I got somewhat lost and figured I'd call it a night :) > > Did the same thing some time ago. Iris has good (at least good enough) > API docs in pdf and javadoc form. Inspired by the Alleg

Re: Questions about a Clojure Datalog

2009-02-03 Thread hoeck
ules/query, then exposes the underlying > primitives that could be used to build the same expression without > parsing. Then I got somewhat lost and figured I'd call it a night :) Did the same thing some time ago. Iris has good (at least good enough) API docs in pdf and javadoc form.

Re: Questions about a Clojure Datalog

2009-02-02 Thread Jeffrey Straszheim
Datalog is a cool problem. I've started writing some code. The rule-unification part of the algorithm is trivial -- its not even proper unification at all. The hard part seems to be optimising the query strategy to avoid materialising too much. The advantage is you can support rules

Re: Questions about a Clojure Datalog

2009-02-02 Thread Jeffrey Straszheim
It would have been nice if that link was prominent on their website. They still haven't responded to the email I sent them. On Feb 2, 10:13 am, Timothy Pratley wrote: > Just thought I'd share this > link:http://www.murat-knecht.de/schuerfen/irisdoc/html-single/index.html > Particularly Example

Re: Questions about a Clojure Datalog

2009-02-02 Thread Timothy Pratley
Just thought I'd share this link: http://www.murat-knecht.de/schuerfen/irisdoc/html-single/index.html Particularly Examples 1.2 and 1.6 show how the parts fit together. I really wish I saw that before attempting anything :) Well now I know for next time. --~--~-~--~~~--

Re: Questions about a Clojure Datalog

2009-02-02 Thread Timothy Pratley
rsing. Then I got somewhat lost and figured I'd call it a night :) I couldn't find much info (any?) at all on the web about Datalog or how to use IRIS in general... it certainly seems interesting as a solver, but in practical terms how can I take advantage of it? Ok I can think of some cl

Re: Questions about a Clojure Datalog

2009-01-31 Thread Jeffrey Straszheim
I've been doing some more research on this. This article seems a good introduction: http://www.dcc.uchile.cl/~cgutierr/cursos/FDB/p16-bancilhon.pdf It turns out the naive implementation (a bottom-up fixed point iterator) is pretty easy to understand, and would not be hard to implement -- minus

Re: Questions about a Clojure Datalog

2009-01-31 Thread Jeffrey Straszheim
st started learning Clojure. I > > saw it mentioned online that several members of the existing community > > were looking for someone to build a datalog for Clojure: I was > > wondering what exactly you had in mind? > > > Were you thinking of a faithful implementation of th

Re: Questions about a Clojure Datalog

2009-01-30 Thread Jeffrey Straszheim
Doing something like Datalog would be terrific fun. I might contribute if there is interest. I'm not an academic, so most of my contributions would be on a practical level. We'd need someone else to provide the deeper aspects of theory. I've read Norvig's book, and underst

Re: Questions about a Clojure Datalog

2009-01-29 Thread Rich Hickey
On Jan 26, 11:44 pm, smanek wrote: > Hello all, > > I'm a Common Lisp programmer who has just started learning Clojure. I > saw it mentioned online that several members of the existing community > were looking for someone to build a datalog for Clojure: I was > wonderi

Re: On a future Clojure Datalog

2009-01-27 Thread smanek
ing Clojure. I > saw it mentioned online that several members of the existing community > were looking for someone to build a datalog for Clojure: I was > wondering what exactly you had in mind? > > Were you thinking of a faithful implementation of the original Datalog > rule/

On a future Clojure Datalog

2009-01-27 Thread smanek
Hello all, I'm a Common Lisp programmer who has just started learning Clojure. I saw it mentioned online that several members of the existing community were looking for someone to build a datalog for Clojure: I was wondering what exactly you had in mind? Were you thinking of a fai

Questions about a Clojure Datalog

2009-01-27 Thread smanek
Hello all, I'm a Common Lisp programmer who has just started learning Clojure. I saw it mentioned online that several members of the existing community were looking for someone to build a datalog for Clojure: I was wondering what exactly you had in mind? Were you thinking of a fai