Class ReportQuery


  • public class ReportQuery
    extends Object
    • Constructor Detail

      • ReportQuery

        public ReportQuery​(String ruleName,
                           String query,
                           String level)
        Create a new ReportQuery object.
        Parameters:
        ruleName - String name of rule
        query - String query contents
        level - String violation level
      • ReportQuery

        public ReportQuery​(String ruleName,
                           String ruleURL,
                           String query,
                           String level)
        Create a new ReportQuery object.
        Parameters:
        ruleName - String name of rule
        ruleURL - String link to rule documentation
        query - String query contents
        level - String violation level
    • Method Detail

      • addViolations

        public void addViolations​(List<Violation> vs)
        Add multiple violations to this ReportQuery.
        Parameters:
        vs - list of Violations
      • getLevel

        public String getLevel()
        Return the violation level of this ReportQuery.
        Returns:
        String level
      • getQuery

        public String getQuery()
        Return the query contents of this ReportQuery.
        Returns:
        String SPARQL query contents
      • getRuleName

        public String getRuleName()
        Return the name of the rule for this ReportQuery.
        Returns:
        String rule name
      • getRuleURL

        public String getRuleURL()
        Return the URL for rule documentation (or null) for this ReportQuery.
        Returns:
        String rule documentation URL
      • getViolations

        public List<Violation> getViolations()
        Return the collection of violations for this ReportQuery.
        Returns:
        List of Violations