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-owl] How to save OWLModel while preserving the file structure

Michael Lodemann milo at informatik.uni-kiel.de
Mon Feb 2 03:32:54 PST 2009


Thank you Thomas and Martin!



Martin O'Connor schrieb:
> They are returned by reference.
>
> Martin
>
> Thomas Russ wrote:
>
>   
>> On Jan 30, 2009, at 4:33 AM, Michael Lodemann wrote:
>>
>>  
>>
>>     
>>> Hmm ... beside my last post "Bug in DefaultSWRLImp RuleGroup- 
>>> mechanism"
>>> I have another question ... Kind of a java newbie one:
>>>
>>> Do
>>>
>>> factory.getImps();
>>>
>>> returns the rule-Collection by reference or by value? I mean ... when
>>> changing the rule-objects (DefaultSWRLImp) within this collection do I
>>> have to re-add them to the underlying JenaOWLModel again? If so - How?
>>>    
>>>
>>>       
>> There isn't any blanket Java-based answer to your real question.
>>
>> When a Collection is returned, you get the collection (technically a  
>> reference to that collection).  Now, whether that rule collection is  
>> the same as some internally-stored collection or if it is a newly  
>> created copy of that collection is something that can only be  
>> determined by looking at the documentation or the actual source code  
>> of the method.
>>
>> All you really know from the data type interface is that you are  
>> getting a Collection.  Whether that collection is shared or not  
>> depends on details of how it is produced.
>>
>> So, I guess you need to await Martin O'Connor's answer.
>>
>> _______________________________________________
>> protege-owl mailing list
>> protege-owl at lists.stanford.edu
>> https://mailman.stanford.edu/mailman/listinfo/protege-owl
>>
>> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 
>>
>>  
>>
>>     
>
> _______________________________________________
> protege-owl mailing list
> protege-owl at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 
>   


-- 
M.Sc. Michael Lodemann           Dept. for Computer Science, CAU of Kiel
Room 1106                        Communication Systems Research Group
                                 Phone:    +49-(0)431-880-7289
Christian-Albrechts-Platz 4      Fax:      +49-(0)431-880-7615
24098 Kiel - Germany             milo at informatik.uni-kiel.de




More information about the protege-owl mailing list