public SPARQLOperation(HttpClient client, String url, String base, String operation) { this.url = url; this.operation = operation; this.client = client; boolean abs = base != null && base.length() > 0 && ParsedIRI.create(base).isAbsolute(); if (abs && !operation.toUpperCase().contains("BASE")) { this.operation = "BASE <" + base + "> " + operation; } }
public SPARQLOperation(HttpClient client, String url, String base, String operation) { this.url = url; this.operation = operation; this.client = client; boolean abs = base != null && base.length() > 0 && ParsedIRI.create(base).isAbsolute(); if (abs && !operation.toUpperCase().contains("BASE")) { this.operation = "BASE <" + base + "> " + operation; } }
public SPARQLOperation(HttpClient client, String url, String base, String operation) { this.url = url; this.operation = operation; this.client = client; boolean abs = base != null && base.length() > 0 && ParsedIRI.create(base).isAbsolute(); if (abs && !operation.toUpperCase().contains("BASE")) { this.operation = "BASE <" + base + "> " + operation; } }
@Override public IRI createIRI(String iri) { try { if (!new ParsedIRI(iri).isAbsolute()) { throw new IllegalArgumentException("IRI must be absolute"); } return delegate.createIRI(iri); } catch (URISyntaxException e) { throw new IllegalArgumentException(e); } }
@Override public IRI createIRI(String iri) { try { if (!new ParsedIRI(iri).isAbsolute()) { throw new IllegalArgumentException("IRI must be absolute"); } return delegate.createIRI(iri); } catch (URISyntaxException e) { throw new IllegalArgumentException(e); } }
@Override public IRI createIRI(String namespace, String localName) { if (!URIUtil.isCorrectURISplit(namespace, localName)) { return createIRI(namespace + localName); } try { if (!new ParsedIRI(namespace + localName).isAbsolute()) { throw new IllegalArgumentException("Namespace must be absolute"); } return delegate.createIRI(namespace, localName); } catch (URISyntaxException e) { throw new IllegalArgumentException(e); } }
@Override public IRI createIRI(String namespace, String localName) { if (!URIUtil.isCorrectURISplit(namespace, localName)) { return createIRI(namespace + localName); } try { if (!new ParsedIRI(namespace + localName).isAbsolute()) { throw new IllegalArgumentException("Namespace must be absolute"); } return delegate.createIRI(namespace, localName); } catch (URISyntaxException e) { throw new IllegalArgumentException(e); } }
if (!uri.isAbsolute()) { if (baseURI == null) { reportFatalError("Unable to resolve URIs, no base URI has been set"); if (!uri.isAbsolute() && uriSpec.length() > 0 && !uriSpec.startsWith("#") && baseURI.isOpaque()) { reportError("Relative URI '" + uriSpec + "' cannot be resolved using the opaque base URI '" + baseURI + "'", BasicParserSettings.VERIFY_RELATIVE_URIS);
if (!uri.isAbsolute()) { if (baseURI == null) { reportFatalError("Unable to resolve URIs, no base URI has been set"); if (!uri.isAbsolute() && uriSpec.length() > 0 && !uriSpec.startsWith("#") && baseURI.isOpaque()) { reportError("Relative URI '" + uriSpec + "' cannot be resolved using the opaque base URI '" + baseURI + "'", BasicParserSettings.VERIFY_RELATIVE_URIS);
try { ParsedIRI iri = ParsedIRI.create(uriString); if (!iri.isAbsolute() && baseURI != null) { else if (!iri.isAbsolute()) { throw new ValueExprEvaluationException("not an absolute IRI reference: " + uriString);
if (!uri.isAbsolute()) { if (baseURI == null) { reportFatalError("Unable to resolve URIs, no base URI has been set"); if (!uri.isAbsolute() && uriSpec.length() > 0 && !uriSpec.startsWith("#") && baseURI.isOpaque())
try { ParsedIRI iri = ParsedIRI.create(uriString); if (!iri.isAbsolute() && baseURI != null) { else if (!iri.isAbsolute()) { throw new ValueExprEvaluationException("not an absolute IRI reference: " + uriString);
try { ParsedIRI iri = ParsedIRI.create(uriString); if (!iri.isAbsolute() && baseURI != null) { else if (!iri.isAbsolute()) { throw new ValueExprEvaluationException("not an absolute IRI reference: " + uriString);
if (!parsedBaseURI.isAbsolute()) { throw new MalformedQueryException("BASE IRI is not an absolute IRI: " + externalBaseURI); if (!parsedBaseURI.isAbsolute()) { throw new IllegalArgumentException( "Supplied base URI is not an absolute IRI: " + externalBaseURI);
if (!parsedBaseURI.isAbsolute()) { throw new MalformedQueryException("BASE IRI is not an absolute IRI: " + externalBaseURI); if (!parsedBaseURI.isAbsolute()) { throw new IllegalArgumentException( "Supplied base URI is not an absolute IRI: " + externalBaseURI);
if (!parsedBaseURI.isAbsolute()) { throw new MalformedQueryException("BASE IRI is not an absolute IRI: " + externalBaseURI); if (!parsedBaseURI.isAbsolute()) { throw new IllegalArgumentException( "Supplied base URI is not an absolute IRI: " + externalBaseURI);
if (relative.isAbsolute()) { return relative;
if (relative.isAbsolute()) { return relative;
if (relative.isAbsolute()) { return relative;