}
// Simple literal or xsd:string
String str = simpleLiteralOrXSDString(nv) ;
if ( str == null )
throw new ExprEvalException("Can't make an IRI from " + nv) ;
IRI iri = null ;
String iriStr = nv.getLiteralLexicalForm() ;
// Level of checking?
if ( baseIRI != null ) {
IRI base = iriFactory.create(baseIRI) ;
iri = base.create(iriStr) ;
} else
iri = iriFactory.create(iriStr) ;
if ( !iri.isAbsolute() )
throw new ExprEvalException("Relative IRI string: " + iriStr) ;
if ( warningsForIRIs && iri.hasViolation(false) ) {
String msg = "unknown violation from IRI library" ;
Iterator<Violation> iter = iri.violations(false) ;
if ( iter.hasNext() ) {
Violation viol = iter.next() ;