Class: SPARQL::Client::Update::Create
- Defined in:
- vendor/bundler/ruby/3.3.0/bundler/gems/sparql-client-464d3f76cfd5/lib/sparql/client/update.rb
Overview
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Attributes inherited from Operation
Instance Method Summary collapse
-
#initialize(uri, **options) ⇒ Create
constructor
A new instance of Create.
- #to_s ⇒ Object
Methods inherited from Operation
Constructor Details
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
419 420 421 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/sparql-client-464d3f76cfd5/lib/sparql/client/update.rb', line 419 def uri @uri end |
Instance Method Details
#to_s ⇒ Object
427 428 429 430 431 432 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/sparql-client-464d3f76cfd5/lib/sparql/client/update.rb', line 427 def to_s query_text = 'CREATE ' query_text += 'SILENT ' if self.[:silent] query_text += 'GRAPH ' + SPARQL::Client.serialize_uri(@uri) query_text end |