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.
Parameter | Type | Description |
---|---|---|
| string | the name of the organization |
| string | the id of the group |
Returns: string
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) { }
Results:
current_user_in_group |
---|
true |