Build 304 Bug: Exception thrown on deleting restriction

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Build 304 Bug: Exception thrown on deleting restriction

Steve Wartik
I think this bug only affects the user interface; the underlying OWL model seems okay. It concerns deleting a restriction on an imported property.

To reproduce the bug:
  1. Save the attached ontology, included-ont.owl, somewhere. (Note: I'm importing this ontology from a server, but it's not publicly accessible. You'll probably want to change the namespaces.)
  2. Start Protege and create a new OWL ontology.
  3. In the Metadata tab, import included-ont.owl. Accept the default namespace.
  4. In the OWL Classes tab, create class Foo.
  5. Click the Create Restriction button. Add a minimum cardinality restriction of 1 on p1:has-member.
  6. Switch to the Properties View.
  7. Open the p1:has-member property and select the cardinality restriction.
  8. Click the Delete restriction button.
This causes a NullPointerException. It's thrown from line 35 of RestrictionTreeNode.java.

<?xml version="1.0"?>
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns="http://fricka.itsd.ida.org:8080/included-ont.owl#"
  xml:base="http://fricka.itsd.ida.org:8080/included-ont.owl">
  <owl:Ontology rdf:about=""/>
  <owl:ObjectProperty rdf:ID="has-member"/>
</rdf:RDF>

<!-- Created with Protege (with OWL Plugin 2.2, Build 304)  http://protege.stanford.edu -->
Reply | Threaded
Open this post in threaded view
|

Re: Build 304 Bug: Exception thrown on deleting restriction

Nick Drummond
Steven,

Thanks for the bug - this is reproducable regardless of the import or
restriction type.
Added to the list.

Nick

Steven Wartik wrote:

> I think this bug only affects the user interface; the underlying OWL
> model seems okay. It concerns deleting a restriction on an imported
> property.
>
> To reproduce the bug:
>
>    1. Save the attached ontology, included-ont.owl, somewhere. (Note:
>       I'm importing this ontology from a server, but it's not publicly
>       accessible. You'll probably want to change the namespaces.)
>    2. Start Protege and create a new OWL ontology.
>    3. In the Metadata tab, import included-ont.owl. Accept the default
>       namespace.
>    4. In the OWL Classes tab, create class Foo.
>    5. Click the Create Restriction button. Add a minimum cardinality
>       restriction of 1 on p1:has-member.
>    6. Switch to the Properties View.
>    7. Open the p1:has-member property and select the cardinality
>       restriction.
>    8. Click the Delete restriction button.
>
> This causes a NullPointerException. It's thrown from line 35 of
> RestrictionTreeNode.java.
>
>------------------------------------------------------------------------
>
><?xml version="1.0"?>
><rdf:RDF
>    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>    xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
>    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
>    xmlns:owl="http://www.w3.org/2002/07/owl#"
>    xmlns="http://fricka.itsd.ida.org:8080/included-ont.owl#"
>  xml:base="http://fricka.itsd.ida.org:8080/included-ont.owl">
>  <owl:Ontology rdf:about=""/>
>  <owl:ObjectProperty rdf:ID="has-member"/>
></rdf:RDF>
>
><!-- Created with Protege (with OWL Plugin 2.2, Build 304)  http://protege.stanford.edu -->
>  
>

--

Nick Drummond

http://www.cs.man.ac.uk/~drummond/ <http://www.cs.man.ac.uk/%7Edrummond/>
-------------------------------------------------------------------------
To unsubscribe go to http://protege.stanford.edu/community/subscribe.html