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 Does One Retrieve a MetaSlot Value ?

Schultz, Ron ron.schultz at vectorsgi.com
Mon Jan 22 14:01:08 PST 2007


Thanks Thomas. I refactored my code and used your suggestion and it
works properly now. 

-----Original Message-----
From: protege-discussion-bounces at lists.stanford.edu
[mailto:protege-discussion-bounces at lists.stanford.edu] On Behalf Of
Thomas Russ
Sent: Monday, January 22, 2007 11:39 AM
To: User support for Core Protege and the Protege-Frames editor
Subject: Re: [protege-discussion] How Does One Retrieve a MetaSlot Value
?


On Jan 21, 2007, at 8:36 PM, Schultz, Ron wrote:

> I created a MetaSlot class that has the additional property Synonym. I
> did this in the same way recommended on the Wiki for adding a  
> Synonym to
> a class, but I extended STANDARD SLOT instead of STANDARD CLASS.  
> How do
> I retrieve the synonym for a slot in Java code? Below is the code I  
> have
> for doing this to an instance of a class.

It should work the same way.  They are, after all, both Frames.
Is that not working for you?  What did you try that failed?

BTW, it would be more efficient to get the slot value directly by  
using the method KnowledgeBase.getSlot(name) instead of iterating  
through all of the own slots and doing a comparison against the  
browser text for that slot.



_______________________________________________
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 


[This message contains confidential and proprietary information of the sender, and is intended only for the person(s) to whom it is addressed.  Any use, distribution, copying or disclosure by any other person is strictly prohibited.  If you have received this message in error, please notify the e-mail sender immediately, and delete the original message without making a copy.]



More information about the protege-discussion mailing list