@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://www.w3.org/2006/03/test-description> rdfs:seeAlso <http://www.w3.org/TR/2005/NOTE-test-metadata-20050914/> .

<http://www.w3.org/2006/03/test-description#ReviewStatus> a owl:Class;
  rdfs:comment "A particular stage in a review process";
  rdfs:label "Status in a review process"@en .

<http://www.w3.org/2006/03/test-description#SimpleReviewStatus> a owl:Class;
  rdfs:label "A status for a simple review process containing 6 possible stages"@en;
  rdfs:subClassOf <http://www.w3.org/2006/03/test-description#ReviewStatus>;
  owl:oneOf _:828123 .

_:828123 rdf:first <http://www.w3.org/2006/03/test-description#unreviewed>;
  rdf:rest _:828133 .

_:828133 rdf:first <http://www.w3.org/2006/03/test-description#accepted>;
  rdf:rest _:828143 .

_:828143 rdf:first <http://www.w3.org/2006/03/test-description#assigned>;
  rdf:rest _:828153 .

_:828153 rdf:first <http://www.w3.org/2006/03/test-description#approved>;
  rdf:rest _:828163 .

_:828163 rdf:first <http://www.w3.org/2006/03/test-description#rejected>;
  rdf:rest _:828173 .

_:828173 rdf:first <http://www.w3.org/2006/03/test-description#onhold>;
  rdf:rest rdf:nil .

<http://www.w3.org/2006/03/test-description#SpecificationTestCase> a owl:Class;
  rdfs:comment "A test case which relates to a requirement set in a specification";
  rdfs:label "A Test Case based on a specification"@en;
  rdfs:subClassOf <http://www.w3.org/2006/03/test-description#TestCase>, _:828183 .

_:828183 a owl:Restriction;
  owl:minCardinality "1"^^xsd:nonNegativeInteger;
  owl:onProperty <http://www.w3.org/2006/03/test-description#specificationReference> .

<http://www.w3.org/2006/03/test-description#TestCase> a owl:Class;
  rdfs:comment "A set of test inputs, execution conditions, and expected results developed for a particular objective, such as to exercise a particular program path or to verify compliance with a specific requirement";
  rdfs:label "A Test Case"@en;
  rdfs:subClassOf _:828193, _:8281a3, _:8281b3, _:8281c3, _:8281d3, _:8281e3, _:8281f3,
    _:828203 .

_:828193 a owl:Restriction;
  owl:minCardinality "1"^^xsd:nonNegativeInteger;
  owl:onProperty <http://purl.org/dc/elements/1.1/title> .

_:8281a3 a owl:Restriction;
  owl:maxCardinality "1"^^xsd:nonNegativeInteger;
  owl:onProperty <http://purl.org/dc/elements/1.1/title> .

_:8281b3 a owl:Restriction;
  owl:minCardinality "1"^^xsd:nonNegativeInteger;
  owl:onProperty <http://www.w3.org/2006/03/test-description#purpose> .

_:8281c3 a owl:Restriction;
  owl:maxCardinality "1"^^xsd:nonNegativeInteger;
  owl:onProperty <http://www.w3.org/2006/03/test-description#purpose> .

_:8281d3 a owl:Restriction;
  owl:maxCardinality "1"^^xsd:nonNegativeInteger;
  owl:onProperty <http://purl.org/dc/elements/1.1/description> .

_:8281e3 a owl:Restriction;
  owl:maxCardinality "1"^^xsd:nonNegativeInteger;
  owl:onProperty <http://www.w3.org/2006/03/test-description#reviewStatus> .

_:8281f3 a owl:Restriction;
  owl:minCardinality "1"^^xsd:nonNegativeInteger;
  owl:onProperty <http://purl.org/dc/elements/1.1/contributor> .

_:828203 a owl:Restriction;
  owl:minCardinality "1"^^xsd:nonNegativeInteger;
  owl:onProperty <http://purl.org/dc/elements/1.1/rights> .

