Re: Question about Cypher

4 views
Skip to first unread message

Sherman Monroe

unread,
Apr 28, 2008, 1:40:04 PM4/28/08
to J- MAN, cypher-d...@googlegroups.com
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)

Sherman Monroe

unread,
Apr 28, 2008, 2:35:34 PM4/28/08
to J- MAN, cypher-d...@googlegroups.com
Hi John,

It appears that the CYPHER_HOME variable has not been set to the root of the Cypher install directory. Here are instructions for various systems:

Here how you set the environment variable for windows
xp<http://www.chem.gla.ac.uk/%7Elouis/software/faq/q1.html>and less,
or windows
vista<http://lifehacker.com/software/windows-tip/create-your-own-environmen...>,
linux <http://lowfatlinux.com/linux-environment-variables.html>,
mac<http://developer.apple.com/documentation/MacOSX/Conceptual/OSX_Techno...>
.

Also, be sure to follow the Cypher install instructions.

Let me know if the problem persists. Also, reply-all to include the mailing list in your cc for archival purposes (cypher-d...@googlegroups.com).

-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


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

Sherman Monroe

unread,
Apr 29, 2008, 9:14:00 AM4/29/08
to J- MAN, cypher-d...@googlegroups.com
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



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!
Reply all
Reply to author
Forward
0 new messages