{{PositiveEntailmentTestCase
|id=rdfbased-sem-key-def
|description=For two triples matching the conditions of a key axiom the subjects are identified.
|author=Michael Schneider, Kai Mainzer
|syntax=RDF/XML
|semantics=Test applies only to RDF-based semantics
|rlrulescomplete=Yes
|consistent-ontology=<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
    xmlns:ex="http://www.example.org#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" > 
  <rdf:Description rdf:about="http://www.example.org#c">
    <owl:hasKey rdf:nodeID="A0"/>
  </rdf:Description>
  <rdf:Description rdf:nodeID="A1">
    <rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
    <rdf:first rdf:resource="http://www.example.org#p2"/>
  </rdf:Description>
  <rdf:Description rdf:about="http://www.example.org#x">
    <ex:p2>data</ex:p2>
    <ex:p1 rdf:resource="http://www.example.org#z"/>
    <rdf:type rdf:resource="http://www.example.org#c"/>
  </rdf:Description>
  <rdf:Description rdf:nodeID="A0">
    <rdf:rest rdf:nodeID="A1"/>
    <rdf:first rdf:resource="http://www.example.org#p1"/>
  </rdf:Description>
  <rdf:Description rdf:about="http://www.example.org#y">
    <ex:p2>data</ex:p2>
    <ex:p1 rdf:resource="http://www.example.org#z"/>
    <rdf:type rdf:resource="http://www.example.org#c"/>
  </rdf:Description>
</rdf:RDF>
|conclusion-ontology=<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
    xmlns:ex="http://www.example.org#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" > 
  <rdf:Description rdf:about="http://www.example.org#x">
    <owl:sameAs rdf:resource="http://www.example.org#y"/>
  </rdf:Description>
</rdf:RDF>
}}