@@ -500,7 +500,7 @@ def vocab=(value, **options)
500500 #
501501 # @param [Boolean] value
502502 def propagate = ( value , **options )
503- raise JsonLdError ::InvalidContextMember , "@propagate may only be set in 1.1 mode" if processingMode ( "json-ld-1.0" )
503+ raise JsonLdError ::InvalidContextEntry , "@propagate may only be set in 1.1 mode" if processingMode ( "json-ld-1.0" )
504504 raise JsonLdError ::InvalidPropagateValue , "@propagate must be boolean valued: #{ value . inspect } " unless value . is_a? ( TrueClass ) || value . is_a? ( FalseClass )
505505 value
506506 end
@@ -634,7 +634,7 @@ def parse(local_context, remote_contexts: [], protected: false, override_protect
634634 next unless context . has_key? ( key )
635635 if key == '@import'
636636 # Retrieve remote context and merge the remaining context object into the result.
637- raise JsonLdError ::InvalidContextMember , "@import may only be used in 1.1 mode}" if result . processingMode ( "json-ld-1.0" )
637+ raise JsonLdError ::InvalidContextEntry , "@import may only be used in 1.1 mode}" if result . processingMode ( "json-ld-1.0" )
638638 raise JsonLdError ::InvalidImportValue , "@import must be a string: #{ context [ '@import' ] . inspect } " unless context [ '@import' ] . is_a? ( String )
639639 source = RDF ::URI ( result . context_base || result . base ) . join ( context [ '@import' ] )
640640 begin
@@ -648,7 +648,7 @@ def parse(local_context, remote_contexts: [], protected: false, override_protect
648648 raise JsonLdError ::InvalidRemoteContext , "#{ source } " unless remote_doc . document . is_a? ( Hash ) && remote_doc . document . has_key? ( '@context' )
649649 import_context = remote_doc . document [ '@context' ]
650650 raise JsonLdError ::InvalidRemoteContext , "#{ import_context . to_json } must be an object" unless import_context . is_a? ( Hash )
651- raise JsonLdError ::InvalidContextMember , "#{ import_context . to_json } must not include @import entry" if import_context . has_key? ( '@import' )
651+ raise JsonLdError ::InvalidContextEntry , "#{ import_context . to_json } must not include @import entry" if import_context . has_key? ( '@import' )
652652 context . delete ( key )
653653 context = import_context . merge ( context )
654654 end
0 commit comments