Class: RDF::Statement

Inherits:
Object
  • Object
show all
Defined in:
lib/json/ld/extensions.rb

Instance Method Summary collapse

Instance Method Details

#valid_extended?Boolean

Validate extended RDF

Returns:

  • (Boolean)


13
14
15
16
17
18
# File 'lib/json/ld/extensions.rb', line 13

def valid_extended?
  subject? && subject.resource? && subject.valid_extended? &&
    predicate?  && predicate.resource? && predicate.valid_extended? &&
    object?     && object.term? && object.valid_extended? &&
    (graph? ? (graph_name.resource? && graph_name.valid_extended?) : true)
end