diff options
author | Iwan Aucamp <aucampia@gmail.com> | 2023-03-13 01:18:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-13 01:18:21 +0100 |
commit | 35a35375d213afe83a825d7dfcc59008f8e2352c (patch) | |
tree | 1fa971ef3a9e897e19b5df5fc304fe9c02697e41 /examples/resource_example.py | |
parent | 7a7cc1f929ff6fbc8c3238368e518a00af1025b6 (diff) | |
download | rdflib-35a35375d213afe83a825d7dfcc59008f8e2352c.tar.gz |
fix: validation issues with examples (#2269)
I want to add examples for securing RDFLib network access using
`sys.addaudithook` and `urllib.request.install_opener`, but I want to
also validate the examples in our CI pipeline, so we can demonstrate
they work to our users.
This change adds validation for all examples, and the addition of the
security examples in a seperate PR will then also get validated.
Diffstat (limited to 'examples/resource_example.py')
-rw-r--r-- | examples/resource_example.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/resource_example.py b/examples/resource_example.py index 9085c32c..da93042f 100644 --- a/examples/resource_example.py +++ b/examples/resource_example.py @@ -7,7 +7,7 @@ where this resource is the subject. This example shows g.resource() in action. """ -from rdflib import Graph, RDF, RDFS, Literal +from rdflib import RDF, RDFS, Graph, Literal from rdflib.namespace import FOAF if __name__ == "__main__": |