Re: FW: Question about Cypher

11 views
Skip to first unread message

Sherman Monroe

unread,
Apr 29, 2008, 9:52:12 AM4/29/08
to J- MAN, cypher-d...@googlegroups.com
John,

This is a bug related to the new Cypher Web Service. To fix it, simply find this property and uncomment it:

cypher.http.base

The documentation on it is here. You can set the value to any URI you wish to be the default namespace for URIs minted by Cypher. This property should be option however (which is why I consider it a bug).

Let me know if this helps.

-sherman

On Tue, Apr 29, 2008 at 8:43 AM, J- MAN <jman...@hotmail.com> wrote:



From: jman...@hotmail.com
To: smo...@overdogg.com
Subject: RE: Question about Cypher
Date: Tue, 29 Apr 2008 09:42:56 -0400


I had to recreate the repositories with the '-' instead of a space.  It did not like the space in the repository name.
Attached in the error output i am now receiving.
 
John



Date: Tue, 29 Apr 2008 08:14:00 -0500
From: smo...@overdogg.com
To: jman...@hotmail.com; cypher-d...@googlegroups.com
Subject: Re: Question about Cypher

John,

Good to hear, now find the properties similar to this at the top of the config.ini file:

rdf.repository.lexicon=org.openrdf.repository.http.HTTPRepository,http://localhost:8080/openrdf-sesame,lexicon
rdf.repository.output=org.openrdf.repository.http.HTTPRepository,http://localhost:8080/openrdf-sesame,semantic-output
rdf.repository.dictionary=org.openrdf.repository.http.HTTPRepository,http://localhost:8080/openrdf-sesame,framenet
rdf.repository.internal=org.openrdf.repository.http.HTTPRepository,http://localhost:8080/openrdf-sesame,internal

replace it with

rdf.repository.lexicon=org.openrdf.repository.http.HTTPRepository,http://localhost:8080/openrdf-sesame,mySesameLexicon
rdf.repository.output=org.openrdf.repository.http.HTTPRepository,http://localhost:8080/openrdf-sesame,semantic output
rdf.repository.dictionary=org.openrdf.repository.http.HTTPRepository,http://localhost:8080/openrdf-sesame,framenet
rdf.repository.internal=org.openrdf.repository.http.HTTPRepository,http://localhost:8080/openrdf-sesame,internal use

The documentation has not noted this changed in the install directions (but is updated in the startup properties description).

Let me know how it goes.

Thanks,
-sherman




On Tue, Apr 29, 2008 at 7:48 AM, J- MAN <jman...@hotmail.com> wrote:
Well, i'm getting a little further now.
Here are my sesame repositories:
 
+----------
> connect http://localhost:8080/openrdf-sesame
.
Already connected to http://localhost:8080/openrdf-sesame
> show repositories.
+----------
|SYSTEM ('System configuration repository')
|semantic ('semantic')
|internal use ('internal use')
|lexicon ('lexicon')
|framenet ('framenet')
|semantic output ('semantic output')
|mySesameLexicon ('Native store')
+----------
>
 
I've added this to the bottom of my config.ini file:
 
rdf.repository.url=http://localhost:8080/openrdf-sesame
rdf.repository.lexicon=mySesameLexicon

And this is the error i got.
 
2008-04-29 08:48:39,937: Starting Monrai Cypher (verson 1.2 beta)...
2008-04-29 08:48:39,937: Configuring logger...
2008-04-29 08:48:39,937: Done configuring.
2008-04-29 08:48:39,937: Connecting to RDF repositories...
2008-04-29 08:48:39,937: Done connecting.
java.lang.ClassNotFoundException: mySesameLexicon

        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.monrai.cypher.start.Cypher.createRepository(Cypher.java:307)
        at com.monrai.cypher.start.Cypher.main(Cypher.java:141)
