Class QueryEvaluator

  • All Implemented Interfaces:
    Command, Help
    Direct Known Subclasses:
    Sparql

    public abstract class QueryEvaluator
    extends ConsoleCommand
    Abstract query evaluator command
    Author:
    Dale Visser, Bart Hanssens
    • Method Detail

      • hasQueryPrefixes

        protected abstract boolean hasQueryPrefixes​(String query)
        Check if query string already contains query prefixes
        Parameters:
        query - query string
        Returns:
        true if namespaces are already used
      • addQueryPrefixes

        protected abstract void addQueryPrefixes​(StringBuffer result,
                                                 Collection<Namespace> namespaces)
        Add namespace prefixes to query
        Parameters:
        result -
        namespaces - collection of known namespaces
      • executeQuery

        public void executeQuery​(String command,
                                 String operation)
        Execute a SPARQL query
        Parameters:
        command - to execute
        operation - "sparql", "base" or SPARQL query form