/** * @deprecated since 4.0. Use {@link #objectIRI(Model)} instead. */ @Deprecated public static URI anyObjectURI(Model m) { return objectIRI(m).orElse(null); }
@Override public void parse(Model m, Resource implNode) throws RepositoryConfigException { super.parse(m, implNode); try { Models.objectIRI(m.filter(implNode, QUERY_ENDPOINT, null)).ifPresent( iri -> setQueryEndpointUrl(iri.stringValue())); Models.objectIRI(m.filter(implNode, UPDATE_ENDPOINT, null)).ifPresent( iri -> setUpdateEndpointUrl(iri.stringValue())); } catch (ModelException e) { throw new RepositoryConfigException(e.getMessage(), e); } } }
lit -> setQueryLanguage(QueryLanguage.valueOf(lit.getLabel()))); Models.objectIRI(model.filter(resource, QUERY_LANGUAGE, null)).ifPresent( iri -> setBaseURI(iri.stringValue())); setArchiveContexts(objects.toArray(new IRI[objects.size()])); Models.objectIRI(model.filter(resource, INSERT_CONTEXT, null)).ifPresent( iri -> setInsertContext(iri));