Can not make validateRequirements link from Jazz QM to artifact in custom OSLC Adapter
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:oslc_data="http://open-services.net/ns/servicemanagement/1.0/"
xmlns:oslc="http://open-services.net/ns/core#"
xmlns:oslc_qm="http://open-services.net/ns/qm#"
xmlns:oslc_rm="http://open-services.net/ns/rm#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<oslc_qm:TestScript rdf:about="http://localhost:8082/adaptor-testing/services/testScripts/2076">
<dcterms:description>A sample TestScript with id:2076</dcterms:description>
<dcterms:identifier>2076</dcterms:identifier>
<oslc_qm:validatesRequirement rdf:resource="http://localhost:8083/adaptor-rm/services/requirements/3"/>
<oslc_qm:validatesRequirement rdf:resource="http://localhost:8083/adaptor-rm/services/requirements/18"/>
<dcterms:title>A sample TestScript with id:2076</dcterms:title>
</oslc_qm:TestScript>
</rdf:RDF>
Accepted answer
When creating links between Requirements and TestCases with ELM products, while it appears you can create the Requirement validatedBy TestCase link from DNG, DNG doesn't actually own or create the link. Rather it does a GET on the TestCase, adds the link there and then does a PUT to ETM. So if you're creating links programmatically, you'd create the link from the QM provider to DNG (i.e., TestCase validatesRequirement Requirement), not the other way around.
Comments
As well as Jim's excellent reply, you should also look at https://jazz.net/wiki/bin/view/Main/CALM2010LinkTypes. It shows that links between a test case and a requirement are owned by, and persisted on, the test case in ETM.
I would also encourage you or colleagues to participate in the OSLC Open Projects working group. We have been discussing the idea of OSLC profiles starting with a Linking Profile to support use cases like this. Sadly, industry participation in OSLC meetings has been weak over the last few years.
Hi David,
Sorry, what do you mean under "participate in the OSLC Open Projects working group"? Can you provide a link for taking a look please?
Thank you very much in advance!