Skip to content

Commit d821fb3

Browse files
authored
Merge pull request ruby-rdf#83 from davidrupp/patch-2
Fix example code
2 parents 3885a8a + 9d0f450 commit d821fb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ This is a [Ruby][] implementation of a [SPARQL][] client for [RDF.rb][].
7373
data = RDF::Graph.new do |graph|
7474
graph << [RDF::URI('http://example.org/jhacker'), RDF::Vocab::FOAF.name, "J. Random Hacker"]
7575
end
76-
insert_data(data)
76+
sparql.insert_data(data)
7777

7878
### Deleting data from a graph
7979

8080
# DELETE DATA { <http://example.org/jhacker> <http://xmlns.com/foaf/0.1/name> "J. Random Hacker" .}
8181
data = RDF::Graph.new do |graph|
8282
graph << [RDF::URI('http://example.org/jhacker'), RDF::Vocab::FOAF.name, "J. Random Hacker"]
8383
end
84-
delete_data(data)
84+
sparql.delete_data(data)
8585

8686
## Documentation
8787

0 commit comments

Comments
 (0)