Including or Excluding SPARQL snippet for Boolean conditions

Earlier, any SPARQL snippet specific to the Boolean conditions such as Exclude archived and Only toplevel was always considered in the final query irrespective of the checkbox selection. Hence, the Custom Artifact Element (CAE) author was not able to filter out the unused Boolean condition's SPARQL snippet from the final SPARQL query. Now, the CAE author can include or exclude the SPARQL snippet based on the usage of Boolean conditions. A list is added in the Assign values to query conditions window to include or exclude the Boolean condition's SPARQL snippet from the final SPARQL query.

About this task

This task explains how to include or exclude the unused Boolean condition's SPARQL snippet from the final SPARQL query when you preview the Query result for a specific CAE.

Procedure

  1. On the view welcome page, click Browse custom artifact elements.
  2. Expand the required custom artifact element.
  3. Click the custom artifact element that contains Boolean type condition.
    CAE_list_expand
    You can see the detailed conditions list for the selected custom artifact element.
    detailed list of conditions for selected CAE
  4. Click Preview.
  5. In the Assign values to query conditions window, select one of the following options to either include or exclude the Boolean condition's SPARQL snippet.
    • Used - The SPARQL snippet specific to a Boolean condition is included to the final SPARQL. Thus, the checkbox selection is considered for running the final SPARQL query.
    • Not used - The SPARQL snippet specific to a Boolean condition is excluded from the final SPARQL. Thus, checkbox selection is not considered for running the final SPARQL query.
    Drop-down list for Boolean conditions
    Note: The SPARQL snippet for any of the selected Boolean conditions is included or excluded based on the value that is selected from the list. The inclusion or exclusion of the SPARQL snippet is not dependent on the corresponding checkbox selection.
  6. Click Run query to see the query result.