openRDF.org Welcome Guest   | Login   
  Search  
  Index  | Recent Threads  | Who's Online  | User List  | Search  | Help  | RSS feeds

Forum has been closed down
This forum has been closed down due to extensive spamming activities. Please use the mailing list instead.


Quick Go »
Thread Status: Normal
Total posts in this thread: 6
[Add To My Favorites] [Watch this Thread]
Author
Previous Thread This topic has been viewed 1735 times and has 5 replies Next Thread
Feb 11, 2008 4:45:40 PM

jtheuer
Sesame Addict



Joined: Feb 11, 2008
Posts: 70
Status: Offline

create an elmo concept jar from rdf file

Hi,

I tried to create an elmo concept jar from rdf file. I found:
http://www.openrdf.org/doc/elmo/1.0-beta2/user-guide/x444.html#SEC.CREATING-CONCEPTS-50

and I want to compile:
http://scot-project.org/scot/ns

and ran

-b "org.scot-project.entities=http://scot-project.org/scot/ns#"
-j scot-ontology-concepts.jar
/tmp/scot.rdf

within eclipse (main class was: org.openrdf.elmo.codegen.OntologyConverter)
Hope, that is correct. I used the 1.0-beta1 from your maven repository.
----------------------------------------
[Edit 1 times, last edit by jtheuer at Feb 11, 2008 4:48:15 PM]
Show Printable Version of Post        http://www.pace-project.org [Link] Report threatening or abusive post: please login first  Go to top 
Feb 11, 2008 4:47:35 PM

jtheuer
Sesame Addict



Joined: Feb 11, 2008
Posts: 70
Status: Offline

Re: create an elmo concept jar from rdf file

The result was:

1350 [main] INFO org.openrdf.query.parser.QueryParserRegistry - Registered service class org.openrdf.query.parser.serql.SeRQLParserFactory
1352 [main] INFO org.openrdf.query.parser.QueryParserRegistry - Registered service class org.openrdf.query.parser.sparql.SPARQLParserFactory
1353 [main] INFO org.openrdf.query.parser.QueryParserRegistry - Registered service class org.openrdf.query.parser.serqo.SeRQOParserFactory
Exception in thread "main" java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V
at org.codehaus.groovy.classgen.ReflectorGenerator.generate(ReflectorGenerator.java:79)
at groovy.lang.MetaClassRegistry.loadReflector(MetaClassRegistry.java:252)
at groovy.lang.MetaClassImpl.generateReflector(MetaClassImpl.java:2002)


Is there something broken in the maven dependencies? I updated an hour ago...

Thanks,

Jan
Show Printable Version of Post        http://www.pace-project.org [Link] Report threatening or abusive post: please login first  Go to top 
Feb 11, 2008 7:30:50 PM

james
OpenRDF.org Consultant
Member's Avatar

Canada
Joined: Jul 21, 2005
Posts: 650
Status: Offline
Re: create an elmo concept jar from rdf file

Looks like the groovy and asm versions you are using are incompatible. Can you please post the versions/jars you have in the class-path.

Are you using the Spring framework by chance - it uses an old version of ASM?

It would also be good to try running this this from a command line to ensure the class-path is as you expected.

What version of Elmo are you using beta2 or SVN?
----------------------------------------
Sesame Consultant
http://leighnet.ca
http://jamesrdf.blogspot.com
Show Printable Version of Post        Hidden to Guest    http://leighnet.ca [Link] Report threatening or abusive post: please login first  Go to top 
Feb 11, 2008 8:38:41 PM

jtheuer
Sesame Addict



Joined: Feb 11, 2008
Posts: 70
Status: Offline

Re: create an elmo concept jar from rdf file

Hi James. Here are my maven dependencies:

<dependencies>
<dependency>
<groupId>org.openrdf</groupId>
<artifactId>elmo-concepts</artifactId>
<version>1.0-beta1</version>
</dependency>
<dependency>
<groupId>org.openrdf</groupId>
<artifactId>elmo-sesame</artifactId>
<version>1.0-beta1</version>
</dependency>
<dependency>
<groupId>org.openrdf</groupId>
<artifactId>elmo-codegen</artifactId>
<version>1.0-beta1</version>
</dependency>
<dependency>

Show Printable Version of Post        http://www.pace-project.org [Link] Report threatening or abusive post: please login first  Go to top 
Feb 11, 2008 8:40:03 PM

jtheuer
Sesame Addict



Joined: Feb 11, 2008
Posts: 70
Status: Offline

Re: create an elmo concept jar from rdf file

Here is the resulting classpath of eclipse: (filtered by asm|groovy):
 
<classpathentry kind="var" path="M2_REPO/asm/asm-attrs/2.2/asm-attrs-2.2.jar"/>
<classpathentry kind="var" path="M2_REPO/asm/asm-analysis/2.2/asm-analysis-2.2.jar"/>
<classpathentry kind="var" path="M2_REPO/asm/asm-tree/2.2/asm-tree-2.2.jar"/>
<classpathentry kind="var" path="M2_REPO/asm/asm-util/2.2/asm-util-2.2.jar"/>
<classpathentry kind="var" path="M2_REPO/asm/asm/2.2/asm-2.2.jar"/>
<classpathentry kind="var" path="M2_REPO/groovy/groovy/1.0/groovy-1.0.jar"/>


Seems to be a maven dependency bug, then?

Is beta2 going to be released as maven project?

I could ran it from the commandline, but I'd rather not do this with the maven libs. They are too much...

Is there a reason why posts must not exceed a given size? I always have to split them. Annoying...

Jan
----------------------------------------
[Edit 1 times, last edit by jtheuer at Feb 11, 2008 8:42:52 PM]
Show Printable Version of Post        http://www.pace-project.org [Link] Report threatening or abusive post: please login first  Go to top 
Feb 11, 2008 9:49:42 PM

james
OpenRDF.org Consultant
Member's Avatar

Canada
Joined: Jul 21, 2005
Posts: 650
Status: Offline
Re: create an elmo concept jar from rdf file

The sdk file on sourceforge.net contains an executable jar that you can use from the command line without the trouble of setting the classpath yourself.

The versions you have look correct. You can also try explicitly adding ASM to your project and changing its order to be on top - in case another jar includes this class.

The next release of Elmo will be included in our maven repository.
----------------------------------------
Sesame Consultant
http://leighnet.ca
http://jamesrdf.blogspot.com
Show Printable Version of Post        Hidden to Guest    http://leighnet.ca [Link] Report threatening or abusive post: please login first  Go to top 
[Show Printable Version of Thread]