2008-04-29 08:48:40,031: CYPHER_HOME set to 'C:\TestApps\cypher'
2008-04-29 08:48:40,062: Loading language manager...
2008-04-29 08:48:40,062: Done loading.
2008-04-29 08:48:40,062: Loading pattern index from file: C:\TestApps\cypher\data\language\en\grammar\...
2008-04-29 08:48:41,140: Done loading 125 unique patterns.
2008-04-29 08:48:41,140: Done loading 803 unique morphological patterns.
2008-04-29 08:48:41,140: Indexing patterns...
2008-04-29 08:48:41,171: Done indexing.
2008-04-29 08:48:41,171: Creating pattern registry...
2008-04-29 08:48:41,171: Done creating registry.
2008-04-29 08:48:41,171: Initializing repository from directory: C:\TestApps\cypher\data\repository\...
Exception in thread 'main' java.lang.NullPointerException
        at com.monrai.cypher.start.CypherHelper.init(CypherHelper.java:270)
        at com.monrai.cypher.start.Cypher.main(Cypher.java:177)
 
Thanks,
 
John


 

Date: Mon, 28 Apr 2008 16:38:47 -0500
Subject: Re: Question about Cypher

John,

You will need to delete the cypher-cypher.jar file in the <cypher home>/lib/cypher directory, and replace it with the one attached.

Please let me know if that helps.

-sherman

On Mon, Apr 28, 2008 at 4:26 PM, Sherman Monroe <smo...@overdogg.com> wrote:
John,

You've discovered a bug in the startup script. Please place the attached *.jar file in the <cypher home>/lib directory. I will also release the patch in the current distribution.

I suggest you use the Cypher Web Service, which will allow you to send an input string to Cypher and receive a SPARQL file back. If you have an OWL-based schema which you want to output, then you will need to create a lexicon which maps the NL output to the OWL.

-sherman


On Mon, Apr 28, 2008 at 1:29 PM, J- MAN <jman...@hotmail.com> wrote:
Thanks.  I'm trying to test Cypher out, but appearently it can't find the config file which is located here: C:\TestApps\cypher\data\configuration\config.ini
 
THis is the error i'm getting, any ideas?
 
C:\TestApps\cypher>cypher.bat
java.io.FileNotFoundException: \data\configuration\config.ini (The system cannot find the path spec
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(Unknown Source)
        at java.io.FileInputStream.<init>(Unknown Source)
        at com.monrai.cypher.global.EngineProperties.load(EngineProperties.java:61)
        at com.monrai.cypher.global.EngineProperties.loadProperties(EngineProperties.java:142)
        at com.monrai.cypher.start.Cypher.main(Cypher.java:242)
log4j:ERROR Could not open [\data\configuration\NULL].
java.io.FileNotFoundException: \data\configuration\NULL (The system cannot find the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(Unknown Source)
        at java.io.FileInputStream.<init>(Unknown Source)
        at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:583)
        at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:687)
        at com.monrai.cypher.start.Cypher.main(Cypher.java:247)
- Starting Monrai Cypher (verson 1.2 beta)...
- Configuring logger...
- Done configuring.
- Connecting to RDF repositories...
- Done connecting.
java.lang.ClassNotFoundException: NULL
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.monrai.cypher.start.Cypher.createRepository(Cypher.java:427)
        at com.monrai.cypher.start.Cypher.main(Cypher.java:263)
java.lang.ClassNotFoundException: NULL
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.monrai.cypher.start.Cypher.createRepository(Cypher.java:427)
        at com.monrai.cypher.start.Cypher.main(Cypher.java:264)
java.lang.ClassNotFoundException: NULL
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.monrai.cypher.start.Cypher.createRepository(Cypher.java:427)
        at com.monrai.cypher.start.Cypher.main(Cypher.java:265)
java.lang.ClassNotFoundException: NULL
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.monrai.cypher.start.Cypher.createRepository(Cypher.java:427)
        at com.monrai.cypher.start.Cypher.main(Cypher.java:266)
- CYPHER_HOME set to 'C:\TestApps\cypher'
- Loading language manager...
- Done loading.
- Loading pattern index from file: \data\language\NULL\grammar\...
java.lang.NullPointerException
        at com.monrai.cypher.start.CypherHelper.loadSyntax(CypherHelper.java:1502)
        at com.monrai.cypher.start.CypherHelper.init(CypherHelper.java:239)
        at com.monrai.cypher.start.Cypher.main(Cypher.java:299)
