Package org.obolibrary.robot.checks
Class ReportQuery
- java.lang.Object
-
- org.obolibrary.robot.checks.ReportQuery
-
public class ReportQuery extends Object
-
-
Constructor Summary
Constructors Constructor Description ReportQuery(String ruleName, String query, String level)
Create a new ReportQuery object.ReportQuery(String ruleName, String ruleURL, String query, String level)
Create a new ReportQuery object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addViolations(List<Violation> vs)
Add multiple violations to this ReportQuery.String
getLevel()
Return the violation level of this ReportQuery.String
getQuery()
Return the query contents of this ReportQuery.String
getRuleName()
Return the name of the rule for this ReportQuery.String
getRuleURL()
Return the URL for rule documentation (or null) for this ReportQuery.List<Violation>
getViolations()
Return the collection of violations for this ReportQuery.
-
-
-
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
-
-