Re: [rules-users] Without salience

2012-09-04 Thread Vincent LEGENDRE
If it works with salience, why change ? 
And why is the order so important ? Still trying to get the first occurence of 
an event of a given type/value ? 
It remembers me some not-so-old post ... 

- Mail original -

De: salt writemesaltwo...@gmail.com 
À: rules-users@lists.jboss.org 
Envoyé: Mardi 4 Septembre 2012 06:17:16 
Objet: [rules-users] Without salience 


Hi All, 

For the below use case i have implemented the rule. Please suggest other way 
of doing without salience. 

scenario 

ITEMS AMOUNT OCCNO 

PASS 10 1 

FAIL 10 2 

PASS 15 3 

PASS 25 4 


rule HelloWorld_14 
salience (65522- $list.indexOf( $transdet1 )) 
when 

$p1:Passes($list : transaction) 
$trans1:Transaction(items in (PASS)) from $list 
$p2:Passes() 
not(exists($transdet5:Transaction(items in 
(FAIL),value==$transdet1.getVaue(), occno$trans1.getOccno()) from 
$p2.transaction)) 
then 
System.out.println($trans1.getOccno()); 
end 

The above will return 

3 

4 (not 4,3) 

Kindly suggest other way of doing this without salience. 


Thanks 
Salt 



-- 
View this message in context: 
http://drools.46999.n3.nabble.com/Without-salience-tp4019565.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 

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Without salience

2012-09-04 Thread Wolfgang Laun
The rule is very peculiar, and I'm not sure what you want to find with
it. See below.

On 04/09/2012, salt writemesaltwo...@gmail.com wrote:


 rule HelloWorld_14
   salience (65522- $list.indexOf( $transdet1 ))
   when
   
   $p1:Passes($list : transaction)
   $trans1:Transaction(items in (PASS)) from $list
   $p2:Passes()
   not(exists($transdet5:Transaction(items in
 (FAIL),value==$transdet1.getVaue(), occno$trans1.getOccno()) from
 $p2.transaction))

Why are you using the complex in operator when you test against a
single String value?

I suppose getVaue() contains a typo.

There is an unbound variable $transdet1.

The 3rd and 4th conditional elements match another Passes fact, which
could be the one bound to $p1 - or not. If you mean that $p1 == $p2,
simply omit the second CE with Passes and use $p1.

Don't use different accesses for the same thing (i.e., $list vs.
$p1.transation) as this is confusing.

-W

   then
   System.out.println($trans1.getOccno());
 end

 The above will return

 3

 4   (not 4,3)

 Kindly suggest other way of doing this without salience.


 Thanks
 Salt



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Without-salience-tp4019565.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

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] 2nd CFP Semantic Web Applications and Tools for the Life Sciences (SWAT4LS 2012)

2012-09-04 Thread Adrian Paschke
2nd Call for Papers  - Submission Deadline in 3 Weeks

5th International Workshop on Semantic Web Applications and Tools for the Life 
Sciences (SWAT4LS 2012)
http://www.swat4ls.org/workshops/paris2012

 NEWS 
Submission system has been opened - submission deadline in 3 weeks!
http://www.easychair.org/conferences/?conf=swat4ls2012

First program structure, keynotes  tutorials announced 
http://www.swat4ls.org/workshops/paris2012/scientific-programme/


Overview

Since 2008, SWAT4LS is a workshop that has provided a platform for the
presentation and discussion of the benefits and limits of applying web-based
information systems and semantic technologies in the domains of health care
and life sciences.
SWAT4LS has been in Edinburgh (2008), Amsterdam (2009), Berlin (2010) and
London (2011).
Growing steadily each year as Semantic Web applications have become more
widespread, the program of SWAT4LS has grown to include associated events.
The next edition of SWAT4LS will be held in Paris, on November 30th 2012,
and it will be preceded by two days of tutorials and hackathons.

We are confident that the next edition of SWAT4LS will provide the same open
and stimulating environment that brought together researchers, developers,
and users, from various fields including biomedical informatics, systems
biology, computational biology, drug discovery, bioinformatics and
biocomputing, to discuss goals, current limits and real experiences in the
use of Semantic Web technologies in Life Sciences.


Rationale

The web is a key medium for information publishing, and web-based
information systems play a key role in biomedical information exchange and
integration. At the same time, the variety and complexity of biomedical
information call for the adoption of semantic-based solutions.
The Semantic Web provides a set of technologies and standards that are key
to support semantic markup, ontology development, distributed information
resources and collaborative social environments.
Altogether the adoption of the web-based semantic-enabled technologies in
the Life Sciences has potential impact on the future of publishing,
biological research and medicine. This workshop will provide a venue to
present and discuss benefits and limits of the adoption of these
technologies and tools in biomedical informatics and computational biology.
It will showcase experiences, information resources, tools development and
applications. It will bring together researchers, both developers and users,
from the various fields of Biology, Bioinformatics and Computer Science, to
discuss goals, current limits and some real use cases for Semantic Web
technologies in Life Sciences.


Topics

Topics of interest include, but are not limited to:

Standards, Technologies, Tools for the Semantic Web: 

