<?xml version="1.0"?>
<!-- 
Ontology-based Patterns: (1) Concept with Equivalent and Subclass Axioms 
reason: A named concept appears in an equivalent axiom and on the left-hand side of
a subclass axiom
solution: Extract the concept from the equivalent classes axiom and add a new
subclass axiom 
originally in Pellint in com.clarkparsia.pellint.lintpattern.ontology.EquivalentAndSubclassAxiomPattern
see doc directory of Pellet distribution
-->

<!DOCTYPE tp SYSTEM "http://nb.vse.cz/~svabo/patomat/tp/tp.dtd">

<tp name="tp_reasoning1" xmlns="http://nb.vse.cz/~svabo/patomat/tp/tp-schema.xsd">
  <op1>
    <entity_declarations>
      <placeholder type="Class">?A</placeholder>
      <placeholder type="Class">?B</placeholder>
      <placeholder type="Class">?C</placeholder>
      <placeholder type="Class">?D</placeholder>
      <placeholder type="ObjectProperty">?p</placeholder>
    </entity_declarations>
    <axioms>
      <axiom>Class: ?A EquivalentTo: (?B and ?C)</axiom>
      <axiom>Class: ?A SubClassOf: (?p only ?D)</axiom>
    </axioms>
  </op1>
  <op2>
    <entity_declarations>
      <placeholder type="Class">?E</placeholder>
      <placeholder type="Class">?F</placeholder>
      <placeholder type="Class">?G</placeholder>
      <placeholder type="Class">?H</placeholder>
      <placeholder type="ObjectProperty">?q</placeholder>
    </entity_declarations>
    <axioms>
      <axiom>Class: ?E SubClassOf: (?F and ?G)</axiom>
      <axiom>Class: ?E SubClassOf: (?q only ?H)</axiom>
    </axioms>
  </op2>
  <pt>
    <eq op1="?A" op2="?E"/>
    <eq op1="?B" op2="?F"/>
    <eq op1="?C" op2="?G"/>
    <eq op1="?D" op2="?H"/>
    <eq op1="?p" op2="?q"/>
  </pt>
</tp>