PREFIX :           <http://example.org/>
PREFIX apf:        <http://jena.apache.org/ARQ/property#>

SELECT ?ns ?ln
{
  ?x :p 1 .
  # Test inside substituted expressions.
  OPTIONAL 
  { ?x apf:splitIRI (?ns ?ln) . }
}