- Done loading 0 unique patterns.
- Done loading 0 unique morphological patterns.
- Indexing patterns...
- Done indexing.
- Creating pattern registry...
- Done creating registry.
- Initializing repository from directory: \data\repository\...
- Done initializing.
- Configuring pattern registry...
- Done configuring.
- Program startup completed in 141 ms.
- Starting text crawler...
- Cannot find cypher.output.dir: C:\TestApps\cypher\NULL
- Exiting program...
Press any key to continue . . .



Date: Mon, 28 Apr 2008 12:40:04 -0500
From: smo...@overdogg.com
To: jman...@hotmail.com; cypher-d...@googlegroups.com
Subject: Re: Question about Cypher


Hi John,

Currently, Cypher supports pluggable Sesame SAIL implementations, several of which are:

http://users.ecs.soton.ac.uk/wf/jsm.htm
http://sjadapter.sourceforge.net/

Using a Jena SAIL will allow you to run Cypher against a Jena repository without needing to have access to a Sesame server.

-sherman

On Mon, Apr 28, 2008 at 12:33 PM, J- MAN <jman...@hotmail.com> wrote:
Hi,
 
Just a quick question about Cypher.  Can you use Jena for the backend RDF or do you have to use Sesame?
 
Thanks,
 
John


Spell a grand slam in this game where word skill meets World Series. Get in the game.



--
I pray that you may prosper in all things and be healthy, even as your soul prospers
(3 John 1:2)


Back to work after baby– how do you know when you're ready?



--
I pray that you may prosper in all things and be healthy, even as your soul prospers
(3 John 1:2)



--
I pray that you may prosper in all things and be healthy, even as your soul prospers
(3 John 1:2)


Express yourself wherever you are. Mobilize!



--
I pray that you may prosper in all things and be healthy, even as your soul prospers
(3 John 1:2)


Back to work after baby– how do you know when you're ready?


Express yourself wherever you are. Mobilize!



--
I pray that you may prosper in all things and be healthy, even as your soul prospers
(3 John 1:2)

Sherman Monroe

unread,
Apr 30, 2008, 11:47:03 AM4/30/08
to J- MAN, cypher-d...@googlegroups.com
John,

Let me look into it and get back with you.

Thanks,
-sherman

On Wed, Apr 30, 2008 at 8:37 AM, J- MAN <jman...@hotmail.com> wrote:
Thanks Sherman, it works.  But now i'm trying to setup the webservice, and it's looking for the config file in a strange place.  Here is the error.
I set the cypher home in the web.xml.
 
java.io.FileNotFoundException: \usr\apps\cypher\data\configuration\config.ini (The system cannot find the path specified)

        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at com.monrai.cypher.global.EngineProperties.load(EngineProperties.java:65)
        at com.monrai.cypher.global.EngineProperties.loadProperties(EngineProperties.java:146)
        at com.monrai.cypher.start.Cypher.<clinit>(Cypher.java:79)
        at com.monrai.servlet.API.doPost(API.java:130)
        at com.monrai.servlet.API.doGet(API.java:111)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)
log4j:ERROR Could not open [\usr\apps\cypher\\data\configuration\NULL].
java.io.FileNotFoundException: \usr\apps\cypher\data\configuration\NULL (The system cannot find the path specified)

        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)

        at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:583)
        at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:687)
        at com.monrai.cypher.start.Cypher.<clinit>(Cypher.java:80)
        at com.monrai.servlet.API.doPost(API.java:130)
        at com.monrai.servlet.API.doGet(API.java:111)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)

- Starting Monrai Cypher (verson 1.2 beta)...
- Configuring logger...
- Done configuring.
- Connecting to RDF repositories...
- Done connecting.
java.lang.ClassNotFoundException: NULL
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)

        at com.monrai.cypher.start.Cypher.createRepository(Cypher.java:307)
        at com.monrai.cypher.start.Cypher.main(Cypher.java:141)
        at com.monrai.servlet.API$1.run(API.java:165)
