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