current_user_in_group
Returns a boolean based on whether the current user running the query belongs to a given group. Can be called in two forms using one or two arguments.
Returns: string
Table 1.
Parameter | Type | Description |
---|---|---|
organization | string | the name of the organization |
group_id | string | the id of the group |
Example
Query
PREFIX : <https://ddw-doccorp.linked.data.world/d/sparql-function-sample-queries/> PREFIX fn: <http://data.world/function/functions#> SELECT (fn:current_user_in_group("ddw-doccorp/members") AS ?current_user_in_group) { }
Table 2. Results
current_user_in_group |
---|
true |