Re: [rules-users] Scala-Drools Guvnor
Hi Oggu When you have a property pp in your Scala, the Scala compiler generates a method pp(), not getPp() as Drools and many Java tools expect (the JavaBeans specification). Try this to see what happens; echo 'case class C1 ( pp1: Int, var pp2:String )' case_class.scala scalac case_class.scala javap C1.class | grep pp public int pp1(); public java.lang.String pp2(); public void pp2_$eq(java.lang.String); Instead in Scala you can do: import scala.reflect.{BeanProperty, BooleanBeanProperty} class C1 { @BeanProperty val pp1: Int = 0; @BeanProperty var pp2:String = } 2014-01-25 swaroop swaroop.o...@gmail.com Hi , Does Guvnor or RuleWorkbench support the scala object model(Exported as jar) ? When i tried with simple scala case classes, I was able to upload the model(After adding the scala lib to Guvnor Lib directory) but was not able to see the classes when iam composing a rule . Any pointers would be helpful Regards Oggu -- View this message in context: http://drools.46999.n3.nabble.com/Scala-Drools-Guvnor-tp4027855.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Jean-Marc Vanel Déductions SARL - Consulting, services, training, Rule-based programming, Semantic Web http://deductions-software.com/ +33 (0)6 89 16 29 52 Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] [Announce] EulerGUI 2.0
Hi I am pleased to announce the release 2.0 of EulerGUI, a development tool and a framework for rules and the Semantic Web, under LGPL license, in Java and Scala. As was already told on this list, EulerGUI has Drools under the hood, plus 4 other rules engines, and integration with controled (formal) english ( ATTEMPTO http://attempto.ifi.uzh.ch/site/). EulerGUI does not use POJO classes for business data modelization, but Semantic Web tripleshttp://www.w3.org/2000/10/swap/Primer . The accent in this release is the new N3 file format for projects, that is OWL (and Protégé) compatible. Here is an example: http://svn.code.sf.net/p/eulergui/code/trunk/eulergui/examples/newproject.n3p.n3 EulerGUI has SPARQL queries, drag'n'drop, local cache Apache Jena TDB triple store http://jena.apache.org/documentation/tdb/ and more... The current developments for 2.1 are towards 100% Scala code, modularization, quicker startup, and customizable domain applications based on generic semantic -aware widgets. For a complete list of changes, the change log is here: http://svn.code.sf.net/p/eulergui/code/trunk/eulergui/CHANGELOG DOWNLOAD: https://sourceforge.net/projects/eulergui/files/eulergui/2.0/ And the ever updated User Manual is here: http://svn.code.sf.net/p/eulergui/code/trunk/eulergui/html/documentation.html -- Jean-Marc Vanel Déductions SARL - Consulting, services, training, Rule-based programming, Semantic Web http://deductions-software.com/ +33 (0)6 89 16 29 52 Twitter: @jmvanel ; chat: irc://irc.freenode.net#eulergui ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] [Announce] EulerGUI 1.13
Hi I am pleased to announce the release 1.13 of EulerGUI, a development tool and a framework for the Semantic Web and rules, under LGPL license, in Java and Scala. There was no announcement here on Drools list since version 1.7.1 of EulerGUI in January 2011. As some of you know, EulerGUI is using Drools since beginning of 2009, as an engine for N3 logic (http://www.w3.org/2000/10/swap/doc/Rules) . N3 is a language for the Semantic Web equivalent to RDF, but much easier to read and write by hand. Moreover, N3 has an extension for rules, e.g. : { ?x parent ?y } = { ?y child ?x }. Such rules are translated in Drools language under the hood. This allows to make experts systems without writing any Java class for business domain. Moreover, it' possible to reuse the thousands of ontologies available in search engines. And there are also the hundreds of SPARQL data sources available in the Linked Open Data ( http://linkeddata.org/ ), notably http://dbpedia.org . The improvements since version 1.7.1 mainly concern : - N3 Drools inference engine: more builtins, embedded Java objects, - Semantic Web client GUI for SPARQL queries and update - local Jena TDB database (SPARQL) - generate a project skeleton ontology for missing declarations - new N3 sources : ATTEMPTO Controled English; Squall Controled English for SPARQL - download N3 sources from Internet in multithread, with cache - popup by which it is possible to kill an inference launch - in tools menu, add all referred Ontologies to current project - N3 command line interface ( BasicRuntime ) as a separate program - and many fixes The download is here: https://sourceforge.net/projects/eulergui/files/eulergui/1.13/ Full CHANGES list: https://eulergui.svn.sourceforge.net/svnroot/eulergui/trunk/eulergui/CHANGELOG Documentation: http://eulergui.svn.sourceforge.net/viewvc/eulergui/trunk/eulergui/html/documentation.html -- Jean-Marc Vanel Déductions SARL - Consulting, services, training, Rule-based programming, Semantic Web http://deductions-software.com/ +33 (0)6 89 16 29 52 Twitter: @jmvanel ; chat: irc://irc.freenode.net#eulergui -- Jean-Marc Vanel Déductions SARL - Consulting, services, training, Rule-based programming, Semantic Web http://deductions-software.com/ +33 (0)6 89 16 29 52 Twitter: @jmvanel ; chat: irc://irc.freenode.net#eulergui -- Jean-Marc Vanel Déductions SARL - Consulting, services, training, Rule-based programming, Semantic Web http://deductions-software.com/ +33 (0)6 89 16 29 52 Twitter: @jmvanel ; chat: irc://irc.freenode.net#eulergui ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools + Semantic Web : EulerGUI
It's too bad indeed ! I've looked for a rules, BPMS, inference, IA, Meetup in London, but found none . I can be here longer. I may move my meeup to attend yours. JMV 2012/12/7 Mauricio Salatino sala...@gmail.com Hi Jean-Marc, Ouch! I will be doing a jBPM5 and Drools talk at the same time the same day in the same city! I would love to go and see your talk, I guess that I will miss that this time. Are you going to be around later this week? we can probably arrange to meet. Is the content of the talk gonna be published online somewhere? On Fri, Dec 7, 2012 at 12:53 PM, Jean-Marc Vanel jeanmarc.va...@gmail.com wrote: Hi London Drools users ! I come to London. I'm available for a talk about what I do with Drools + Semantic Web + Controlled English with EulerGUI [1]. I've set a Meetup in London on dec. 12, in need of a location : http://www.meetup.com/LondonSWGroup/events/94447932/ First I'll be in Oxford from today to tuesday at AGI (Artificial General Intelligence) conference [2] . The thread for me there will be how can an agent learn from its experience? . [1] http://eulergui.svn.sourceforge.net/viewvc/eulergui/trunk/eulergui/html/documentation.html#L5890 [2] http://agi-conference.org/2012/ [3] http://www.meetup.com/LondonSWGroup/events/94447932/ -- Jean-Marc Vanel Déductions SARL - Consulting, services, training, Rule-based programming, Semantic Web http://deductions-software.com/ +33 (0)6 89 16 29 52 chat : irc://irc.freenode.net#eulergui ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jugargentina.org - Co-Founder @ http://www.jbug.com.ar - Salatino Salaboy Mauricio - ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Jean-Marc Vanel Déductions SARL - Consulting, services, training, Rule-based programming, Semantic Web http://deductions-software.com/ +33 (0)6 89 16 29 52 chat : irc://irc.freenode.net#eulergui ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] [Announce] EulerGUI 1.8
Hi Reminder The EulerGUI Integrated Development Environment (IDE) allows one to develop and run rules in N3 logic language, applied to data and models in various formats converted in N3 (Notation 3). N3 is a convergence language that allows to express data (facts), classes and properties, and rules. It is the main language for the Semantic Web, being much more readable and concise than RDF (Resource Description Format). Compared to pure point-and-click tools like Protégé, EulerGUI is centered on textual editor for N3 source. EulerGUI is Open Source, written in Java Swing. SWRL rules are executed by a translator into N3 rules. One of the 4 rules engines in EulerGUI is based on a translation of N3 rules onto Drools' DRL language. So Drools in this case is used as a pure rule engine. The main new feature is a 2 clicks tool to add all referred ontologies to current project. This plays particularly well with other features. You can refer to an ontology or vocabulary by using its common prefix in the editor, e.g. : :p a foaf:Person . Then, upon saving the corresponding prefix declaration will be added by looking up the http://prefix.cc web service : @prefix foaf: http://xmlns.com/foaf/0.1/ . Then with the new feature, you can actually add the URI of the FOAF prefix to the project, which downloads the FOAF ontology as N3. You can then consult the FOAF ontology in the N3 editor, to discover all available properties and classes. These properties' label and RDF comments are also visible in the editor as tooltips. You can also launch the OWL reasoner, which shows a tree view of classes in FOAF and in all N3 sources in project. The second new feature is a button to stop the current inference engine. This is useful when a bad rule base goes into an infinite loop. As a side dish, there is a rule base that acts as a helper for documenting a rule base. That is, every non declared property generates a skeleton declaration; the same for undeclared classes. Here is a how-to: http://eulergui.svn.sourceforge.net/viewvc/eulergui/trunk/eulergui/html/documenting_rule_base.html Download from https://sourceforge.net/projects/eulergui EulerGUI Manual here: http://eulergui.svn.sourceforge.net/viewvc/eulergui/trunk/eulergui/html/documentation.html -- Jean-Marc Vanel Déductions SARL - Consulting, services, training, Rule-based programming, Semantic Web http://jmvanel.free.fr/ - EulerGUI, a turntable GUI for Semantic Web + rules, XML, UML, eCore, Java bytecode +33 (0)6 89 16 29 52 -- +33 (0)1 39 55 58 16 ( we rarely listen to voice messages, please send a mail instead ) -- Jean-Marc Vanel Déductions SARL - Consulting, services, training, Rule-based programming, Semantic Web http://jmvanel.free.fr/ - EulerGUI, a turntable GUI for Semantic Web + rules, XML, UML, eCore, Java bytecode +33 (0)6 89 16 29 52 -- +33 (0)1 39 55 58 16 ( we rarely listen to voice messages, please send a mail instead ) -- Jean-Marc Vanel Déductions SARL - Consulting, services, training, Rule-based programming, Semantic Web http://jmvanel.free.fr/ - EulerGUI, a turntable GUI for Semantic Web + rules, XML, UML, eCore, Java bytecode +33 (0)6 89 16 29 52 -- +33 (0)1 39 55 58 16 ( we rarely listen to voice messages, please send a mail instead ) -- Jean-Marc Vanel Déductions SARL - Consulting, services, training, Rule-based programming, Semantic Web http://jmvanel.free.fr/ - EulerGUI, a turntable GUI for Semantic Web + rules, XML, UML, eCore, Java bytecode +33 (0)6 89 16 29 52 -- +33 (0)1 39 55 58 16 ( we rarely listen to voice messages, please send a mail instead ) ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] [Announce] EulerGUI 1.2.1 + Déductions application generator
The preceding announce on this list was on february 23: http://www.nabble.com/EulerGUI-released---IDE-for-semantic-Web-with-Drools-engine-and-Drools-export-td22164229.html In short, EulerGUI is an IDE centered around a Semantic Web language called N3 http://www.w3.org/2000/10/swap/Primer. N3 is a good candidate for a universal data + models + rules + queries textual language. The RDF subset of N3 is perfectly isomorphic to RDF, but as human readable as can be. And it is readable by Protégé, Jena, and others tools. The OWL (ontology) modeling language, being expressed as RDF, is thus also expressible in N3. Here is an example for an OWL model : :Person a owl:Class . :namea owl:DatatypeProperty ; rdfs:domain :Person ; rdfs:range xsd:string ; rdfs:comment First name and last name ; rdfs:label name . :Address a owl:Class . :hasAddressa owl:ObjectProperty ; rdfs:domain :Person ; rdfs:range :Address ; rdfs:comment click to enter address@en ; rdfs:label address . Here is an example of a simple rule in N3 logic : { ?C hasParent ?P. ?P hasBrother ?B } = { ?C hasUncle ?B }. This rule is translated into Drools, giving this: rule family-rules.n3 0 when Triple( $C : subject, predicate == file:/home/jmv/family-rules.n3#hasParent, $P : object ) Triple( subject == $P, predicate == file:/home/jmv/family-rules.n3#hasBrother, $B : object ) not( Triple( subject == $C, predicate == file:/home/jmv/family-rules.n3#hasUncle, object == $B ) ) then Triple newTriple; newTriple = new Triple( $C, file:/home/jmv/family-rules.n3#hasUncle, $B ); insert( newTriple ); endncle, $B ); insert( newTriple ); end As you can see, a negation of the consequent (RHS) is added in the antecedent, to avoid extra responses. This is one of the new features. The others are : - thanks to relative file or URL's for source files and subprojects, a whole project can be opened from a single URL - subprojects and pipeline of projects (alias post-processing project) - open UML or eCore documents; they are translated into N3 - drag'n'drop of URL ending with .n3, .rdf, .owl, .uml, .xmi, or .ecore, - rule sets to translate UML and eCore class models into OWL; for example EulerGUI translates the whole of the UML 2 metamodel from an eCore file The rule base, the models, and the data are exportable for using with Drools independently. So, for the Drools community, EulerGUI allows to import models and data from N3, RDF, OWL, UML, eCore documents. Also for some people, writing N3 rules can be easier than Drools language. As you see above, the translation makes use of a particuliar form of Drools language, which makes use of a single Java class, Triple, that models RDF statements. This is quite far from the intended Drools usage, but it shows the power and flexibility of Drools. When embedded into generated Java Swing applications, a Drools engine is able to generate a form in a few milliseconds from the class model! Also this design, based on a single Java class, allows to add and remove business classes at runtime. The EulerGUI documentationhttp://eulergui.svn.sourceforge.net/viewvc/eulergui/trunk/eulergui/html/documentation.html . Déductions is a Java Swing application generator from OWL models and N3 logic rules. The User Manual for the application generatorhttp://deductions.svn.sourceforge.net/viewvc/deductions/html/GUIgenerator.html. -- Jean-Marc Vanel Consulting, services, training, Rule-based programming, Semantic Web http://jmvanel.free.fr/ +33 (0)6 89 16 29 52 -- +33 (0)1 39 55 58 16 ( we rarely listen to voice messages, please send a mail instead ) ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] EulerGUI released - IDE for semantic Web with Drools engine and Drools export
2009/2/24 Andrew Waterman andrew.water...@gmail.com Hi Jean-Marc, Are you using the template functionality in Drools 5.0 for OWL? We use Drools for expressing models/games down here and I have been looking for an approach that would provide a more generic way of defining data-models and rules that act on them. No, you probably understood that I'm using from Drools just the inference engine, and provide a different interface to it through the N3, RDF and OWL inputs. That being said, I had a look at template and I see common feature with what I do, namely that : Decision tables also provide a degree of insulation from the underlying object model which is very much the case with N3 rules. With N3 rules, you only really care to define classes if you want to reason on classes themselves as data, or if you want to reason on inheritance, or generic properties like transitivity , etc . Also, I wonder if you've looked at Miles Parker's MetaScape ABM modeling plugin for Eclipse. It's a different area, but he has put together a very nice visual way of working with both models (data) and actions (rules). I'll download and test it, but this is an approach based on eclipse and EMF, like ATL, QVT and other stuff, which are interesting. And I've been working 2 years in a software company for an EMF like UML architecture, so I know what I am talking about. But I believe in the future of Logic and AI - based approches, as much independent on infrastuctures as possible. And eclipse is definitely not a light-weight infrastructure. My goal with EulerGUI, and the larger project Deductions ( http://deductions.sourceforge.net/) is to be able to generate (to infer) as much as possible of an application, on several platforms. -- Jean-Marc Vanel http://jmvanel.free.fr/ ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Re: EulerGUI released - IDE for semantic Web with Drools engine and Drools export
Hi Sorry for the inconvenience. Since I uploaded it yesterday on Sourceforge, the EulerGUI release is *not available* for download. Sourceforge is unable to tell a time for solving the problem. I'll let you know. JMV 2009/2/23 Jean-Marc Vanel jeanmarc.va...@gmail.com ... Download from https://sourceforge.net/projects/eulergui Manual here: http://eulergui.svn.sourceforge.net/viewvc/eulergui/trunk/eulergui/html/documentation.html -- Jean-Marc Vanel http://jmvanel.free.fr/ -- Jean-Marc Vanel http://jmvanel.free.fr/ ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] EulerGUI released - IDE for semantic Web with Drools engine and Drools export
Hi As some of you know, I'm using Drools as an engine for N3 logic ( http://www.w3.org/2000/10/swap/doc/Rules) . N3 is a language equivalent to Semantic Web's RDF language, but much easier to read and write by hand. Moreover, N3 has, on top of RDF, an extension for rules, e.g. : { ?x parent ?y } = { ?y child ?x }. Among many other vocabularies searchable on search site Swoogle ( http://swoogle.umbc.edu/), there is OWL, (OWL Web Ontology Language) that allows to express in RDF, and thus in N3, rich models with classes, properties, inheritance and constraints. So in summary, N3 is a user-friendly language allowing to express facts, class and properties, and rules. So what does that bring for Drools users ? One use case : - open any number of RDF / OWL / N3 documents - test and debug the rules using 3 rule engines (Drools, Euler, CWM) - export all that project as a set of Drools packages, plus the facts in XMLEncoder format ( by clicking on File / Export as Drools ) You can also use standard Semantic Web tools such as Protégé and Swoop to edit and visualize RDF and OWL files. Moreover, there are, as part of the Euler project, a library of N3 rules that implement the logic of OWL and RDF Schema (transitive property, inheritance, etc), and other goodies, see: http://eulersharp.svn.sourceforge.net/viewvc/eulersharp/trunk/2003/03swap/rpo-rules.n3 I translate N3 logic into Drools language, using just two classes corresponding to Triple (statement) ( explanations here : http://eulergui.svn.sourceforge.net/viewvc/eulergui/trunk/eulergui/html/documentation.html#Translatin). Download from https://sourceforge.net/projects/eulergui Manual here: http://eulergui.svn.sourceforge.net/viewvc/eulergui/trunk/eulergui/html/documentation.html Enjoy ! I've been working on this for several months, so it's beginning to stabilize. But the rich set of built-in functions for other N3 engines is still missing, with a few exceptions. I'm using this framework currently to generate GUI's from domain models ( rules are here : http://deductions.svn.sourceforge.net/viewvc/deductions/n3/). You will be glad to read that it runs around 2 seconds including compilation, compared to the other engine (in Prolog) I use, which need hundreds of seconds (actually a high complexity). A forward chaining engine seems to make sense for such a constructive task. I also wrote a How To about what I do currently with EulerGUI : Deduction project - Java Swing application generator from OWL model and N3 logic rules http://deductions.svn.sourceforge.net/viewvc/deductions/html/GUIgenerator.html Deduction project is work in progress. -- Jean-Marc Vanel http://jmvanel.free.fr/ ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users