<http://www.w3.org/2006/03/test-description#accepted> a <http://www.w3.org/2006/03/test-description#ReviewStatus>;
  rdfs:comment "the item has gone through a first review, which shows it as valid for further processing";
  rdfs:label "accepted"@en .

<http://www.w3.org/2006/03/test-description#approved> a <http://www.w3.org/2006/03/test-description#ReviewStatus>;
  rdfs:comment "the item has gone through the review process and was approved";
  rdfs:label "approved"@en .

<http://www.w3.org/2006/03/test-description#assigned> a <http://www.w3.org/2006/03/test-description#ReviewStatus>;
  rdfs:comment "a more specific review of the item has been assigned to someone";
  rdfs:label "assigned"@en .

<http://www.w3.org/2006/03/test-description#expectedResults> a rdf:Property;
  rdfs:comment "The results that a conformant implementation is expected to produce when this test is executed";
  rdfs:domain <http://www.w3.org/2006/03/test-description#TestCase>;
  rdfs:label "expected results"@en .

<http://www.w3.org/2006/03/test-description#informationResourceInput> a owl:ObjectProperty;
  rdfs:comment "Information Resource (e.g. a file) used as input for the test case"@en;
  rdfs:label "information resource as input"@en;
  rdfs:range <http://www.w3.org/2006/gen/ont#InformationResource>;
  rdfs:subPropertyOf <http://www.w3.org/2006/03/test-description#input> .

<http://www.w3.org/2006/03/test-description#informationResourceResults> a owl:ObjectProperty;
  rdfs:comment "Information Resource (e.g. a file) that contains the expected results for the test case";
  rdfs:label "information resource as expected results"@en;
  rdfs:range <http://www.w3.org/2006/gen/ont#InformationResource>;
  rdfs:subPropertyOf <http://www.w3.org/2006/03/test-description#expectedResults> .

<http://www.w3.org/2006/03/test-description#input> a rdf:Property;
  rdfs:comment "Parameters or data that are needed for the test execution."@en;
  rdfs:domain <http://www.w3.org/2006/03/test-description#TestCase>;
  rdfs:label "input"@en .

<http://www.w3.org/2006/03/test-description#onhold> a <http://www.w3.org/2006/03/test-description#ReviewStatus>;
  rdfs:comment "the item had already gone through the review process, but the results of the review need to be re-assessed due to new input";
  rdfs:label "on hold" .

<http://www.w3.org/2006/03/test-description#preCondition> a owl:DatatypeProperty;
  rdfs:comment "a condition that must be met before the test is executed"@en;
  rdfs:domain <http://www.w3.org/2006/03/test-description#TestCase>;
  rdfs:label "precondition"@en;
  rdfs:range rdfs:Literal .

<http://www.w3.org/2006/03/test-description#purpose> a owl:DatatypeProperty;
  rdfs:domain <http://www.w3.org/2006/03/test-description#TestCase>;
  rdfs:label "purpose"@en;
  rdfs:range rdfs:Literal .

<http://www.w3.org/2006/03/test-description#rejected> a <http://www.w3.org/2006/03/test-description#ReviewStatus>;
  rdfs:comment "the item has gone through the review process and was rejected";
  rdfs:label "rejected"@en .

<http://www.w3.org/2006/03/test-description#reviewStatus> a owl:ObjectProperty;
  rdfs:label "status of review"@en;
  rdfs:range <http://www.w3.org/2006/03/test-description#ReviewStatus> .

<http://www.w3.org/2006/03/test-description#specificationReference> a owl:DatatypeProperty;
  rdfs:comment "a description or a link of what part of which specification lead to the creation of this test case"@en;
  rdfs:domain <http://www.w3.org/2006/03/test-description#TestCase>;
  rdfs:label "reference in specification"@en;
  rdfs:range rdfs:Literal .

<http://www.w3.org/2006/03/test-description#unreviewed> a <http://www.w3.org/2006/03/test-description#ReviewStatus>;
  rdfs:comment "the item has been proposed, but hasn't been reviewed (e.g. for completeness) yet";
  rdfs:label "unreviewed"@en .
