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] How to store a datataype property value in a varibale

jad al ahal8 at hotmail.com
Mon Jul 27 15:42:06 PDT 2009



 

 
Friends,
 
This may sound easy for you but I am having a hard time storing a date type or object type property to a variable.
 
I wrote the following python code:
 
 
 
 
   cKey  =owlModlel.getOWLIndividual(cKey)# To get the instance that has the Value
   myhostCPUMHz =cKey.getPropertyValue("hostCPUMHz")
   print myhostCPUMHzthe result:
 
TypeError: getPropertyValue(): 1st arg can't be coerced to edu.stanford.smi.protegex.owl.model.RDFProperty
 
 
 
Thank you,
 
 

 

_________________________________________________________________
Windows Live™ Hotmail®: Search, add, and share the web’s latest sports videos. Check it out.
http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_WL_QA_HM_sports_videos_072009&cat=sports
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20090727/a2a63a53/attachment.html>


More information about the protege-discussion mailing list