Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

updated readme

  • Loading branch information...
commit 20731fdf7b802c9899fa07dc0e392d99d276c62c 1 parent 1122516
Philipp Brüll authored

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. +4 3 README.rdoc
7 README.rdoc
Source Rendered
@@ -33,8 +33,8 @@ Once a repository is created, statements can be added.
33 33
34 34 repository.statements.create "<a_subject>", "<a_predicate>", "<an_object>", "<context>"
35 35
36   -The last argument is optinal and defines a context for the given triple. This context can be used to define named graphs
37   -inside the repository.
  36 +The last argument is optional and defines a context for the given triple. This context can be used to define named
  37 +graphs inside the repository.
38 38
39 39 To delete statements, matching options can be passed to the delete method.
40 40
@@ -46,7 +46,7 @@ This will delete all statements with the predicate <tt><a_predicate></tt>.
46 46
47 47 The <tt>find</tt> method provides an easy way to find specified statements.
48 48
49   - repository.statements.find :subject => "<a_subject>", :predicate => [ "<a_predicate>", "<another_predicate>" ]
  49 + repository.statements.find :subject => "<a_subject>"
50 50
51 51 The result will be an array that holds arrays of all matching statements.
52 52
@@ -94,6 +94,7 @@ an error occurs during the transaction, all operations will be rolled back.
94 94 statements.create "<a_subject>", "<a_predicate>", "<another_object>"
95 95 # ... if an error is raised here, no operation will be committed
96 96 end
  97 + # ... if no error has occured, all operations will be committed
97 98
98 99 == SparQL and Prolog queries
99 100

0 comments on commit 20731fd

Please sign in to comment.
Something went wrong with that request. Please try again.