Interface ServiceRegistry


  • public interface ServiceRegistry

    Registry for SPARQL federated service implementations.

    Since:
    3.0
    Version:
    6.0
    Author:
    Michael Grove
    • Method Detail

      • canEvaluate

        java.util.Optional<Service> canEvaluate​(IRI theURI,
                                                java.util.function.Predicate<IRI> canReadNg)
        Find a service compatible with the given URI
        Parameters:
        theURI - the URI of the service
        canReadNg - a predicate to test whether users are authorized to read the graph represented by given service IRI
        Returns:
        an Optional holding a Service corresponding to the URI, or an Optional.empty() if a compatible Service is not found
      • isInternalService

        static boolean isInternalService​(IRI iri)
        Is the service an internal service? Internal services can be referred to using the GRAPH keyword and should not overlap with graph names.