diff options
author | Graeme Stuart <ggstuart@gmail.com> | 2015-04-22 23:26:45 +0100 |
---|---|---|
committer | Graeme Stuart <ggstuart@gmail.com> | 2015-04-22 23:26:45 +0100 |
commit | 354c352b6a1e18c07284b7451fad61ab104f8006 (patch) | |
tree | 67927f70bf5dbcdaf337dda4ec321836ccc2d045 | |
parent | f81e0b23d61e3cfda053bf33a7665bdea8039df4 (diff) | |
download | rdflib-354c352b6a1e18c07284b7451fad61ab104f8006.tar.gz |
fix broken example
The example updates age but should be updating FOAF.age in order to produce the required output
-rw-r--r-- | docs/intro_to_creating_rdf.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/intro_to_creating_rdf.rst b/docs/intro_to_creating_rdf.rst index 2b52ae26..1a2b8de5 100644 --- a/docs/intro_to_creating_rdf.rst +++ b/docs/intro_to_creating_rdf.rst @@ -91,7 +91,7 @@ For some properties, only one value per resource makes sense (i.e they are *func print "Bob is ", g.value( bob, FOAF.age ) # prints: Bob is 42 - g.set( ( bob, age, Literal(43) ) ) # replaces 42 set above + g.set( ( bob, FOAF.age, Literal(43) ) ) # replaces 42 set above print "Bob is now ", g.value( bob, FOAF.age ) # prints: Bob is now 43 |