/** Check an IRI string (does not resolve it) */ public static boolean checkIRI(String iriStr) { IRI iri = parseIRI(iriStr); return iri.hasViolation(false); }
/** Check an IRI string (does not resolve it) */ public static boolean checkIRI(String iriStr) { IRI iri = parseIRI(iriStr) ; return iri.hasViolation(false) ; }
private static String iri(String localname) { String uri = NS+localname; IRI iri = IRIResolver.parseIRI(uri); if ( iri.hasViolation(true) ) throw new FusekiException("Bad IRI: "+iri); if ( ! iri.isAbsolute() ) throw new FusekiException("Bad IRI: "+iri); return uri; } }
private static String iri(String localname) { String uri = NS+localname; IRI iri = IRIResolver.parseIRI(uri); if ( iri.hasViolation(true) ) throw new FusekiException("Bad IRI: "+iri); if ( ! iri.isAbsolute() ) throw new FusekiException("Bad IRI: "+iri); return uri; } }
if ( graphName != null && !graphName.equals("") && !graphName.equals(HttpNames.valueDefault) ) { IRI iri = IRIResolver.parseIRI(value) ; if ( iri.hasViolation(false) ) ServletOps.errorBadRequest("Bad IRI: " + graphName) ;
if ( graphName != null && !graphName.equals("") && !graphName.equals(HttpNames.valueDefault) ) { IRI iri = IRIResolver.parseIRI(value) ; if ( iri.hasViolation(false) ) ServletOps.errorBadRequest("Bad IRI: " + graphName) ;