# Copyright 2019 OASIS Open
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl:   <http://www.w3.org/2002/07/owl#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .


<http://open-services.net/ns/qm#>
        a                    owl:Ontology ;
        rdfs:label           "Quality Management(QM)" ;
        rdfs:seeAlso         <http://open-services.net/ns/qm/qm.rdf> ;
        dcterms:description  "All vocabulary URIs defined in the OSLC Quality Management (QM) namespace."^^rdf:XMLLiteral ;
        dcterms:title        "The OSLC Quality Management(QM) Vocabulary" .


<http://open-services.net/ns/qm#TestPlan>
        a                 rdfs:Class ;
        rdfs:comment      "The QM Test Plan resource." ;
        rdfs:isDefinedBy  <http://open-services.net/ns/qm#> ;
        rdfs:label        "TestPlan" .

<http://open-services.net/ns/qm#TestScript>
        a                 rdfs:Class ;
        rdfs:comment      "The QM Test Script resource." ;
        rdfs:isDefinedBy  <http://open-services.net/ns/qm#> ;
        rdfs:label        "TestScript" .

<http://open-services.net/ns/qm#TestCase>
        a                 rdfs:Class ;
        rdfs:comment      "The QM Test Case resource." ;
        rdfs:isDefinedBy  <http://open-services.net/ns/qm#> ;
        rdfs:label        "TestCase" .

<http://open-services.net/ns/qm#TestExecutionRecord>
        a                 rdfs:Class ;
        rdfs:comment      "The QM Test Execution Record resource." ;
        rdfs:isDefinedBy  <http://open-services.net/ns/qm#> ;
        rdfs:label        "TestExecutionRecord" .

<http://open-services.net/ns/qm#TestResult>
        a                 rdfs:Class ;
        rdfs:comment      "The QM Test Result resource." ;
        rdfs:isDefinedBy  <http://open-services.net/ns/qm#> ;
        rdfs:label        "TestResult" .

<http://open-services.net/ns/qm#affectedByChangeRequest>
        a                 rdf:Property ;
        rdfs:comment      "Change request that affects the Test Result. It is likely that the target resource will be an oslc_cm:ChangeRequest but that is not necessarily the case." ;
        rdfs:isDefinedBy  <http://open-services.net/ns/qm#> ;
        rdfs:label        "affectedByChangeRequest" .

<http://open-services.net/ns/qm#runsTestCase>
        a                 rdf:Property ;
        rdfs:comment      "Test Case run by the Test Execution Record. It is likely that the target resource will be an oslc_qm:TestCase but that is not necessarily the case." ;
        rdfs:isDefinedBy  <http://open-services.net/ns/qm#> ;
        rdfs:label        "runsTestCase" .

<http://open-services.net/ns/qm#reportsOnTestPlan>
        a                 rdf:Property ;
        rdfs:comment      "Test Plan that a test or execution record reports on. It is likely that the target resource will be an oslc_qm:TestPlan but that is not necessarily the case." ;
        rdfs:isDefinedBy  <http://open-services.net/ns/qm#> ;
        rdfs:label        "reportsOnTestPlan" .

<http://open-services.net/ns/qm#relatedChangeRequest>
        a                 rdf:Property ;
        rdfs:comment      "A related change request. It is likely that the target resource will be an oslc_cm:ChangeRequest but that is not necessarily the case." ;
        rdfs:isDefinedBy  <http://open-services.net/ns/qm#> ;
        rdfs:label        "relatedChangeRequest" .

<http://open-services.net/ns/qm#testsChangeRequest>
        a                 rdf:Property ;
        rdfs:comment      "Change Request tested by the Test Case. It is likely that the target resource will be an oslc_cm:ChangeRequest but that is not necessarily the case." ;
        rdfs:isDefinedBy  <http://open-services.net/ns/qm#> ;
        rdfs:label        "testsChangeRequest" .

<http://open-services.net/ns/qm#executesTestScript>
        a                 rdf:Property ;
        rdfs:comment      "Test Script executed to produce the Test Result. It is likely that the target resource will be an oslc_qm:TestScript but that is not necessarily the case." ;
        rdfs:isDefinedBy  <http://open-services.net/ns/qm#> ;
        rdfs:label        "executesTestScript" .

<http://open-services.net/ns/qm#usesTestCase>
        a                 rdf:Property ;
        rdfs:comment      "Test Case used by the Test Plan. It is likely that the target resource will be an oslc_qm:TestCase but that is not necessarily the case." ;
        rdfs:isDefinedBy  <http://open-services.net/ns/qm#> ;
        rdfs:label        "usesTestCase" .

<http://open-services.net/ns/qm#validatesRequirementCollection>
        a                 rdf:Property ;
        rdfs:comment      "Requirement Collection that is validated by the Test Plan. It is likely that the target resource will be an oslc_rm:RequirementCollection but that is not necessarily the case." ;
        rdfs:isDefinedBy  <http://open-services.net/ns/qm#> ;
        rdfs:label        "validatesRequirementCollection" .

<http://open-services.net/ns/qm#blockedByChangeRequest>
        a                 rdf:Property ;
        rdfs:comment      "Change Request that prevents execution of the Test Execution Record. It is likely that the target resource will be an oslc_cm:ChangeRequest but that is not necessarily the case." ;
        rdfs:isDefinedBy  <http://open-services.net/ns/qm#> ;
        rdfs:label        "blockedByChangeRequest" .

<http://open-services.net/ns/qm#usesTestScript>
        a                 rdf:Property ;
        rdfs:comment      "Test Script used by the Test Case. It is likely that the target resource will be an oslc_qm:TestScript but that is not necessarily the case." ;
        rdfs:isDefinedBy  <http://open-services.net/ns/qm#> ;
        rdfs:label        "usesTestScript" .

<http://open-services.net/ns/qm#validatesRequirement>
        a                 rdf:Property ;
        rdfs:comment      "Requirement that is validated by the Test Case. It is likely that the target resource will be an oslc_rm:Requirement but that is not necessarily the case." ;
        rdfs:isDefinedBy  <http://open-services.net/ns/qm#> ;
        rdfs:label        "validatesRequirement" .

<http://open-services.net/ns/qm#runsOnTestEnvironment>
        a                 rdf:Property ;
        rdfs:comment      "Indicates the environment details of the test case for this execution record." ;
        rdfs:isDefinedBy  <http://open-services.net/ns/qm#> ;
        rdfs:label        "runsOnTestEnvironment" .

<http://open-services.net/ns/qm#producedByTestExecutionRecord>
        a                 rdf:Property ;
        rdfs:comment      "Test Execution Record that the Test Result was produced by. It is likely that the target resource will be an oslc_qm:TestExecutionRecord but that is not necessarily the case." ;
        rdfs:isDefinedBy  <http://open-services.net/ns/qm#> ;
        rdfs:label        "producedByTestExecutionRecord" .

<http://open-services.net/ns/qm#reportsOnTestCase>
        a                 rdf:Property ;
        rdfs:comment      "Test Case that the Test Result reports on. It is likely that the target resource will be an oslc_qm:TestCase but that is not necessarily the case." ;
        rdfs:isDefinedBy  <http://open-services.net/ns/qm#> ;
        rdfs:label        "reportsOnTestCase" .

<http://open-services.net/ns/qm#executionInstructions>
        a                 rdf:Property ;
        rdfs:comment      "Instructions for executing the test script. Note that the value of Occurs is undefined. The resource shape document provided by the QM service provider may be consulted for its value." ;
        rdfs:isDefinedBy  <http://open-services.net/ns/qm#> ;
        rdfs:label        "executionInstructions" .
