From ariannapipitone77 at gmail.com Tue Jan 17 11:36:01 2012 From: ariannapipitone77 at gmail.com (Arianna Pipitone) Date: Tue, 17 Jan 2012 12:36:01 +0100 Subject: [cl-plus-j-devel] (no subject) Message-ID: I would help about cl+j interface. How can I express in cl+j syntax in a lisp code the java sentence: -------------- next part -------------- An HTML attachment was scrubbed... URL: From ariannapipitone77 at gmail.com Tue Jan 17 11:37:56 2012 From: ariannapipitone77 at gmail.com (Arianna Pipitone) Date: Tue, 17 Jan 2012 12:37:56 +0100 Subject: [cl-plus-j-devel] (no subject) In-Reply-To: References: Message-ID: I would help about cl+j interface. How can I express in cl+j syntax in a lisp code the java sentence: OntModel onto = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM,null); ModelFactory is an interface for OntModel class. 2012/1/17 Arianna Pipitone I would help about cl+j interface. > How can I express in cl+j syntax in a lisp code the java sentence: > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jean.claude.beaudoin at gmail.com Wed Jan 18 00:53:05 2012 From: jean.claude.beaudoin at gmail.com (Jean-Claude Beaudoin) Date: Tue, 17 Jan 2012 19:53:05 -0500 Subject: [cl-plus-j-devel] (no subject) In-Reply-To: References: Message-ID: On Tue, Jan 17, 2012 at 6:37 AM, Arianna Pipitone < ariannapipitone77 at gmail.com> wrote: > > I would help about cl+j interface. > How can I express in cl+j syntax in a lisp code the java sentence: > > OntModel onto = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM,null); > > ModelFactory is an interface for OntModel class. > > I have to admit that I have been away from CL+J for a few months already (I am fully devoted to pushing MKCL 1.1.0 out the door soon) and I realize that my memory is starting to feel a bit too fuzzy for my taste. Anyway, my guess would be to try the following: (defvar onto) ;; I guess you want a global variable but you could use a let if a local is ok. (setq onto (#_ModelFactory.createOntologyModel #?OntModelSpec.OWL_MEM nil)) Please try the above in a REPL and tell (cut & paste) me the result. Cheers, Jean-Claude Beaudoin -------------- next part -------------- An HTML attachment was scrubbed... URL: