summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* docs: document avaiable security measures (#2270)Iwan Aucamp2023-03-162-0/+202
| | | | | | | | | docs: document available security measures Several security measures can be used to mitigate risk when processing potentially malicious input. This change adds documentation about available security measures and examples and tests that illustrate their usage.
* fix: validation issues with examples (#2269)Iwan Aucamp2023-03-1315-57/+114
| | | | | | | | | 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.
* docs: fix sphinx nitpicky issues (#2036)Iwan Aucamp2022-07-182-3/+3
| | | | | | | | | | | | | Enable nitpicky mode for Sphinx and fix all warnings and errors that occur when running with nitpicky enabled. Other changes: - Add a tox environment for building docs (-docs). This is so we can test building docs on various versions of python as there seems to be some differences in warnings between different versions. This tox environment is enabled for linux CI builds. - Change readthedocs to use python 3.9 as earlier versions do not handle `@typing.overload` with type aliases. - Fixes https://github.com/RDFLib/rdflib/issues/1878
* Address lingering instances of deprecated `tempfile.mktemp` (#1942)Graham Higgins2022-05-151-2/+2
| | | Updated two instances of lingering deprecated `tempfile.mktemp` usage to use current safe tempfile idiom.
* Delete example, unsatisfiable imdbpy dependency.Graham Higgins2022-04-241-152/+0
|
* Add isort (#1689)eggplants2022-02-211-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | * add: isort configure file * fix: isort $ isort . * add: isort to dev deps * add: isort to CI * fix: move .isort.cfg into setup.cfg * fix: re-formatted * fix: isort target path * Use pre-commit to check isort pre-commit CI can auto fix this, and this way we can idenpendently evaluate the formatting of the code from the validity of the code. Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
* re-do, including changes from aucampia's PRGraham Higgins2021-12-153-3/+3
|
* blacked everything6.0.0Nicholas Car2021-07-206-28/+39
|
* Updated film.pyDmitriy2021-07-091-2/+2
| | | Removes the need to add quotation marks in the user input which otherwise causes the program to loop at line 135 or crash at line 141.
* Merge branch 'master' into docco_cleanNicholas Car2021-07-024-63/+139
|\
| * Merge branch 'master' into BerkeleyDBNicholas Car2021-07-021-0/+146
| |\
| * | second BerkeleyDB exampleNicholas Car2021-07-021-6/+65
| | |
| * | Merge branch 'master' of https://github.com/RDFLib/rdflib into berkeleydbNicholas Car2021-06-284-4/+63
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # docs/intro_to_sparql.rst # examples/conjunctive_graphs.py # examples/simple_example.py # examples/sleepycat_example.py # tox.ini
| * | | added tests for BerkeleyDB storeNicholas Car2021-06-271-3/+18
| | | |
| * | | Sleepycat -> BerkeleyDBname change; incomplete code updateNicholas Car2021-05-082-59/+60
| | | |
* | | | merge masterNicholas Car2021-07-024-3/+206
|\ \ \ \ | | |_|/ | |/| |
| * | | Merge pull request #1289 from RDFLib/dataset_exampleNicholas Car2021-06-291-0/+146
| |\ \ \ | | |_|/ | |/| | dataset examples file
| | * | remove other decode() for master compatdataset_exampleNicholas Car2021-04-241-3/+3
| | | |
| | * | remove decode() for master compatNicholas Car2021-04-241-1/+1
| | | |
| | * | dataset examples fileNicholas Car2021-04-101-0/+146
| | | |
| * | | Add mypy to CI pipelines and fix errors it raisesIwan Aucamp2021-05-306-14/+12
| |/ /
* | | minor docco updatesNicholas Car2021-06-183-3/+4
| | |
* | | ensure all examples workNicholas Car2021-06-186-32/+35
| |/ |/|
* | removed simple_example as it didn't do anything interestingNicholas Car2021-04-251-59/+0
| |
* | tidied up resource exampleNicholas Car2021-04-252-45/+42
| |
* | removing incomplete and unworking graph_digest_benchmark exampleNicholas Car2021-04-251-167/+0
| |
* | removed RDFa since format no longer supportedNicholas Car2021-04-251-24/+0
| |
* | trivial syntax fixNicholas Car2021-04-251-1/+1
| |
* | load() --> parse()Nicholas Car2021-04-251-3/+7
| |
* | load() --> parse()Nicholas Car2021-04-251-1/+1
| |
* | trivial formattingNicholas Car2021-04-251-3/+3
| |
* | trivial formattingNicholas Car2021-04-251-3/+2
| |
* | improved comments & printoutsNicholas Car2021-04-251-18/+26
| |
* | improved print formattingNicholas Car2021-04-251-22/+28
| |
* | Python 3 syntax, rdflib 5+ namespacingNicholas Car2021-04-241-5/+14
| |
* | removed non-resolving links, added new multi-graph e.g., fixed e.g. file ↵Nicholas Car2021-04-241-2/+0
|/ | | | docco error, fixed parse() for Dataset/ConGr
* replace requests with urllib for SPARQLStore/SPARQLUpdateStore, update ↵Nicholas Car2020-10-031-13/+27
| | | | relevant e.g.s
* Merge remote-tracking branch 'origin/master' into t0b3_masterAshley Sommer2020-08-271-3/+3
|\ | | | | | | | | | | | | | | | | # Conflicts: # rdflib/namespace.py # rdflib/parser.py # rdflib/plugins/memory.py # rdflib/plugins/parsers/ntriples.py # test/test_iomemory.py
| * Removed IOMemory storeAshley Sommer2020-08-191-2/+2
| | | | | | | | | | | | | | | | Renamed Memory2 to Memory Renamed Memory1 to SimpleMemory Set default store to new Memory Fixed tests Fixed docs
| * Fix commentStig B. Dørmænen2020-07-031-1/+1
| |
* | fix escaping (deprecated since py 3.6)t0b32020-06-221-1/+1
| | | | | | | | Signed-off-by: t0b3 <thomas.bettler@gmail.com>
* | 2to3 whole sourcebaset0b32020-06-222-4/+3
|/ | | | Signed-off-by: t0b3 <thomas.bettler@gmail.com>
* removed "from builtins import input" as not neededkill-Py2Nicholas Car2020-05-181-1/+0
|
* blacked all python filesNicholas Car2020-05-164-11/+16
|
* removal of all uses of package sixNicholas Car2020-05-161-1/+1
|
* touched up all examplesNicholas Car2020-03-2720-626/+566
|
* replace foaf:firstName (deprecated) with foaf:givenName in examples and testsNicholas Car2020-03-061-1/+1
|
* a slightly opinionated autopep8 runGunnar Aastrand Grimnes2018-10-3018-66/+68
| | | | | | | | opinions is mainly: no to long lines, but not at any cost. notation3.py crashses autopep :D Also rdflib/__init__.py gets completely broken
* removed most of the six import from py3compatGunnar Aastrand Grimnes2017-01-302-3/+4
| | | | now six is used throughout.
* converted last test filesGunnar Aastrand Grimnes2017-01-301-12/+16
|