Prolog engine in Java
Hallo.
I have joined AI project.
This project is based on Java.
We need rule engine like Prolog.
I searched in google and found lots of examples of Prolog engines in java.
Have anyone worked with them?
Are there other ideas in rule managing in java?
Is there something like Prolog engine API for java?
What API-prolog-java project is better?
What is more useful Prolog or Rete-algorithm?
May be I am a bit late but anyway.. There is a small but powerful Java-Prolog project called PROL and it is accessible through the link [http://igormaznitsa.com/projects/prol/index.html|http://igormaznitsa.com/projects/prol/index.html] , it is not an opensource project but it is absolutely free for any kind of use
Edited by: raydac on Sep 14, 2010 2:16 PM
Similar Messages
-
Reverse engineering in Java Studio Enterprise 8.1
I tried to do the reverse engineering in Java Studio Enterprise 8.1.
The Reverse Engineering process launches which I can tell from the output log,
but I didn't see any diagram generated. What could be the problem?
Thanks!to see if the relationships are in the model, try to expand the class and interface nodes and they should have something like the following. If these are absent, there might be something in the reverse engineering process that lost the relationships.
- package1
- class1
- Relationships
- Implementation
+ interface1
- package2
- interface1
- Relationships
- Implementation
+ class1
As for sequence diagram, not sure how you created it. If you just cdfs the classes, you should not see any message except for the lifelines that represent the classes. If you select an operation of a class to do cdfs or reverse engineer operation, the sequence diagram will be generated. -
Hi.
I've been looking at the options of 3D engines for Java. Obviously, the first place I looked was at Java3D. But I've heard that it can be slow at times - I also happen to think it is a good, high-level API.
I've looked briefly at products such as gl4java, VTK and Jazz3D.
I'd like to know some pro's and cons for Java3D, and the above, and other, engines.
What I need is X3D support, and the ability to draw shapes over a background image, and of course, for this to be fast : )
I'm hoping you can give me some idea as to which APIs are better.
thanks
jamesThere are others too...
A JOGL-based scenegraph-API like xith3d...has no website i assume, but here's a thread about it:
http://www.javagaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1060308805
Openmind (mentioned before, but here's the link):
http://www.mind2machine.com
jPCT (a little different from the others, because it does software and hardware rendering...anyway...):
http://www.jpct.net
and a thread about it:
http://www.javagaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=3D;action=display;num=1061478645
There are even more, but most of them are rather outdated and unsupported. Hope this helps. -
I am working on serarch engine in java want help from you
Hi I am making some kind of search engine in java.In which i want to search initials from database(ms access)
suppose to search united states of america
we type usoa
so how can i do that
from where to i start
can anybody plz.........
Edited by: Karamjeet on Jul 2, 2009 12:06 PMFirst of all, don't make your own search engine from scratch. An example of a good usable base for many kinds of search engines is Lucene
Second, use a real database and not ms access. If all you need to do is to search for some patterns in some db columns, indexing and sql queries is probably all you need. -
UML modeling by reverse-engineering a JAVA project
I can't seem to get over a basic hurdle to get started with UML modeling. I open an existing JAVA project. I then start a new project and choose "UML" and "-Platform model by reverse-engineering a JAVA project". Next I give the UML project a name and try to open my existing JAVA project. But the wizard does not show any project!
Appreciate your help.
PhilUML in JSE8 can reverse engineer all 4 built-in types of Java project defined in IDE. To prove that, I just downloaded apache ant source 1.6.5 from http://ant.apache.org/srcdownload.cgi and successfully reverse engineered it with JSE8.
If you have a project with existing ant script , it's extremely easy, you absolutely don't need to hand-create a java project from scratch to specify source, library dependency etc. Just follow the wizard "create a Java project with existing ant script" to specify your Java project location, the ant script location, and * don't forget * to specify the source location. Any project without source folder specified is not considered a valid candidate for Reverse Engineer, and you won't see it listed under the project chooser in UML wizard when trying to associate the current UML project with a Java project. Please right click to bring up your source project properties to verify if you have source package folder correctly spelled out.
It IS a supported feature, do let us know if you still have troubles to RE your project. -
Call visual prolog program from java
Hi friends,
is there someone help me to call ( run) prolog program from java.
i write a parser with Javacc parser generator and stored parsed information in prolog database and I want create some query in java that work in the prolog file.
how can i combine java and prolog programs. i used visual prolog.
Can someone help me?
Thanks you in advance.
yours sincerely,
ksuSince visual prolog can produce dll's, you can use JNI:
http://java.sun.com/j2se/1.4.2/docs/guide/jni/index.html -
Hi all. I'm trying to make a fuzzy engine for Java, and I hope you can try it. should there be any trouble/bug,please don't hesitate to ask me.thx^^
Features:
-Human-Like modelling language for rules
-Setting Fuzzy Model via XML File
-XML schema for XML file
-Ruleblock
-etc
Link:
[Download Here|http://geekandphilosophy.blogspot.com/2010/06/fuzzy-engine-for-gaming-using-java.html]Could any body in the hood aid me with links or
references to java source code to develop a simple
search engine?my email address is [email protected]
Thanx in advance....I am not sure but I remeber seeing one at sourceforge.net you could try that. -
Simple Interactive exam engine using Java
Hi all,
I am trying to develop a new interactive quiz engine using Java. I am new to the java programming. Is there any place where I can download the source code to refer? Any help would be greatly appreciatedjavabegin wrote:
I am trying to develop a new interactive quiz engine using Java. I am new to the java programming. Is there any place where I can download the source code to refer? Any help would be greatly appreciatedThis is somewhat a strange request, and one that is short on details. What are you looking for? Command line or GUI? If GUI, Swing? AWT? SWT? or completely different platform? Database based or not? Or is this a class assignment? Have you searched the forum? google? -
Error when invoking Rule Engine using Java API
Hi,
I have implemented a Java class which calls the Rule Engine to execute the rules. If I test by setting the value of the input inside a main method and get the output, it is working fine. The ruleset is also invoked and there is no problem. However, when I expose this java class as a web service and invoke the web service, I get the below error. I dont get the error if the .rules file is not present in the loaction mentioned. I get the error when the .rules file is present in the location. Not sure if this is an issue with the java call outs or loading the dictionary.
Error:_
<faultcode>S:Server</faultcode>
<faultstring>oracle/rules/sdk2/exception/SDKException</faultstring>
<ns2:exception xmlns:ns2="http://jax-ws.dev.java.net/" note="To disable this feature, set com.sun.xml.ws.fault.SOAPFaultBuilder.disableCaptureStackTrace system property to false" class="java.lang.NoClassDefFoundError">
<message>oracle/rules/sdk2/exception/SDKException</message>
<ns2:stackTrace>
<ns2:frame line="38" file="ImplementRules.java" method="Query" class="oracle.rules.querystudentcriteria.ImplementRules"/>
<ns2:frame line="native" file="NativeMethodAccessorImpl.java" method="invoke0" class="sun.reflect.NativeMethodAccessorImpl"/>
<ns2:frame line="39" file="NativeMethodAccessorImpl.java" method="invoke" class="sun.reflect.NativeMethodAccessorImpl"/>
<ns2:frame line="25" file="DelegatingMethodAccessorImpl.java" method="invoke" class="sun.reflect.DelegatingMethodAccessorImpl"/>
<ns2:frame line="597" file="Method.java" method="invoke" class="java.lang.reflect.Method"/>
<ns2:frame line="101" file="WLSInstanceResolver.java" method="invoke" class="weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker"/>
<ns2:frame line="83" file="WLSInstanceResolver.java" method="invoke" class="weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker"/>
<ns2:frame line="152" file="InvokerTube.java" method="invoke" class="com.sun.xml.ws.server.InvokerTube$2"/>
<ns2:frame line="264" file="EndpointMethodHandler.java" method="invoke" class="com.sun.xml.ws.server.sei.EndpointMethodHandler"/>
<ns2:frame line="93" file="SEIInvokerTube.java" method="processRequest" class="com.sun.xml.ws.server.sei.SEIInvokerTube"/>
<ns2:frame line="604" file="Fiber.java" method="__doRun" class="com.sun.xml.ws.api.pipe.Fiber"/>
<ns2:frame line="563" file="Fiber.java" method="_doRun" class="com.sun.xml.ws.api.pipe.Fiber"/>
<ns2:frame line="548" file="Fiber.java" method="doRun" class="com.sun.xml.ws.api.pipe.Fiber"/>
<ns2:frame line="445" file="Fiber.java" method="runSync" class="com.sun.xml.ws.api.pipe.Fiber"/>
<ns2:frame line="275" file="WSEndpointImpl.java" method="process" class="com.sun.xml.ws.server.WSEndpointImpl$2"/>
<ns2:frame line="454" file="HttpAdapter.java" method="handle" class="com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit"/>
<ns2:frame line="250" file="HttpAdapter.java" method="handle" class="com.sun.xml.ws.transport.http.HttpAdapter"/>
<ns2:frame line="140" file="ServletAdapter.java" method="handle" class="com.sun.xml.ws.transport.http.servlet.ServletAdapter"/>
<ns2:frame line="319" file="HttpServletAdapter.java" method="run" class="weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke"/>
<ns2:frame line="232" file="HttpServletAdapter.java" method="post" class="weblogic.wsee.jaxws.HttpServletAdapter"/>
<ns2:frame line="310" file="JAXWSServlet.java" method="doPost" class="weblogic.wsee.jaxws.JAXWSServlet"/>
<ns2:frame line="727" file="HttpServlet.java" method="service" class="javax.servlet.http.HttpServlet"/>
<ns2:frame line="87" file="JAXWSServlet.java" method="service" class="weblogic.wsee.jaxws.JAXWSServlet"/>
<ns2:frame line="820" file="HttpServlet.java" method="service" class="javax.servlet.http.HttpServlet"/>
<ns2:frame line="227" file="StubSecurityHelper.java" method="run" class="weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction"/>
<ns2:frame line="125" file="StubSecurityHelper.java" method="invokeServlet" class="weblogic.servlet.internal.StubSecurityHelper"/>
<ns2:frame line="292" file="ServletStubImpl.java" method="execute" class="weblogic.servlet.internal.ServletStubImpl"/>
<ns2:frame line="26" file="TailFilter.java" method="doFilter" class="weblogic.servlet.internal.TailFilter"/>
<ns2:frame line="56" file="FilterChainImpl.java" method="doFilter" class="weblogic.servlet.internal.FilterChainImpl"/>
<ns2:frame line="326" file="DMSServletFilter.java" method="doFilter" class="oracle.dms.wls.DMSServletFilter"/>
<ns2:frame line="56" file="FilterChainImpl.java" method="doFilter" class="weblogic.servlet.internal.FilterChainImpl"/>
<ns2:frame line="3592" file="WebAppServletContext.java" method="run" class="weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction"/>
<ns2:frame line="321" file="AuthenticatedSubject.java" method="doAs" class="weblogic.security.acl.internal.AuthenticatedSubject"/>
<ns2:frame line="121" file="SecurityManager.java" method="runAs" class="weblogic.security.service.SecurityManager"/>
<ns2:frame line="2202" file="WebAppServletContext.java" method="securedExecute" class="weblogic.servlet.internal.WebAppServletContext"/>
<ns2:frame line="2108" file="WebAppServletContext.java" method="execute" class="weblogic.servlet.internal.WebAppServletContext"/>
<ns2:frame line="1432" file="ServletRequestImpl.java" method="run" class="weblogic.servlet.internal.ServletRequestImpl"/>
<ns2:frame line="201" file="ExecuteThread.java" method="execute" class="weblogic.work.ExecuteThread"/>
<ns2:frame line="173" file="ExecuteThread.java" method="run" class="weblogic.work.ExecuteThread"/>
</ns2:stackTrace>
The Java class looks like:
public PersonType Query (PersonType p)
try {
//FileReader reader = new FileReader("/home/orasoa/223345/STRS1.rules");
//FileReader reader = new FileReader("D:\\Arun\\NGCE_WS\\POC1\\UHG\\QueryStudentCriteria\\oracle\\rules\\querystudentcriteria\\STRS1.rules");
InputStream stream=ImplementRules.class.getResourceAsStream("/STRS1.rules");
Reader reader=new InputStreamReader(stream);
RuleDictionary dict = RuleDictionary.readDictionary(reader, new DecisionPointDictionaryFinder(null));
List<SDKWarning> warnings = new ArrayList<SDKWarning>();
dict.update(warnings);
DecisionPoint decisionPoint = new DecisionPointBuilder().with("STRS1_DecisionService_1").with(dict).build();
DecisionPointInstance point = decisionPoint.getInstance();
ArrayList input=new ArrayList();
input.add(p);
point.setInputs(input);
List<Object> output=point.invoke();
catch (Exception e) {}
return p;
Cheers,
- ARHi, I am getting a similar error when I deploy my application on the weblogic server.
Could you detail how this was resolved?
Thanks,
SB -
Monitor message in adapter engine through java code
Hi all,
I need to write a java code to monitor message using message ID in adapter engine.
Is it possible to write such a code?
If yes, then please provide information regarding to that.Hi,
Check these threads
Retrieving a message id
Re: How to extract XI-header fields from XI-message in JAVA?
Thanks! -
Hi All,
I just wonder anyone can lend me a hand please. I am using Java to develop a search engine at the moment, I need to store all the words from a single html page, and I have done this, but the thing is how can I get all pages from a certain intranet? Thank you in advance.
Best Regards,
RayAs per my knowledge any search engine while use the meta data of a html page first then go for the whole contents.
Ans it is always better to use google or any other searching tool instead of developing it from scratch. it is good only for practice. -
Developing Reverse Engineering Program -- JAVA to UML what needed
Hi there,
I am wondering why people want to develop reverse engineering?? it is useful? but developing the reverse Engineering sound interesting for me.
Anyway I just intend to figure out how to develop a reverse Engineering program FROM java to UML diagram. Which create Use cases, class and sequence diagram. Is that possible??
what kinds of Knowledge I need to know in order to develop reverse Engineering. Is there any tutorial that can teach me on how the Reverse Enginneering works?
Does Reverse Enginneering check words by words in order to develop the program?
That all...Hi,
You need a parser, like ANTLR, plus a java grammar for that parser (antlr has one). You need a uml model implementation like MDR, EMF or the obsolete NSUML. You need a diagramming library like GEF or JGraph. With those 3 components you could build your own r.e. tool. search google for urls.
you're interested in the subject so try to read http://citeseer.nj.nec.com/545406.html and related papers.
you'll need to understand the java language specification (java.sun.com), JSR26 (jcp.org) [a std mapping from java to uml], and the uml metamodel (download the specification from www.omg.org).
many reverse engineering scenarios are possible, although not all tools have found time to implement them.
eg. java class -> class diagram
java method -> sequence diagram
I don't know of any tutorials. But you could look at the implementation of ArgoUml (argouml.tigris.org) and ask questions on the developer mailing list.
That should keep you busy for the rest of the year... -
Anybody knows a Prolog Machine written in Java?
Where can I download it?
Thanksthere is a prolog interpreter (compiler???) in the gnu website http://www.gnu.org
its called JProlog -
How to interact with google search engine using java HTTP POST
I am trying to develop an desktop app that acts as an online radio tuner. I want to use google as an index site for actually searching for radio stations online. So I was wandering if it is possible for me to use java to actually interface with the google search engine servers. For example, I have built a gui that allows you to enter search text. This gui will connect to the web. I would like it to connect to the Google site and post the query to the google web servers. Then i would like to began to parse the response( html page) that i get back from the google servers. Like using google without actually typing in the text field on the google site. Can anyone tell me if it is possible to do this with java. If so, what would be the best way to go about doing this. Thanks.
Thanks for the response. It was actually alot easier to do than I anticipated. All I had to do was create a URL object initialized with the google url(search text embedded in the url - http://www.google.com/search?q=" + searchText + "&hl=en&ie=UTF-8&oe=UTF8).
Looks like this:
String google = http://www.google.com/search?q=" + searchText + "&hl=en&ie=UTF-8&oe=UTF8;
URL url = new URL(google); // creating Google Url object
URLConnection connection = url.openConnection();
connection.setDoOutput(true);
connection.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" ); // fooling google servers into thinking the request is coming from a real browser
BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));The content returned by the google server can be accessed calling the BufferedReader class methods. -
JavaScript engine for Java?
Hi,
I was wondering, is there any ready made JavaScript engine that can be used from Java. I know that there is the ScriptEngine in Java 1.6 however I am not sure if this can do what I am looking for.
Basically I need to download Html pages and parse them. However some of these have their content generated using JavaScript. Is there a way from Java how I can execute this JavaScript so that I can parse the final Html page result?
Regards,
Sim085I understand, thanks for the suggestion. Well I am writing something similar to a spider. Nothing out of the world. Basically I have a program that needs to hit some (pre-specified) html pages and download some text in these. The problem is that some of the text I am interested in is actually rendered using JavaScript.
So in other words so far I was not using any browser (or required a user to browse the pages). I mostly relied on the URL and HttpUrl class that come in the java.net package. I also made use of jericho to parse the html. However the html I am parsing is not rendered and therefore I am not finding what I am looking for.
I guess what I need is a tool that will render the html, save that on the drive and then work on the saved copy. Problem is finding such a tool. A quick search on google found me Gecko (Mozilla). I am looking into that at the moment. But very open to any suggestions :)
Maybe you are looking for
-
Getting accurate color prints from mini and Dell 2405?
Although I'm reading many great reviews about this setup and display, I've also found quite a few folks on various forums that are having a very hard time getting their prints to come out looking like anything close to the highly rated on-screen imag
-
My creative cloud wont display anything!
im only trying to download a trial of photoshop, i have a creative cloud account but when i open it there is nothing. have already tried unistalling it and reinstalling. using windows 7 this is what it shows thank you!
-
seems like the volume adjust for songs added to iMovies only has one ajductment option; grabing the line and using mouse or track pad to move it up or down. it is very sensative. is there another way to adjust volume like older imovie versions? i box
-
How to install report server as service in windows
OS : windows XP oracle 10G isuite Every time I am restarting my machine I have to start the report server using command rwserver server=repserver10G start in command prompt. How to install the the report server as service in windows? so that it can b
-
I can't play Yahoo Music (the tabbed pop up). Any suggestions?
Yahoo! Music has an online radio feature (http://new.music.yahoo.com/launchcast/;_ylt=ArZ_RHB9X4H02HiaKNnQQZvasyUv#) that isn't working with the newest FireFox 4 update. When you click on one of the Play Station buttons, it just sits there, instead o