Web services and Drools
by riri
Hello everyone,
I need to develop a web application that includes Drools as its rule engine
and would like to expose its functionality as web services. I would
appreciate some expert opinion on which framework would be easiest to learn
and to work with. Some of the posts I have seen regarding Drools and OSGi
refer to it as a "nightmare". Is that still true with the current version?
If anyone has had any experience with Spring, EJB or other and would like to
share I would be very interested since I am new to this domain. If there is
a case to be made about not using a framework at all then I would also like
to hear you out.
Best regards,
--
View this message in context: http://drools.46999.n3.nabble.com/Web-services-and-Drools-tp4021509.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 2 months
Stuck on simple testcase
by Michiel Vermandel
Hi,
I wrote a quite simple unit test which I expected to succeed.
But it does not, it ends with a negative score.
Though, it is easy to see on sight that there is a zero-score solution possible.
So... something must be wrong in some of my rules.
I was wondering if it is possible to manually set all planning variables to what I expected them to be and then see which rule(s) break(s)?
So planning variables should not be changed anymore while solving.
I'm using drools planner 5.5.0.Final.
Thanks,
Michiel
-----------------
http://www.codessentials.com - Your essential software, for free!
Follow us at http://twitter.com/#!/Codessentials
13 years, 2 months
Hello and my first question
by Bojan Janisch
Hello everybody,
this is my first post and also my first question to you.
I've searched the net for quite some hours now, but don't get any information regarding optionally conditions.
I'm using drools to annotate some textobjects and I'm stucking with the following rule:
When there are two named entities, one body side and one anatomy in a text (they're defined earlier by a textannotating system, so I'm working on annotated objects) and there is a optionally anatomic side (it contains generally something like "lateral" oder "medial" and so on), then generate me a new annotation.
So up to now I'm on this state:
Rule "Anatomic Side"
when
$NE1 : NE(Type.contains("body"))
$NE2 : NE(Type.contains("anatomy"))
//So here starts the problem
[$NE3 : NE(Type.contains("anatomic"))]
then
...
How can I set a condition as optionally or is there no such way?
Thanks everyone to who reads this.
Janisch
13 years, 2 months
Re: [rules-users] Solution
by Wolfgang Laun
On 14/01/2013, Bojan Janisch <bojan.janisch(a)scai.fraunhofer.de> wrote:
>
> so if someone has the same problem, to get some options how to solve this
> problem.
Posting code that's grossly syntactically invalid isn't going to help.
-W
13 years, 2 months
Solution for reasoning over XML?
by craigparra
Hi,
I was looking around trying to find a solution for reasoning over any XML in
drools, without having to convert the XML into java objects, but couldn't
find any example where this had been done.
I have opted to DOM parse the XML, then recursively wrap every Element node
in a convenience class (XmlElement) and insert as facts. That is every
element is inserted individually as a fact.
My conditionals look like:
$xml : XmlElement(name == 'someName', value == 'someValue')
$xml : XmlElement(path== '/some/xpathlike/path', value == 'someValue')
$xml : XmlElement(attribute['someAttr'] == 'someValue')
or using a DSL:
An XML element exists
- named someName with a value of
- at path /some/xpathlike/path with a value in "someVal","someOtherVal"
Is this a pattern that other drools users have encountered? Or tried to
solve.
It seems to work quite well, at least in my scenario - but clearly it has
limitations based on the DOM parse (ie not great for massive XML files).
Was wondering if anyone else had tried to solve how to use XML as facts?
--
View this message in context: http://drools.46999.n3.nabble.com/Solution-for-reasoning-over-XML-tp40214...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 2 months
Add another "result" to execution results in Drools Server
by dunnlow
Hi, I'm using Drools Server 5.4.
I have a bean that I am sending to the drools execution server. The server
is processing the object and modifying it as expected - I see the expected
changes to the object in the XML (execution results) returned from the
server.
I would LOVE for my rules to be able to insert *another* object into the
execution results (currently it just returns the one I sent in - with
changes).
Is that possible? I have tried *insert*, but that clearly just adds it to
working memory.
ps. I am thinking about sending an empty instance of the second object
(which I'm guessing..hoping I would be able to update). Is there a better
way?
Thanks,
-J
--
View this message in context: http://drools.46999.n3.nabble.com/Add-another-result-to-execution-results...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 2 months
RuleML 2013: 7th International Web Rule Symposium
by Adrian Paschke
-----Original Message-----
From: Adrian Paschke [mailto:paschke@inf.fu-berlin.de]
Sent: Freitag, 11. Januar 2013 09:24
To: 'logic(a)math.uni-bonn.de'
Subject: RuleML 2013: 7th International Web Rule Symposium
Call for Papers
RuleML 2013: 7th International Web Rule Symposium
Seattle Metropolitan Area, USA, July 11-13, 2013
http://2013.ruleml.org
The annual International Web Rule Symposium (RuleML) is an international conference on research, applications, languages and standards for rule technologies. RuleML is the leading conference for building bridges between academia and industry in the field of rules and its applications, especially as part of the semantic technology stack. It is devoted to rule-based programming and rule-based systems including production rules systems, logic programming rule engines, and business rules engines/business rules management systems; Semantic Web rule languages and rule standards (e.g., RuleML, SWRL, RIF, PRR, SBVR); Legal RuleML; rule-based event processing languages (EPLs) and technologies; hybrid rule-based methods; and research on inference rules, transformation rules, decision rules, production rules, and ECA rules.
The 7th International Symposium on Rules and the Web (RuleML 2013) will be held on July 11-13, 2013 just prior to the AAAI conference in the Seattle Metropolitan Area, Washington. Selected papers will be published in book form in the Springer Lecture Notes in Computer Science (LNCS) series.
Objectives
==========
RuleML-2013 will stimulate cooperation and interoperability between research and business in a community of researchers and practitioners who are interested in the theory and applications of rules. The symposium's areas of research and development have helped drive the rapid progress in technologies for practical rule and event processing. As a result,
RuleML-2013 promises to be an exciting venue for the exchange of new ideas and experiences on issues related to engineering, management, integration, interoperability of rule systems, and interchange of rules in distributed enterprise, intranets, and open distributed environments. Industry practitioners, rule-system providers, users of rules, technical experts and developers, and researchers who are exploring foundational issues, developing systems and applications, or using rule-based systems are invited to share ideas, results, and experiences.
The RuleML2013 Conference is also hosting
- The 7th Int. Rule Challenge: Further information and a separate call for papers and demos for the challenge will be forthcoming.
- The 3rd Doctoral Consortium on Rules: Further information and a separate call for papers and demos for the challenge will be forthcoming
- An OASIS Legal RuleML TC Meeting and Tutorial
Topics
=======
We invite high-quality submissions related (but not limited) to one or more of the following topics:
* Rules and automated reasoning
* Rule-based policies, reputation, and trust
* Rule-based event processing and reaction rules
* Rules and the web
* Fuzzy rules and uncertainty
* Logic programming and nonmonotonic reasoning
* Non-classical logics and the web (e.g modal and epistemic logics)
* Hybrid methods for combining rules and statistical machine learning techniques (e.g., conditional random fields, PSL)
* Rule transformation, extraction, and learning
* Vocabularies, ontologies, and business rules
* Rule markup languages and rule interchange formats
* Rule-based distributed/multi-agent systems
* Rules, agents, and norms
* Rule-based communication, dialogue, and argumentation models
* Vocabularies and ontologies for pragmatic primitives (e.g. speech acts and deontic primitives)
* Pragmatic web reasoning and distributed rule inference / rule execution
* Rules in online market research and online marketing
* Applications of rule technologies in health care and life sciences
* Legal rules and legal reasoning
* Industrial applications of rules
* Controlled natural language for rule encoding (e.g. SBVR, ACE, CLCE)
* Standards activities related to rules
* General rule topics
Conference Chairs
=================
Adrian Paschke (Freie Universitaet Berlin, Germany)
Program Chairs
===============
Leora Morgenstern (Science Applications International Corporation, USA)
Petros Stefaneas (NTUA, Greece)
Important Dates
===============
Abstract submission: Feb. 19, 2013
Paper submission: Feb. 20, 2013
Notification of acceptance/rejection: April 12, 2013 Camera-ready copy due: May 3, 2013
RuleML-2013 dates: July 11-13, 2013
Submission guidelines
=====================
Papers must be original contributions written in English and must be submitted at http://www.easychair.org/conferences/?conf=ruleml2013 as:
* Full Papers (15 pages in the proceedings)
* Short Papers (8 pages in the proceedings)
Please upload all submissions in LNCS format (http://www.springer.de/comp/lncs/authors.html). To ensure high quality, submitted papers will be carefully peer-reviewed by 3 PC members based on originality, significance, technical soundness, and clarity of exposition.
Selected papers will be published in book form in the Springer Lecture Notes in Computer Science (LNCS) series.
13 years, 2 months
14GB of NotNodeLeftTuples produced by one rule?
by Svenja Brunstein
Hi all,
we observe a strange behavior with one of our rules. After deployment
and sending lots of events (~150,000 of type "a"), the server slows down
rapidly until it runs out of memory.
We checked with VisualVM which objects are filling the memory: In one
moment there were almost 14GB of NotNodeLeftTuples (88,933,186 Instances)!
This is our rule:
rule "example"
when
$evt1:EventObject(type=='a', $id:data['id'], $user:user) from entry-point
internalstream
$evt2:EventObject(type=='a', data['id']==$id, user!=$user, $user2:user)
from entry-point internalstream
not(EventObject(type=='b', user==$user, data['friendid']==$user2) from
entry-point internalstream)
then
EventObject evt = new EventObject();
evt.setType('b');
evt.setUser($evt1.getUser());
evt.put('friendid', $evt2.getUser());
entryPoints['internalstream'].insert(evt);
end
Is that behavior correct for such a size of event combinations when using a
NOT in the rule?
Thanks,
Svenja
13 years, 2 months