Re: exception at edu.stanford.smi.protegex.server_changes.PostProcessorManager.getChangesProject

Timothy Redmond <[email protected]>
Newsgroups gmane.comp.misc.ontology.protege.general
Message-ID <[email protected]>
I don't think that this code (generateChangeOntology()) has worked for a 
long time.  It was developed for NCI some time ago but was broken when 
the changes library/plugin was refactored and became the Chao library.  
One negative aspect of implementing a function like 
generateChangeOntology is that a lot of information will be lost when 
converting into the Chao difference library.

-Timothy

On 06/29/2012 06:03 AM, Oylum Alatl? wrote:
> Hi,
>
> When I run the following code:
>
>
>
>
> import java.io.File;
> import java.io.FileInputStream;
> import java.io.FileNotFoundException;
> import java.net.URISyntaxException;
>
> import edu.stanford.smi.protege.exception.OntologyLoadException;
> import edu.stanford.smi.protegex.owl.ProtegeOWL;
> import edu.stanford.smi.protegex.owl.model.OWLModel;
> import edu.stanford.smi.protegex.prompt.promptDiff.PromptDiff;
>
>
> public class deneme2 {
>
>     public static void main(String[] args) throws URISyntaxException {
>
>
>         OWLModel owlModel1, owlModel2;
>         owlModel1 = null;
>         owlModel2 = null;
>
>
>         try {
> owlModel1=ProtegeOWL.createJenaOWLModelFromInputStream(new 
> FileInputStream(new 
> File("/media/TOSHIBA_/protege3.4.4/examples/pizza/pizza.owl")));
> owlModel2=ProtegeOWL.createJenaOWLModelFromInputStream(new 
> FileInputStream(new 
> File("/media/TOSHIBA_/protege3.4.4/examples/pizza/pizza2.owl")));
>             PromptDiff pDiff=new PromptDiff();
>             pDiff.runDiff(owlModel1, owlModel2);
>             pDiff.generateChangeOntology();
>         } catch (FileNotFoundException e) {
>
>             e.printStackTrace();
>         } catch (OntologyLoadException e) {
>
>             e.printStackTrace();
>         }
>
>
>     }
>
> }
>
>
> I get the following error:
>
> ...
> Diff started:  Fri Jun 29 16:00:58 EEST 2012
> Loaded versions:  Fri Jun 29 16:00:58 EEST 2012
> Using id slot:  null; checking id slot only: false
> *********** start CompareFrameNamesAndTypes ************
> *********** start UnmatchedInverseSlot ************
> *********** start SingleUnmatchedDomain ************
> *********** start SlotsWithSameAllowedClass ************
> *********** start SingleUnmatchedAllowedClass ************
> *********** start SplitClasses ************
> *********** start ClassesWithSameSubclassAndSuperclass ************
> *********** start SiblingsWithSameSuffixes ************
> *********** start MultipleUnmatchedSiblingsWithSimilarNames ************
> *********** start MultipleUnmatchedSiblings ************
> *********** start UnmatchedTemplateSlotsAtClass ************
> *********** start UnmatchedSuperclass ************
> *********** start LoneUnmatchedTemplateSlot ************
> *********** start InstancesWithSameSlotValues ************
> *********** start LoneUnmatchedSibling ************
> *********** start FramesWithSimilarNames ************
> Diff done:  Fri Jun 29 16:00:59 EEST 2012
> change analyzer done:  Fri Jun 29 16:00:59 EEST 2012
> start processing log:  Fri Jun 29 16:00:59 EEST 2012
> processing log  done:  Fri Jun 29 16:00:59 EEST 2012
> Unmatched entries from ontology 1: 526
> Unmatched entries from ontology 2: 232
> Rows without rename in the table: 292
> Rows with rename in the table: 0
> Unchanged rows in the table: 292
> Isomorphic rows in the table: 0
> Changed rows in the table: 0
> Exception in thread "main" java.lang.NullPointerException
>     at 
> edu.stanford.smi.protegex.server_changes.PostProcessorManager.getChangesProject(Unknown 
> Source)
>     at 
> edu.stanford.smi.protegex.prompt.promptDiff.PromptDiff.generateChangeOntology(Unknown 
> Source)
>     at deneme2.main(deneme2.java:37)
>
>
> Could you please help me to solve this?
>
> Thanks,
>
> Oylum Alatl?
>
>
> _______________________________________________
> protege-discussion mailing list
> [email protected]
> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03

_______________________________________________
protege-discussion mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/protege-discussion

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.