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] Slot Value Ordering

Jonathan Carter jonathan.carter at e-asolutions.com
Tue Oct 14 08:02:25 PDT 2008


Hi Dennis.

I don't think it would be too much to create the sorting method but  
you would be venturing into creating your own version of Protege as  
the InstanceTree is one of the core parts of it and you'd have to re- 
compile the whole thing.
However, what you could do - and this would be better - is create your  
own tab widget that is a specialisation of the standard InstanceTree  
and just over-ride the methods that you need to sort the display  
order. This would give you opportunities to over-ride the SaveAs as  
well to sort the instances before passing them on to the RDF export  
formatter.
The plugin framework is good in Protege and I managed to put together  
my own tab widget and slot widget in a couple of weeks or so from  
scratch and looking at the source code of various widgets in the  
Protege source. My tab widget is used to export the ontology in XML  
form to a servlet running a reporting environment, so it's in a  
similar space. It all depends on how complex your requirements are.

It's interesting that the InstanceTree gives the users easier  
navigation of the model - personally, I prefer the instances tab but I  
realise that there's a personal taste issue here! Are you using the  
control over the class browser display to improve the navigation  
(rather than just showing the full class hierarchy)?
Either way, this won't, as you said, solve the issue with your export.  
My XML export is also ordered as per the InstanceTree, which is  
basically by the :NAME attribute (as far as I can tell) which is the  
internal instance name and will reflect the order in which instances  
were created. However, when presenting it in the intranet reporting  
environment, I sort the results in each report via XSLT as required.

Jonathan

__________________________________________
Jonathan Carter - Head of Technical Architecture
Enterprise Architecture Solutions Ltd
__________________________________________

Assess your EA maturity at:
www.enterprise-architecture.com/EAvaluator
__________________________________________

On 14 Oct 2008, at 15:18, O'neill, Dennis wrote:

> Jonathan,
>
> No, that really doesn’t help because the users will be navigating in  
> the Instance Tree because it is easiest to understand the models  
> that way.
>
> Also, the ordering is important because we are using the RDF Export  
> to drive a document classification hierarchy in SharePoint and  
> unless the order can be maintained, the resulting XML (used to  
> generate SharePoint “trees”) would need to get re-sorted.
>
> I guess what I would need to do would be to specialize the method  
> that is used to display slot values to sort based on the Display  
> Slot definition, and then do a similar thing to the method that  
> walks the hierarchy do the export (or Save As).
>
> How complicated do you think that would be?
> Dennis M. O'Neill
> SAIC
> Contractor to Marathon Oil Company
> Enterprise Content Management
> Room 2068D
> (281) 236-5690 (Cell)
> doneill at marathonoil.com
>
> From: protege-discussion-bounces at mailman.stanford.edu [mailto:protege-discussion-bounces at mailman.stanford.edu 
> ] On Behalf Of Jonathan Carter
> Sent: Tuesday, October 14, 2008 4:46 AM
> To: User support for Core Protege and the Protege-Frames editor
> Subject: Re: [protege-discussion] Slot Value Ordering
>
> Hi Dennis,
>
> Not sure this is entirely the answer you are looking for but I think  
> that if you use the Instances tab rather than the Instance Tree, the  
> list of instances for each class is sorted alphabetically.
>
> Hope this helps
>
> Regards
>
> Jonathan
> __________________________________________
> Jonathan Carter - Head of Technical Architecture
> Enterprise Architecture Solutions Ltd
> __________________________________________
>
> Assess your EA maturity at:
> www.enterprise-architecture.com/EAvaluator
> __________________________________________
>
> On 13 Oct 2008, at 18:34, O'neill, Dennis wrote:
>
>
> Is there a way to get Protégé to sort (by the Set Display Slot) the  
> instances contained in a given slot? For example, it would be really  
> nice to get
>
> <image002.jpg>
>
> The list of District Courts to display in alphabetical order.
>
> Of course, once I can do this, I will then want that order to be  
> maintained when I write the Export to an RDF Schema and Instances.
>
> Thanks,
>
> Dennis M. O'Neill
> SAIC
> Contractor to Marathon Oil Company
> Enterprise Content Management
> Room 2068D
> (281) 236-5690 (Cell)
> doneill at marathonoil.com
>
>
> _______________________________________________
> 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
>
>
> _______________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20081014/2059c143/attachment.html>


More information about the protege-discussion mailing list