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

Oylum Alatlı <[email protected]>
Newsgroups gmane.comp.misc.ontology.protege.general
Message-ID <CAAmvzzCopv1N_4n6N6QWbt+CFAPc0ABP9Z1cOUdYfUZEB5EG6g@mail.gmail.com>
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
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.