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?
  has_subject?    && subject.resource? && subject.valid_extended? &&
  has_predicate?  && predicate.resource? && predicate.valid_extended? &&
  has_object?     && object.term? && object.valid_extended? &&
  (has_graph?      ? (graph_name.resource? && graph_name.valid_extended?) : true)
end