java.lang.ClassNotFoundException: NULL
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)

        at com.monrai.cypher.start.Cypher.createRepository(Cypher.java:307)
        at com.monrai.cypher.start.Cypher.main(Cypher.java:142)
        at com.monrai.servlet.API$1.run(API.java:165)
java.lang.ClassNotFoundException: NULL
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)

        at com.monrai.cypher.start.Cypher.createRepository(Cypher.java:307)
        at com.monrai.cypher.start.Cypher.main(Cypher.java:143)
        at com.monrai.servlet.API$1.run(API.java:165)
java.lang.ClassNotFoundException: NULL
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)

        at com.monrai.cypher.start.Cypher.createRepository(Cypher.java:307)
        at com.monrai.cypher.start.Cypher.main(Cypher.java:144)
        at com.monrai.servlet.API$1.run(API.java:165)

- CYPHER_HOME set to 'C:/TestApps/cypher'

- Loading language manager...
- Done loading.
- Loading pattern index from file: \usr\apps\cypher\\data\language\NULL\grammar\...

java.lang.NullPointerException
        at com.monrai.cypher.start.CypherHelper.loadSyntax(CypherHelper.java:1502)
        at com.monrai.cypher.start.CypherHelper.init(CypherHelper.java:239)
        at com.monrai.cypher.start.Cypher.main(Cypher.java:177)
        at com.monrai.servlet.API$1.run(API.java:165)

- Done loading 0 unique patterns.
- Done loading 0 unique morphological patterns.
- Indexing patterns...
- Done indexing.
- Creating pattern registry...
- Done creating registry.
- Initializing repository from directory: \usr\apps\cypher\\data\repository\...

- Done initializing.
- Configuring pattern registry...
- Done configuring.
- Program startup completed in 110 ms.

Any ideas?  Thanks,
 
John

Date: Tue, 29 Apr 2008 08:52:12 -0500

Sherman Monroe

unread,
Apr 30, 2008, 12:28:01 PM4/30/08
to J- MAN, cypher-d...@googlegroups.com
John,

What servlet container are you using? You'll need to modify the java option parameters to include:

-DCYPHER_HOME=<cypher install directory, not cypher-ws install directory>

-sherman

On Wed, Apr 30, 2008 at 8:37 AM, J- MAN <jman...@hotmail.com> wrote:
Thanks Sherman, it works.  But now i'm trying to setup the webservice, and it's looking for the config file in a strange place.  Here is the error.
I set the cypher home in the web.xml.
 
java.io.FileNotFoundException: \usr\apps\cypher\data\configuration\config.ini (The system cannot find the path specified)

        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at com.monrai.cypher.global.EngineProperties.load(EngineProperties.java:65)
        at com.monrai.cypher.global.EngineProperties.loadProperties(EngineProperties.java:146)
        at com.monrai.cypher.start.Cypher.<clinit>(Cypher.java:79)
        at com.monrai.servlet.API.doPost(API.java:130)
        at com.monrai.servlet.API.doGet(API.java:111)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)
log4j:ERROR Could not open [\usr\apps\cypher\\data\configuration\NULL].
java.io.FileNotFoundException: \usr\apps\cypher\data\configuration\NULL (The system cannot find the path specified)

        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:583)
        at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:687)
        at com.monrai.cypher.start.Cypher.<clinit>(Cypher.java:80)
        at com.monrai.servlet.API.doPost(API.java:130)
        at com.monrai.servlet.API.doGet(API.java:111)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)
- Starting Monrai Cypher (verson 1.2 beta)...
- Configuring logger...
- Done configuring.
- Connecting to RDF repositories...
- Done connecting.
java.lang.ClassNotFoundException: NULL
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at com.monrai.cypher.start.Cypher.createRepository(Cypher.java:307)
        at com.monrai.cypher.start.Cypher.main(Cypher.java:141)
        at com.monrai.servlet.API$1.run(API.java:165)
