# Copyright 2020 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#> .
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix oslc:  <http://open-services.net/ns/core#> .


<http://open-services.net/ns/qm#>
        a                    owl:Ontology ;
        dcterms:title        "OSLC Quality Management (QM) Vocabulary" ;
        rdfs:label           "OSLC Quality Management (QM) Vocabulary" ;
        dcterms:description  "All vocabulary URIs defined in the OSLC Quality Management (QM) namespace."^^rdf:XMLLiteral ;
        vann:preferredNamespacePrefix "oslc_qm" ;
        dcterms:publisher <https://open-services.net/about/> ;
        dcterms:license <http://www.apache.org/licenses/LICENSE-2.0> ;
        # TODO add before publication
        dcterms:issued "2020-08-27"^^<http://www.w3.org/2001/XMLSchema#date> ;
        rdfs:seeAlso <https://github.com/oslc-op/oslc-specs/blob/master/specs/qm/quality-management-vocab.ttl> ;
        # TODO replace with a reference to the OASIS Docs archive as part of the publication PR
        dcterms:source <https://docs.oasis-open-projects.org/oslc-op/qm/v2.1/ps01/quality-management-vocab.ttl> ;
        # TODO replace with a reference to the OASIS Docs archive as part of the publication PR
        dcterms:isPartOf <https://docs.oasis-open-projects.org/oslc-op/qm/v2.1/ps01/quality-management-spec.html> ;
        dcterms:hasVersion "PS01" .

<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" ;
        oslc:inverseLabel  "affects" .

<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";
        oslc:inverseLabel  "run by" .

<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" ;
        oslc:inverseLabel  "reported by" .

<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" ;
        oslc:inverseLabel  "relates to" .

<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" ;
        oslc:inverseLabel  "tested by" .

<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" ;
        oslc:inverseLabel  "executed by" .

<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" ;
        oslc:inverseLabel  "used by" .

<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" ;
        oslc:inverseLabel  "validated by" .

<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" ;
        oslc:inverseLabel  "blocks" .

<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" ;
        oslc:inverseLabel  "used by" .

<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" ;
        oslc:inverseLabel  "validated by" .

<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" ;
        oslc:inverseLabel  "reported by" .

<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" .

<http://open-services.net/ns/qm#status>
        a                 rdf:Property ;
        rdfs:comment      "Used to indicate the state of the Test Result based on values defined by the service provider." ;
        rdfs:isDefinedBy  <http://open-services.net/ns/qm#> ;
        rdfs:label        "status" .
