Search in sources :

Example 1 with ParsedURI

use of org.eclipse.rdf4j.common.net.ParsedURI in project timbuctoo by HuygensING.

the class LookUpSubjectByUriFetcherWrapper method get.

@Override
public Object get(DataFetchingEnvironment environment) {
    final DatabaseResult source = environment.getSource();
    ParsedURI baseUri = new ParsedURI(source.getDataSet().getMetadata().getBaseUri());
    String uri = environment.getArgument(uriArgument);
    return lookUpSubjectByUriFetcher.getItem(baseUri.resolve(uri).toString(), source.getDataSet());
}
Also used : DatabaseResult(nl.knaw.huygens.timbuctoo.v5.graphql.datafetchers.dto.DatabaseResult) ParsedURI(org.eclipse.rdf4j.common.net.ParsedURI)

Aggregations

DatabaseResult (nl.knaw.huygens.timbuctoo.v5.graphql.datafetchers.dto.DatabaseResult)1 ParsedURI (org.eclipse.rdf4j.common.net.ParsedURI)1