It's all about the answers!

Ask a question

How to get link validity(valid,invalid and suspect links) in JRS report using LQE


saransh tewari (1114) | asked Jun 28 '18, 7:36 a.m.
retagged Aug 03 '18, 2:02 p.m. by Ken Tessier (84117)

Is anyone knows how to get link validity(valid,invalid and suspect links) in JRS report using LQE as data source for generic requirements like :

Requirement > Satisfied By > Requirement1

One answer



permanent link
Geoffrey Clemm (30.1k33035) | answered Jul 01 '18, 12:15 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Comments
Don Cooper commented Jul 23 '19, 8:28 a.m. | edited Jul 23 '19, 1:32 p.m.
From what I understand, the lines:
?ns_validity__ValidityLink1_uri <http://jazz.net/ns/validity#status> ?status_enum .

 BIND (IF (!bound(?status_enum), "Suspect", ?status_enum) as ?validity_status)

Should get the link validity status from the variable
?ns_validity__ValidityLink1_uri
and set the variable
?status_enum with the value.

From the Jazz Linked Data Vocabulary, that value is only Valid or Invalid. If it's Suspect
then
?status_enum should be empty. So the IF statement checks if ?status_enum is empty and if
so sets ?validity_status to "Suspect".

But, it doesn't work. Any suggestions?

Geoffrey Clemm commented Jul 23 '19, 5:54 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

There will be a validity status record only if the validity status is Valid or Invalid.   The validity is Suspect if no validity status record exists (and setting the validity status to Suspect deletes the validity status record).  So you need to somehow check for no validity status record existing (we'd need a SPARQL person to tell us how to do that).

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.