diff options
| author | Nicholas Car <nicholas.car@surroundaustralia.com> | 2021-04-24 15:25:05 +1000 |
|---|---|---|
| committer | Nicholas Car <nicholas.car@surroundaustralia.com> | 2021-04-24 15:25:05 +1000 |
| commit | 760c534fc1f00f09af6c9e907017d59aeb0b1629 (patch) | |
| tree | 5897fb6a471f369669d36504ef522ec7d06caf91 /examples | |
| parent | 908f1d17d7d15665265fdf3a564efeb936e9133b (diff) | |
| download | rdflib-dataset_example.tar.gz | |
remove other decode() for master compatdataset_example
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/datasets.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/datasets.py b/examples/datasets.py index 72cadeb4..76f8ae73 100644 --- a/examples/datasets.py +++ b/examples/datasets.py @@ -47,7 +47,7 @@ d.add(( URIRef("http://example.com/graph-2") )) -# printing the Dataset like this: print(d.serialize(format="trig").decode()) +# printing the Dataset like this: print(d.serialize(format="trig")) # produces a result like this: """ @prefix ex: <http://example.com/> . @@ -64,7 +64,7 @@ ex:graph-2 { """ print("Printing Serialised Dataset:") print("---") -print(d.serialize(format="trig").decode().strip()) +print(d.serialize(format="trig")) print("---") print() print() @@ -130,7 +130,7 @@ print() # Remove Graph graph_1 from the Dataset d.remove_graph(graph_1) -# printing the Dataset like this: print(d.serialize(format="trig").decode()) +# printing the Dataset like this: print(d.serialize(format="trig")) # now produces a result like this: """ |
