Permalink
Browse files

Use Node for context and graph reference. This means that a reference…

… to an empty graph will look like just a node, not a graph.
  • Loading branch information...
1 parent 5820023 commit 921995ccedb20780e804fda190ca0f7e843d0b1b @gkellogg gkellogg committed Dec 14, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.rdoc
View
4 README.rdoc
@@ -40,13 +40,13 @@ Write a graph to a file:
end
== Formulae
-N3 Formulae are introduced with the { statmenent-list } syntax. A given formula is assigned an RDF::Node instance, which is also used as the context for RDF::Statement instances provided to RDF::N3::Reader#each_statement. For example, the following N3 generates the associated statements:
+N3 Formulae are introduced with the { statmenent-list } syntax. A given formula is assigned an RDF::Graph instance, which is also used as the context for RDF::Statement instances provided to RDF::N3::Reader#each_statement. For example, the following N3 generates the associated statements:
{ [ x:firstname "Ora" ] dc:wrote [ dc:title "Moby Dick" ] } a n3:falsehood .
results in
- f = RDF::Node.new
+ f = RDF::Graph.new
s = RDF::Node.new
o = RDF::Node.new
RDF::Statement(f, rdf:type n3:falsehood)

0 comments on commit 921995c

Please sign in to comment.