Class: RDF::Oxigraph::SHACL::Report
- Inherits:
-
Object
- Object
- RDF::Oxigraph::SHACL::Report
- Defined in:
- lib/rdf/oxigraph/shacl.rb
Overview
A SHACL validation report. #results is an array of hashes with string keys:
focus, path, value, source, severity, message.
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
- #conforms? ⇒ Boolean
-
#initialize(raw) ⇒ Report
constructor
A new instance of Report.
- #results ⇒ Object
-
#to_s ⇒ Object
Human-readable validation report.
- #violations ⇒ Object
Constructor Details
#initialize(raw) ⇒ Report
Returns a new instance of Report.
23 24 25 |
# File 'lib/rdf/oxigraph/shacl.rb', line 23 def initialize(raw) @raw = raw end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
21 22 23 |
# File 'lib/rdf/oxigraph/shacl.rb', line 21 def raw @raw end |
Instance Method Details
#conforms? ⇒ Boolean
27 28 29 |
# File 'lib/rdf/oxigraph/shacl.rb', line 27 def conforms? @raw["conforms"] end |
#results ⇒ Object
35 36 37 |
# File 'lib/rdf/oxigraph/shacl.rb', line 35 def results @raw["results"] end |
#to_s ⇒ Object
Human-readable validation report.
40 41 42 |
# File 'lib/rdf/oxigraph/shacl.rb', line 40 def to_s @raw["text"] end |
#violations ⇒ Object
31 32 33 |
# File 'lib/rdf/oxigraph/shacl.rb', line 31 def violations @raw["violations"] end |