java.lang.ClassNotFoundException: NULL
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)

        at com.monrai.cypher.start.Cypher.createRepository(Cypher.java:307)
        at com.monrai.cypher.start.Cypher.main(Cypher.java:142)
        at com.monrai.servlet.API$1.run(API.java:165)
java.lang.ClassNotFoundException: NULL
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)

        at com.monrai.cypher.start.Cypher.createRepository(Cypher.java:307)
        at com.monrai.cypher.start.Cypher.main(Cypher.java:143)
        at com.monrai.servlet.API$1.run(API.java:165)
java.lang.ClassNotFoundException: NULL
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)

        at com.monrai.cypher.start.Cypher.createRepository(Cypher.java:307)
        at com.monrai.cypher.start.Cypher.main(Cypher.java:144)
        at com.monrai.servlet.API$1.run(API.java:165)

- CYPHER_HOME set to 'C:/TestApps/cypher'

- Loading language manager...
- Done loading.
- Loading pattern index from file: \usr\apps\cypher\\data\language\NULL\grammar\...

java.lang.NullPointerException
        at com.monrai.cypher.start.CypherHelper.loadSyntax(CypherHelper.java:1502)
        at com.monrai.cypher.start.CypherHelper.init(CypherHelper.java:239)
        at com.monrai.cypher.start.Cypher.main(Cypher.java:177)
        at com.monrai.servlet.API$1.run(API.java:165)

- Done loading 0 unique patterns.
- Done loading 0 unique morphological patterns.
- Indexing patterns...
- Done indexing.
- Creating pattern registry...
- Done creating registry.
- Initializing repository from directory: \usr\apps\cypher\\data\repository\...

- Done initializing.
- Configuring pattern registry...
- Done configuring.
- Program startup completed in 110 ms.

Any ideas?  Thanks,
 
John

Date: Tue, 29 Apr 2008 08:52:12 -0500

Sherman Monroe

unread,
Apr 30, 2008, 3:41:42 PM4/30/08
to J- MAN, cypher-d...@googlegroups.com
John,

Glad to hear.

The <cypher home>/data/repository/lexicon directory contains all the words Cypher knows about. Some verbs are know, like, speak. The foaf files contains the people Cypher knows about. Try using some of those names with these verbs, e.g. Dan knows Tim. It knows the word penny, so try Tim has a penny, Tim likes pennies. Then try extending either the grammar or lexicon to cover more input patterns.

A new service will be launched in the coming months which will allow Cypher lexicons and phrase grammars to be collaborative developed and shared by a community of linguists, developers, and Cypher users.

-sherman

On Wed, Apr 30, 2008 at 1:10 PM, J- MAN <jman...@hotmail.com> wrote:
Thanks, it's working now.  What sample question could i pass in to get a sparql query back?
 
Thanks.



Date: Wed, 30 Apr 2008 11:28:01 -0500

erik.ivancak

unread,
May 7, 2008, 9:24:54 AM5/7/08
to Cypher Developer
Hi Sherman,
I have problem with new version of cyper 1.2 which I didn't have
before with version cyper 1.1.8.
I am using for test only simple 2 txt files:
a.txt:
Tim knows Nikki
Danny knows Nikki

b.txt:
who knows Nikki

