Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Plug-in causing exceptions in Protégé

jaccoudMay 30 2016 — edited Jun 27 2016

Greetings,

After installing the Oracle Protégé plug-in, I noticed 2 problems when editing my ontologies, which have several owl:imports for upper ontologies.

1) A spurious wanna-be XML catalog file was created in the imported ontologies folder (see file catalog-v001.xml.removed at the end of the post, could find a way to attach a file to the post). Because of the filestamp, looks like this file, which is not well-formed XML (standalone=no and all IDs are invalid), was created by the plug-in. Because it is malformed, keeping this catalog there causes a lot of parsing problems, so I had to remove it manually.

2) Every time I change ontologies, I get a NPE from the plug-in, even after deleting the malformed XML catalog:

Error 1 Logged at Mon May 30 11:27:42 BRT 2016

NullPointerException: null

    org.protege.editor.owl.model.library.folder.FolderGroupManager.examineDiskEntries(FolderGroupManager.java:266)

    org.protege.editor.owl.model.library.folder.FolderGroupManager.examineDiskEntries(FolderGroupManager.java:294)

    org.protege.editor.owl.model.library.folder.FolderGroupManager.update(FolderGroupManager.java:146)

    org.protege.editor.owl.model.library.OntologyCatalogManager.update(OntologyCatalogManager.java:159)

    org.protege.editor.owl.model.library.OntologyCatalogManager.ensureCatalogExists(OntologyCatalogManager.java:116)

    org.protege.editor.owl.model.library.OntologyCatalogManager.addFolder(OntologyCatalogManager.java:189)

    oracle.spatial.rdf.client.jena.protege.plugin.CatalogListener.reloadCatalog(CatalogListener.java:142)

    oracle.spatial.rdf.client.jena.protege.plugin.CatalogListener.checkCatalog(CatalogListener.java:246)

    oracle.spatial.rdf.client.jena.protege.plugin.CatalogListener.run(CatalogListener.java:275)

This is probably caused by the missing pseudocatalog.

Any ideas on getting these right? This kind of stuff (autogenerated catalogs) should be documented, specially when it generates unparseable trash.

Sincerely,

Marcelo Amaral

(Petrobrás - IT Architecture Group)

===========catalog-v001.xml.removed=================

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<catalog prefer="public" xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">

    <group id="Folder Repository, directory=, recursive=true, Auto-Update=true, version=2" prefer="public" xml:base="">

        <uri id="Automatically generated entry, Timestamp=1462205560948" name="http://www.loa-cnr.it/ontologies/CommonSenseMapping.owl" uri="CommonSenseMapping.owl"/>

        <uri id="Automatically generated entry, Timestamp=1462205560948" name="http://www.loa-cnr.it/ontologies/DLP_397.owl" uri="DLP_397.owl"/>

        <uri id="Automatically generated entry, Timestamp=1462205560948" name="http://www.loa-cnr.it/ontologies/DOLCE-Lite.owl" uri="DOLCE-Lite.owl"/>

        <uri id="Automatically generated entry, Timestamp=1462205560948" name="http://www.loa-cnr.it/ontologies/ExtendedDnS.owl" uri="ExtendedDnS.owl"/>

        <uri id="Automatically generated entry, Timestamp=1462205560948" name="http://www.loa-cnr.it/ontologies/FunctionalParticipation.owl" uri="FunctionalParticipation.owl"/>

        <uri id="Automatically generated entry, Timestamp=1462205560948" name="http://www.loa-cnr.it/ontologies/InformationObjects.owl" uri="InformationObjects.owl"/>

        <uri id="Automatically generated entry, Timestamp=1462205560948" name="http://www.loa-cnr.it/ontologies/ModalDescriptions.owl" uri="ModalDescriptions.owl"/>

        <uri id="Automatically generated entry, Timestamp=1462205560948" name="http://www.loa-cnr.it/ontologies/Plans.owl" uri="Plans.owl"/>

        <uri id="Automatically generated entry, Timestamp=1462205560948" name="http://www.loa-cnr.it/ontologies/SocialUnits.owl" uri="SocialUnits.owl"/>

        <uri id="Automatically generated entry, Timestamp=1462205560948" name="http://www.loa-cnr.it/ontologies/SpatialRelations.owl" uri="SpatialRelations.owl"/>

        <uri id="Automatically generated entry, Timestamp=1462205560948" name="http://www.loa-cnr.it/ontologies/TemporalRelations.owl" uri="TemporalRelations.owl"/>

    </group>

</catalog>

This post has been answered by alwu-Oracle on Jun 27 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 25 2016
Added on May 30 2016
5 comments
1,591 views