Interface ServiceRegistry


public interface ServiceRegistry

Registry for SPARQL federated service implementations.

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

    Modifier and Type
    Method
    Description
    canEvaluate(IRI theURI, Predicate<IRI> canReadNg)
    Find a service compatible with the given URI
    static boolean
    Is the service an internal service? Internal services can be referred to using the GRAPH keyword and should not overlap with graph names.
  • Method Details

    • canEvaluate

      Optional<Service> canEvaluate(IRI theURI, 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.