Counting links for requirement in JRS using LQE
Hi all,
One answer
Hi Anh Do,
I have never created similar SPARQL query before, but here is my rough idea.
In the latest version of JRS, there is a feature to create a requirement list which do not have links by using "Enable multiple paths or add other source artifacts", and adding all type of links one by one.
The above setting will create filters like below.
FILTER NOT EXISTS {
?oslc_rm_Requirement2_uri xmlns_rdm_types:Embedding ?oslc_rm_Requirement1_uri.
?oslc_rm_Requirement2_uri rdf:type oslc_rm:Requirement.
}
...
FILTER NOT EXISTS {
?oslc_rm_Requirement3_uri oslc_rm:constrainedBy ?oslc_rm_Requirement4_uri.
?oslc_rm_Requirement4_uri rdf:type oslc_rm:Requirement.
}
You can consolidate multiple "FILTER NOT EXISTS" into one. Perhaps you can manipulate this query result to make it a condition checking.