You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to be able to apply more ellaborate patterns for bindings inside the HAVING clauses, like being able to specify the suffix/prefix of a TYPE binding for example:
SELECT ?o, ?o_type
FROM ?test
WHERE {
?s ?p ?o TYPE ?o_type
}
HAVING ?o_type LIKE "/country/corp%"^^type:text;
With something like a LIKE keyword and a protected symbol such as % to represent that anything can appear at that position, as in the example above on which we specify a prefix for ?o_type.
Given a graph containing hierarchical node TYPEs, such as /country/corp and /country/corp/employee for example, this feature would be especially handy.
To achieve that, it may be helpful to have a look at functions such as strings.HasPrefix as used for covariants in BadWolf here:
The text was updated successfully, but these errors were encountered:
rogerlucena
changed the title
Allow more ellaborate patterns (like specifying suffix/prefix) for bindings inside HAVING clauses
Allow more elaborate patterns (like specifying suffix/prefix) for bindings inside HAVING clauses
Jul 29, 2020
It would be useful to be able to apply more ellaborate patterns for bindings inside the HAVING clauses, like being able to specify the suffix/prefix of a
TYPE
binding for example:With something like a
LIKE
keyword and a protected symbol such as%
to represent that anything can appear at that position, as in the example above on which we specify a prefix for?o_type
.Given a graph containing hierarchical node TYPEs, such as
/country/corp
and/country/corp/employee
for example, this feature would be especially handy.To achieve that, it may be helpful to have a look at functions such as
strings.HasPrefix
as used for covariants in BadWolf here:badwolf/triple/node/node.go
Line 46 in dd89f9b
The text was updated successfully, but these errors were encountered: