Skip to content

Output of P34 incorrect caused by side effects of P04 #12

@pieterhijma

Description

@pieterhijma

This is related to #11 which should be handled first. This issue may be a larger issue, but the test for P34 runs P04 which will add new classes to the model. This causes P34 to report different output than https://oops.linkeddata.es/.

The output from https://oops.linkeddata.es is:

  <oops:Pitfall>
    <oops:Code>P34</oops:Code><oops:Name>Untyped class</oops:Name>
    <oops:Description>An ontology element is used as a class without having been explicitly declared as such using the primitives owl:Class or rdfs:Class. This pitfall is related with the common problems listed in [8].	</oops:Description>
    <oops:Importance>Important</oops:Importance>
    <oops:NumberAffectedElements>6</oops:NumberAffectedElements>
    <oops:Affects>
      <oops:AffectedElement>http://oops.linkeddata.es/data/testP34#ClassJ</oops:AffectedElement>
      <oops:AffectedElement>http://oops.linkeddata.es/data/testP34#ClassH</oops:AffectedElement>
      <oops:AffectedElement>http://oops.linkeddata.es/data/testP34#ClassF</oops:AffectedElement>
      <oops:AffectedElement>http://oops.linkeddata.es/data/testP34#ClassI</oops:AffectedElement>
      <oops:AffectedElement>http://oops.linkeddata.es/data/testP34#ClassE</oops:AffectedElement>
      <oops:AffectedElement>http://oops.linkeddata.es/data/testP34#ClassD</oops:AffectedElement>
    </oops:Affects>
  </oops:Pitfall>

The output from running the test in #10 is:

<http://oops.linkeddata.es/data/5c3b8c7d-e196-4a3c-ab78-1645ad4b3380>
        a                               oops:pitfall;
        oops:hasAffectedElement         
            "http://oops.linkeddata.es/data/testP34#ClassJ"^^<http://www.w3.org/2001/XMLSchema#anyURI> , 
            "http://oops.linkeddata.es/data/testP34#ClassH"^^<http://www.w3.org/2001/XMLSchema#anyURI> , 
            "http://oops.linkeddata.es/data/testP34#ClassF"^^<http://www.w3.org/2001/XMLSchema#anyURI>;
        oops:hasCode                    "P34 - Untyped class";
        oops:hasDescription             "An ontology element is used as a class without having been explicitly declared as such using the primitives owl:Class or rdfs:Class. This pitfall is related with the common problems listed in [8].";
        oops:hasImportanceLevel         "MINOR";
        oops:hasName                    "Untyped class";
        oops:hasNumberAffectedElements  3 .

The question is if we want to keep these side effects or not.

To run the test, please execute the following:

./run/test-pitfall.sh P34

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions