Class RDFLanguageProcessor

  • All Implemented Interfaces:
    LanguageProcessor

    @Shorthand("lang.RDF")
    public class RDFLanguageProcessor
    extends java.lang.Object
    implements LanguageProcessor
    Language for everything which returns RDF in any rdf format. Counts triples returned as ResultSize
    • Method Summary

      All Methods Instance Methods Concrete 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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RDFLanguageProcessor

        public RDFLanguageProcessor()
    • Method Detail

      • getQueryPrefix

        public java.lang.String getQueryPrefix()
        Description copied from interface: LanguageProcessor
        Returns the prefix used for the queries (e.g. sparql, query or document)
        Specified by:
        getQueryPrefix in interface LanguageProcessor
        Returns:
      • generateTripleStats

        public org.apache.jena.rdf.model.Model generateTripleStats​(java.util.List<QueryWrapper> queries,
                                                                   java.lang.String resourcePrefix,
                                                                   java.lang.String taskID)
        Description copied from interface: LanguageProcessor
        Method to generate Triple Statistics for provided queries
        Specified by:
        generateTripleStats in interface LanguageProcessor
        Returns:
        Model with the triples to add to the results
      • getResultSize

        public 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
        Description copied from interface: LanguageProcessor
        Gets the result size of a given HTTP response
        Specified by:
        getResultSize in interface LanguageProcessor
        Returns:
        Throws:
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException
        org.json.simple.parser.ParseException
        java.io.IOException