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] exception at edu.stanford.smi.protegex.server_changes.PostProcessorManager.getChangesProject

Oylum Alatlı oylum.alatli at gmail.com
Fri Jun 29 06:03:18 PDT 2012


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ı
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20120629/b8d76da2/attachment.html>


More information about the protege-discussion mailing list