- Big Metadata
- Semantic Web standards and new proposals (e.g.: RDF, OWL, SKOS, SPIN,
RuleML, Microformats)
- Tools for ontology editing, annotation, versioning and provenance
management
- RDF stores, NoSQL, reasoners, query and visualization systems
- Knowledge representation for biomedical knowledge bases
- Query federation systems for distributed knowledge and data discovery
- Tools for semantics-enabled web publication

Systems for a Semantic Web for Bioinformatics: 

- Biomedical knowledge bases on the Semantic Web
- Semantic biomedical Web Services
- Semantics-enabled biomedical information systems and solutions
- Linked Data for biomedical research
- Semantic Scientific Workflow Systems

Existing and prospective applications of the Semantic Web for
Bioinformatics: 

- Semantic Wikis
- Semantic collaborative research environments
- Semantic crowdsourcing and collective intelligence
- Alternative approaches to biomedical metadata generation and management
- Methods for data sharing and open data
- Approaches to data privacy and security
- Case studies, use cases, and scenarios



Type of contributions

The following possible contributions are sought:
- Research papers
- Position papers
- Posters
- Software demos



Proceedings

Proceedings of SWAT4LS will be published in CEUR Workshop proceedings.
Please refer to the SWAT4LS website for detailed formatting instructions
prior to submission:
http://www.swat4ls.org/workshops/paris2012/call/



Special issue

Authors of accepted contributions to the upcoming edition of SWAT4LS will be
invited to submit to a special issue of the BMC Journal of Biomedical
Semantics.



Deadlines

Expression of interest for tutorials:   5th July 2012
Submission opening: 3rd September 2012
Papers submission deadline (abstracts): 28th September 2012
Papers submission deadline (full text): 9th October 2012
Early registration deadline:

Re: [rules-users] Reg. Iterating over a list

2012-09-04 Thread Phani Saripalli
Oh Ok, I get the point. The engine evaluates all the patterns when the
current rule is being evaluated. And I have (!size(append(list, number)) 
0) on the LHS, and so the append function is being evaluated. 
Is it possible to command the engine to not check patterns of a certain
rules or certain agenda groups.


BR
Phani 



--
View this message in context: 
http://drools.46999.n3.nabble.com/Reg-Iterating-over-a-list-tp4019512p4019572.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


Re: [rules-users] Reg. Iterating over a list

2012-09-04 Thread Wolfgang Laun
On 04/09/2012, Phani Saripalli saripalli.ph...@gmail.com wrote:
 Oh Ok, I get the point. The engine evaluates all the patterns when the
 current rule is being evaluated. And I have (!size(append(list, number)) 
 0) on the LHS, and so the append function is being evaluated.
 Is it possible to command the engine to not check patterns of a certain
 rules or certain agenda groups.

No. - And this wouldn't avoid problems resulting from side effects on the LHS.

-W




 BR
 Phani



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Reg-Iterating-over-a-list-tp4019512p4019572.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

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] DSL Usage in Eclipse

2012-09-04 Thread dme1
Hi,

I am trying to create DSL and use the DSL in the Eclipse Guided Editor. I am
facing some difficulties in using DSL in the Guided Editor and have listed
these below. Would appreciate someone can advise how to get over there.

1. When using the DSL Editor, the DSL file containes [condition] and
[consequence] instead of [when], [then] (See below). Due to this the Guided
Editor does not show the Conditions or Actions (when pressing Ctrl+Space
Bar). The rule however executes correctly (and shows correctly in the DRL
Viewer) so the issue seems to be with the Guided Editor only

http://drools.46999.n3.nabble.com/file/n4019575/dsleditor2.jpg 

http://drools.46999.n3.nabble.com/file/n4019575/DSLEditor.jpg 

2. If I have the DSLs broken into multiple DSL files, then the Guided Editor
does not recognize this. Even the DRL Viewer gives an error (the error does
not occur if I combine the 2 DSLs into a single DSL). See below. Again the
code works so seems to be an error with the Editor only.

http://drools.46999.n3.nabble.com/file/n4019575/multiple_expander1.jpg 

http://drools.46999.n3.nabble.com/file/n4019575/multiple_expander2.jpg 

3. Using the DSL below, if I enter the when part in the DSLR 
(E.g.rule Validate Fight Type
//include attributes such as salience here...
when
//conditions
For a Flight with
- flight type is 'LH')
Then the Guided Editor for the Action/Then part stops working (i.e. I do not
get any hints when pressing Ctrl+Space in the action part in the Guided
Editor). If I however remove the entries in the Condition/When section of
the rule, the Action now shows the correct hints.

http://drools.46999.n3.nabble.com/file/n4019575/dsl.jpg 

4. Finally if I create a DSL for the basic operators and use them in the
DSLR, the DSLR is not formed correctly (You can see the - in the field of
the Object in the last image). Based on the documentation this should have
just added the field with the -, and if I remove the - it is treated as
a separate condition instead of a field of the Object - this part is as
expected.

Below I have the DSL and the DRL View of the Rules/DSLR.

http://drools.46999.n3.nabble.com/file/n4019575/basic_operators.jpg 

http://drools.46999.n3.nabble.com/file/n4019575/basic_operators2.jpg 

http://drools.46999.n3.nabble.com/file/n4019575/basic_operators3.jpg 

Thanks,
dme






--
View this message in context: 
http://drools.46999.n3.nabble.com/DSL-Usage-in-Eclipse-tp4019575.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