Package org.obolibrary.robot.checks
Class Violation
- java.lang.Object
-
- org.obolibrary.robot.checks.Violation
-
public class Violation extends Object
-
-
Field Summary
Fields Modifier and Type Field Description org.semanticweb.owlapi.model.OWLEntity
entity
Map<org.semanticweb.owlapi.model.OWLEntity,List<org.semanticweb.owlapi.model.OWLEntity>>
entityStatements
Map<org.semanticweb.owlapi.model.OWLEntity,List<String>>
literalStatements
Map<String,List<String>>
statements
String
subject
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addStatement(String property, String value)
Deprecated.String properties are no longer recommended; create an OWLEntity for the property insteadvoid
addStatement(org.semanticweb.owlapi.model.OWLEntity property, String value)
Add a literal statement to the Violation about the subject.void
addStatement(org.semanticweb.owlapi.model.OWLEntity property, org.semanticweb.owlapi.model.OWLEntity value)
Add a statement with an OWLEntity value to the Violation about the subject.void
addStatement(org.semanticweb.owlapi.model.OWLEntity property, org.semanticweb.owlapi.model.OWLObject object)
Deprecated.OWLObjects are no longer supported; use OWLEntity or String literal instead
-
-
-
Field Detail
-
entity
public org.semanticweb.owlapi.model.OWLEntity entity
-
subject
public String subject
-
entityStatements
public Map<org.semanticweb.owlapi.model.OWLEntity,List<org.semanticweb.owlapi.model.OWLEntity>> entityStatements
-
literalStatements
public Map<org.semanticweb.owlapi.model.OWLEntity,List<String>> literalStatements
-
-
Constructor Detail
-
Violation
public Violation(org.semanticweb.owlapi.model.OWLEntity subject)
Create a new Violation object about an OWL entity.- Parameters:
subject
- OWLEntity that is the subject of the violation
-
Violation
public Violation(String subject)
Create a new Violation object about a String. This is used for blank nodes.- Parameters:
subject
- String subject
-
-
Method Detail
-
addStatement
public void addStatement(org.semanticweb.owlapi.model.OWLEntity property, org.semanticweb.owlapi.model.OWLEntity value)
Add a statement with an OWLEntity value to the Violation about the subject.- Parameters:
property
- OWLEntity propertyvalue
- OWLEntity value
-
addStatement
public void addStatement(org.semanticweb.owlapi.model.OWLEntity property, String value)
Add a literal statement to the Violation about the subject.- Parameters:
property
- OWLEntity propertyvalue
- String literal value
-
addStatement
@Deprecated public void addStatement(String property, String value)
Deprecated.String properties are no longer recommended; create an OWLEntity for the property instead- Parameters:
property
- String propertyvalue
- String value
-
addStatement
@Deprecated public void addStatement(org.semanticweb.owlapi.model.OWLEntity property, org.semanticweb.owlapi.model.OWLObject object)
Deprecated.OWLObjects are no longer supported; use OWLEntity or String literal instead- Parameters:
property
- String propertyobject
- OWLObject value
-
-