org.aksw.jenax.graphql.rdf.api.RdfGraphQlExec Maven / Gradle / Ivy
The newest version!
package org.aksw.jenax.graphql.rdf.api;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
/** A GraphQl execution */
public interface RdfGraphQlExec {
Set getDataProviderNames();
RdfGraphQlDataProvider getDataProvider(String name);
/**
* Return the list of data providers.
* This corresponds to the top-level keys available in the data field { data: { } }
*/
default List getDataProviders() {
List result = getDataProviderNames().stream().map(this::getDataProvider).collect(Collectors.toList());
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy