/** * Clears all ontology document IRIs from the list of ignored ontology document IRIs. * * @return An {@code OWLOntologyLoaderConfiguration} with the list of ignored ontology document * IRIs set to be empty. */ public OWLOntologyLoaderConfiguration clearIgnoredImports() { OWLOntologyLoaderConfiguration configuration = copyConfiguration(); configuration.ignoredImports.clear(); return configuration; }
/** * Clears all ontology document IRIs from the list of ignored ontology document IRIs. * * @return An {@code OWLOntologyLoaderConfiguration} with the list of ignored ontology document * IRIs set to be empty. */ public OWLOntologyLoaderConfiguration clearIgnoredImports() { OWLOntologyLoaderConfiguration configuration = copyConfiguration(); configuration.ignoredImports.clear(); return configuration; }
/** * Clears all ontology document IRIs from the list of ignored ontology document IRIs. * * @return An {@code OWLOntologyLoaderConfiguration} with the list of ignored ontology document * IRIs set to be empty. */ public OWLOntologyLoaderConfiguration clearIgnoredImports() { OWLOntologyLoaderConfiguration configuration = copyConfiguration(); configuration.ignoredImports.clear(); return configuration; }
/** * Adds an ontology document IRI to the list of ontology imports that will be ignored during * ontology loading. * * @param ontologyDocumentIRI The ontology document IRI that will be ignored if it is * encountered as an imported ontology during loading. * @return An {@code OWLOntologyLoaderConfiguration} with the ignored ontology document IRI set. */ public OWLOntologyLoaderConfiguration addIgnoredImport(IRI ontologyDocumentIRI) { OWLOntologyLoaderConfiguration configuration = copyConfiguration(); configuration.ignoredImports.add(ontologyDocumentIRI); return configuration; }
/** * @param authorizationValue Authorization header value. * @return An {@code OntologyConfigurator} with the new option set. */ public OWLOntologyLoaderConfiguration setAuthorizationValue(String authorizationValue) { if (getAuthorizationValue().equals(authorizationValue)) { return this; } OWLOntologyLoaderConfiguration configuration = copyConfiguration(); configuration.overrides.put(AUTHORIZATION_VALUE, authorizationValue); return configuration; }
/** * @param authorizationValue Authorization header value. * @return An {@code OntologyConfigurator} with the new option set. */ public OWLOntologyLoaderConfiguration setAuthorizationValue(String authorizationValue) { if (getAuthorizationValue().equals(authorizationValue)) { return this; } OWLOntologyLoaderConfiguration configuration = copyConfiguration(); configuration.overrides.put(AUTHORIZATION_VALUE, authorizationValue); return configuration; }
/** * @param authorizationValue Authorization header value. * @return An {@code OntologyConfigurator} with the new option set. */ public OWLOntologyLoaderConfiguration setAuthorizationValue(String authorizationValue) { if (getAuthorizationValue().equals(authorizationValue)) { return this; } OWLOntologyLoaderConfiguration configuration = copyConfiguration(); configuration.overrides.put(AUTHORIZATION_VALUE, authorizationValue); return configuration; }
/** * @param limit maximum number of XML entities to expand. * @return An {@code OntologyConfigurator} with the new option set. */ public OWLOntologyLoaderConfiguration setEntityExpansionLimit(String limit) { if (getEntityExpansionLimit().equals(limit)) { return this; } OWLOntologyLoaderConfiguration configuration = copyConfiguration(); configuration.overrides.put(ConfigurationOptions.ENTITY_EXPANSION_LIMIT, limit); return configuration; }
/** * @param b true if HTTP compression should be accepted * @return a copy of this configuration with accepting HTTP compression set to the new value */ public OWLOntologyLoaderConfiguration setAcceptingHTTPCompression(boolean b) { // do not make copies if setting the same value if (isAcceptingHTTPCompression() == b) { return this; } OWLOntologyLoaderConfiguration copy = copyConfiguration(); copy.overrides.put(ACCEPT_HTTP_COMPRESSION, Boolean.valueOf(b)); return copy; }
/** * @param value new value for trim to size * @return An {@code OntologyConfigurator} with the new option set. */ public OWLOntologyLoaderConfiguration setTrimToSize(boolean value) { if (shouldTrimToSize() == value) { return this; } OWLOntologyLoaderConfiguration configuration = copyConfiguration(); configuration.overrides.put(TRIM_TO_SIZE, Boolean.valueOf(value)); return configuration; } }
/** * @param b if illegal punnings should be repaired * @return A {@code OWLOntologyLoaderConfiguration} with the repair flag set to the new value. */ public OWLOntologyLoaderConfiguration setRepairIllegalPunnings(boolean b) { if (shouldRepairIllegalPunnings() == b) { return this; } OWLOntologyLoaderConfiguration configuration = copyConfiguration(); configuration.overrides.put(REPAIR_ILLEGAL_PUNNINGS, Boolean.valueOf(b)); return configuration; }
/** * @param b true if HTTP compression should be accepted * @return a copy of this configuration with accepting HTTP compression set to the new value */ public OWLOntologyLoaderConfiguration setAcceptingHTTPCompression(boolean b) { // do not make copies if setting the same value if (isAcceptingHTTPCompression() == b) { return this; } OWLOntologyLoaderConfiguration copy = copyConfiguration(); copy.overrides.put(ACCEPT_HTTP_COMPRESSION, Boolean.valueOf(b)); return copy; }
/** * @param value new value for trim to size * @return An {@code OntologyConfigurator} with the new option set. */ public OWLOntologyLoaderConfiguration setTrimToSize(boolean value) { if (shouldTrimToSize() == value) { return this; } OWLOntologyLoaderConfiguration configuration = copyConfiguration(); configuration.overrides.put(TRIM_TO_SIZE, Boolean.valueOf(value)); return configuration; } }
/** * @param b if illegal punnings should be repaired * @return A {@code OWLOntologyLoaderConfiguration} with the repair flag set to the new value. */ public OWLOntologyLoaderConfiguration setRepairIllegalPunnings(boolean b) { if (shouldRepairIllegalPunnings() == b) { return this; } OWLOntologyLoaderConfiguration configuration = copyConfiguration(); configuration.overrides.put(REPAIR_ILLEGAL_PUNNINGS, Boolean.valueOf(b)); return configuration; }
/** * @param retries new value of retries to attempt * @return copy of this configuration with modified retries attempts. */ public OWLOntologyLoaderConfiguration setRetriesToAttempt(int retries) { // do not make copies if setting the same value if (getRetriesToAttempt() == retries) { return this; } OWLOntologyLoaderConfiguration copy = copyConfiguration(); copy.overrides.put(RETRIES_TO_ATTEMPT, Integer.valueOf(retries)); return copy; }
/** * @param ban list of parser factory class names that should be skipped when attempting ontology * parsing. The list is space separated. * @return An {@code OntologyConfigurator} with the new option set. */ public OWLOntologyLoaderConfiguration setBannedParsers(String ban) { if (getBannedParsers().equals(ban)) { return this; } OWLOntologyLoaderConfiguration configuration = copyConfiguration(); configuration.overrides.put(BANNED_PARSERS, ban); return configuration; }
/** * @param strict new value for strict * @return copy of the configuration with new strict value */ public OWLOntologyLoaderConfiguration setStrict(boolean strict) { // do not make copies if setting the same value if (isStrict() == strict) { return this; } OWLOntologyLoaderConfiguration copy = copyConfiguration(); copy.overrides.put(PARSE_WITH_STRICT_CONFIGURATION, Boolean.valueOf(strict)); return copy; }
/** * @param b true if HTTP compression should be accepted * @return a copy of this configuration with accepting HTTP compression set to the new value */ public OWLOntologyLoaderConfiguration setAcceptingHTTPCompression(boolean b) { // do not make copies if setting the same value if (isAcceptingHTTPCompression() == b) { return this; } OWLOntologyLoaderConfiguration copy = copyConfiguration(); copy.overrides.put(ACCEPT_HTTP_COMPRESSION, Boolean.valueOf(b)); return copy; }
/** * @param strict new value for strict * @return copy of the configuration with new strict value */ public OWLOntologyLoaderConfiguration setStrict(boolean strict) { // do not make copies if setting the same value if (isStrict() == strict) { return this; } OWLOntologyLoaderConfiguration copy = copyConfiguration(); copy.overrides.put(PARSE_WITH_STRICT_CONFIGURATION, Boolean.valueOf(strict)); return copy; }
/** * @param limit maximum number of XML entities to expand. * @return An {@code OntologyConfigurator} with the new option set. */ public OWLOntologyLoaderConfiguration setEntityExpansionLimit(String limit) { if (getEntityExpansionLimit().equals(limit)) { return this; } OWLOntologyLoaderConfiguration configuration = copyConfiguration(); configuration.overrides.put(ConfigurationOptions.ENTITY_EXPANSION_LIMIT, limit); return configuration; }