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
-
On the view welcome page, click Browse custom artifact elements.
- Expand the required custom artifact element.
- Click the custom artifact element that contains Boolean type
condition.
You can see the detailed conditions list for the selected
custom artifact element.
- Click Preview.
- 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.
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.
- Click Run query to see the query result.