Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-discussion] (JythonScript)

jad al ahal8 at hotmail.com
Wed Feb 11 20:45:28 PST 2009


Hi Csongor,
 
Do you have what this error mean:
 
>>> darwinIndividual.setPropertyValue(accountNameProperty,"ABC");
TypeError: setPropertyValue(): 1st arg can't be coerced to edu.stanford.smi.protegex.owl.model.RDFProperty
 
 
I am just trying to set a property value of individual darwin.
 
Thank you.
jad
 
 
 



Date: Tue, 10 Feb 2009 09:21:31 -0800From: csongor.nyulas at stanford.eduTo: protege-discussion at lists.stanford.eduSubject: Re: [protege-discussion] (JythonScript)Hi Jad,You can use all the methods that are defined at the edu.stanford.smi.protegex.owl.model.OWLModel class. For a quick (non-comprehensive) overview check out the Protege-OWL API: at http://protege.stanford.edu/plugins/owl/api/For the complete list of methods that can be called on OWLModel (and on the variables returned by those methods) navigate through the javadoc of the Protege API:for the 3.4 beta version:http://protege.stanford.edu/download/prerelease_javadoc_owl/index.html?edu/stanford/smi/protegex/owl/model/OWLModel.htmlfor the 3.3.1 version: http://protege.stanford.edu/download/release-javadoc-owl/index.html?edu/stanford/smi/protegex/owl/model/OWLModel.htmlCsongorjad al wrote: 


Csongor, Many many thanks, do you of a link to learn all the kb.commands.  I am new to this. jad  

Date: Mon, 9 Feb 2009 20:49:40 -0800From: csongor.nyulas at stanford.eduTo: protege-discussion at lists.stanford.eduSubject: Re: [protege-discussion] (JythonScript)Hi Jehad,Always use kb to refer both to the Protege-Frames Knowledgebase and the Protege-OWL owlModel. So in your case write:HostClass =kb.getOWLNamedClass("Host")print HostClassGood luck,Csongorjad al wrote: 




Hello, I am having a very hard time manipulating my ontology from ProtegeScriptTab. From python script I do:>>> HostClass =owlModel.getOWLNamedClass("Host")I keep getting the same error:Traceback (innermost last):  File "<string>", line 1, in ?NameError: owlModelexception from Jython: Traceback (innermost last):  File "<string>", line 1, in ?NameError: owlModel: Traceback (innermost last):  File "<string>", line 1, in ?NameError: owlModelI tried the to follow the http://protege.cim3.net/cgi-bin/wiki.pl?ProtegeScriptTab#nid8FT  procedure, but no luck.  Please any help  Many thanks > From: tar at ISI.EDU> To: protege-discussion at lists.stanford.edu> Date: Mon, 9 Feb 2009 12:44:01 -0800> Subject: Re: [protege-discussion] (no subject)> > > On Feb 8, 2009, at 10:15 AM, Adrian Suter wrote:> > > Hello,> >> > I like to have an ImageMapWidget under OWL. With the Project Type > > Frame it works as soon i define a slot of type "Symbol" . > > Unfortunately i cant't find a property type "symbol" under the > > projecttyp "OWL".> > What do i have to do?> > Symbol is not an RDF or OWL datatype, so that's why there is no such > slot type.> > I don't know if there is an ImageMapWidget. I couldn't find mention > of it anywhere. But I did locate this:> > http://protegewiki.stanford.edu/index.php/DisplayImages> > > > > _______________________________________________> protege-discussion mailing list> protege-discussion at lists.stanford.edu> https://mailman.stanford.edu/mailman/listinfo/protege-discussion> > Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 

Windows Live™: E-mail. Chat. Share. Get more ways to connect. Check it out.

Windows Live™: E-mail. Chat. Share. Get more ways to connect. Check it out. 
_______________________________________________
protege-discussion mailing list
protege-discussion at lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/protege-discussion

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 
  

Windows Live™: E-mail. Chat. Share. Get more ways to connect. Check it out. 
_______________________________________________
protege-discussion mailing list
protege-discussion at lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/protege-discussion

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 
  
_________________________________________________________________
Windows Live™: Keep your life in sync. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_022009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20090212/5f3d4558/attachment.html>


More information about the protege-discussion mailing list