When I run cyper.bat I have some errors (didn't have before with same
files, same cypher_home, same repositories and similar config file
(it's not the same in new version)) .

2008-05-07 14:17:38,703: Done reading: Tim knows Nikki
2008-05-07 14:17:38,984: Done reading: Danny knows Nikki
java.lang.reflect.InvocationTargetException
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method

at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source

at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown So
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
com.monrai.cypher.lang.nl.registry.PatternRegistry.createTranscoders
PatternRegistry.java:1161)
at
com.monrai.cypher.lang.nl.registry.Pattern.getTranscoders(Pattern.ja
a:536)
at
com.monrai.cypher.lang.nl.registry.Pattern.getTranscoders(Pattern.ja
a:526)
2008-05-07 14:17:39,218: Crawling D:\cypher\in\b.txt
at
com.monrai.cypher.framenet.RDFRegistry.transcodeSyntaxOutputResults(
DFRegistry.java:57)
at
com.monrai.cypher.lang.nl.matcher.cfg.CFGPatternMatcher_EN.updateRes
lts(CFGPatternMatcher_EN.java:1470)
at
com.monrai.cypher.lang.nl.matcher.cfg.CFGPatternMatcher_EN.scanCoord
nates(CFGPatternMatcher_EN.java:973)
at
com.monrai.cypher.lang.nl.matcher.cfg.CFGPatternMatcher_EN.scanCoord
nates(CFGPatternMatcher_EN.java:1267)
at
com.monrai.cypher.lang.nl.matcher.cfg.CFGPatternMatcher_EN.scanCoord
nates(CFGPatternMatcher_EN.java:1152)
at
com.monrai.cypher.lang.nl.matcher.cfg.CFGPatternMatcher_EN.scanCoord
nates(CFGPatternMatcher_EN.java:1152)
at
com.monrai.cypher.lang.nl.matcher.cfg.CFGPatternMatcher_EN.transcode
CFGPatternMatcher_EN.java:802)
at
com.monrai.cypher.lang.nl.matcher.cfg.CFGPatternMatcher_EN.run(CFGPa
ternMatcher_EN.java:700)
at java.lang.Thread.run(Unknown Source)
at com.monrai.cypher.util.WorkQueue
$PoolWorker.run(WorkQueue.java:85)
Caused by: java.lang.IllegalArgumentException: Not a valid (absolute)
URI: NULL
default
at org.openrdf.model.impl.URIImpl.<init>(URIImpl.java:53)
at
org.openrdf.model.impl.ValueFactoryImpl.createURI(ValueFactoryImpl.j
va:38)
at
com.monrai.cypher.lang.nl.lexicon.LexiconV2.getSenses(LexiconV2.java
181)
at
com.monrai.cypher.lang.nl.en.Word_EN.getSensesV2(Word_EN.java:280)
at
com.monrai.cypher.lang.nl.en.Word_EN.getSensesV2(Word_EN.java:287)
at
com.monrai.en.transcoder.rdf.ClauseTranscoderV2_RDF.build(ClauseTran
coderV2_RDF.java:1965)
at
com.monrai.en.transcoder.rdf.ClauseTranscoderV2_RDF.build(ClauseTran
coderV2_RDF.java:105)
at
com.monrai.en.transcoder.rdf.TranscoderV2_RDF.<init>(TranscoderV2_RD
.java:159)
at
com.monrai.en.transcoder.rdf.ClauseTranscoderV2_RDF.<init>(ClauseTra
scoderV2_RDF.java:95)
... 17 more
java.lang.reflect.InvocationTargetException
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method

at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source

at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown So
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
com.monrai.cypher.lang.nl.registry.PatternRegistry.createTranscoders
PatternRegistry.java:1161)
at
com.monrai.cypher.lang.nl.registry.Pattern.getTranscoders(Pattern.ja
a:536)
2008-05-07 14:17:39,328: TRANSCODE FAILED> Tim knows Nikki
.
.



Before I had :
2008-05-07 13:23:45,140: Done reading: Tim knows Nikki
2008-05-07 13:23:45,312: Done reading: Danny knows Nikki
2008-05-07 13:23:45,359: Crawling D:\cypher3\in\b.txt
2008-05-07 13:23:45,390: Done reading: who knows Nikki
2008-05-07 13:23:45,390: Done crawling.
2008-05-07 13:23:45,437: Transcoding text...
.
.


I am not sure if I made something wrong with new version or there is
some bug. Can you help me with it?

Thanks.

Erik Ivancak

Sherman Monroe

unread,
May 7, 2008, 10:05:30 AM5/7/08
to cypher-d...@googlegroups.com
Hi Erik,

Sorry to hear you're having problems. Let me take a look at this and get back to you.

Thanks,
-sherman
Reply all
Reply to author
Forward
0 new messages