How to get link validity(valid,invalid and suspect links) in JRS report using LQE
One answer
See on-line documentation:
Comments
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?
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).