| arq.examples.propertyfunction.localname
localname | public class localname extends PFuncSimple (Code) | | Example property function that creates the association between a URI and it's localname.
See also splitIRI which is more general. This is just an example.
If it is not a URI, then does not match.
Use as:
?uri ext:localname ?localname
Depending on whether the subject/object are bound when called:
- subject bound, object unbound => assign the local name to variable in object slot
- subject bound, object bound => check the subject has the local name given by object
- subject unbound, object bound => find all URIs in the model (s, p or o) that have that local name
- subject unbound, object unbound => generate all localname for all URI resources in the model
The two searching forms (subject unbound) are expensive.
Anything not a URI (subject) or string (object) causes no match.
author: Andy Seaborne |
Method Summary | |
public QueryIterator | execEvaluated(Binding binding, Node nodeURI, Node predicate, Node nodeLocalname, ExecutionContext execCxt) |
execEvaluated | public QueryIterator execEvaluated(Binding binding, Node nodeURI, Node predicate, Node nodeLocalname, ExecutionContext execCxt)(Code) | | |
|
|