Interface LanguageProcessor

  • All Known Implementing Classes:
    RDFLanguageProcessor, SPARQLLanguageProcessor

    public interface LanguageProcessor
    Language Processor tells how to handle Http responses as well as how to analyze queries and generate stats.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.apache.jena.rdf.model.Model generateTripleStats​(java.util.List<QueryWrapper> queries, java.lang.String resourcePrefix, java.lang.String taskID)
      Method to generate Triple Statistics for provided queries
      java.lang.String getQueryPrefix()
      Returns the prefix used for the queries (e.g.
      java.lang.Long getResultSize​(org.apache.http.client.methods.CloseableHttpResponse response)
      Gets the result size of a given HTTP response
    • Method Detail

      • getQueryPrefix

        java.lang.String getQueryPrefix()
        Returns the prefix used for the queries (e.g. sparql, query or document)
        Returns:
      • generateTripleStats

        org.apache.jena.rdf.model.Model generateTripleStats​(java.util.List<QueryWrapper> queries,
                                                            java.lang.String resourcePrefix,
                                                            java.lang.String taskID)
        Method to generate Triple Statistics for provided queries
        Parameters:
        taskID -
        Returns:
        Model with the triples to add to the results
      • getResultSize

        java.lang.Long getResultSize​(org.apache.http.client.methods.CloseableHttpResponse response)
                              throws javax.xml.parsers.ParserConfigurationException,
                                     org.xml.sax.SAXException,
                                     org.json.simple.parser.ParseException,
                                     java.io.IOException
        Gets the result size of a given HTTP response
        Parameters:
        response -
        Returns:
        Throws:
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException
        org.json.simple.parser.ParseException
        java.io.IOException