Implement PyLDError
#113
636 passed, 245 failed and 0 skipped
❌ tests/artifacts/pytest.xml
881 tests were completed in 47s with 636 passed, 245 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 636✅ | 245❌ | 47s |
❌ pytest
tests.test_parse
✅ test_invalid_yaml
✅ test_closing_html_comment_in_yaml
tests.test_expand
❌ test_local_context
self = <pyld.context_resolver.ContextResolver object at 0x7ff2377eb640>
✅ test_empty_value
tests.test_specification
✅ test_expand[expand-manifest#t0104]
❌ test_to_rdf[toRdf-manifest#t0130]
test_case = TestCase(test='toRdf-manifest#t0130', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0130-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tc012]
✅ test_expand[expand-manifest#t0019]
❌ test_to_rdf[toRdf-manifest#te030]
test_case = TestCase(test='toRdf-manifest#te030', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e030-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#t0083]
✅ test_expand[expand-manifest#tpr10]
❌ test_expand[expand-manifest#tso13]
self = <pyld.context_resolver.ContextResolver object at 0x7ff23764d0f0>
✅ test_to_rdf[toRdf-manifest#tep03]
❌ test_expand[expand-manifest#tc036]
test_case = TestCase(test='expand-manifest#tc036', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/c036-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#tjs14]
✅ test_to_rdf[toRdf-manifest#tp004]
❌ test_to_rdf[toRdf-manifest#te090]
test_case = TestCase(test='toRdf-manifest#te090', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e090-out.nq'), req=None, extract_all_scripts=False)
❌ test_to_rdf[toRdf-manifest#te086]
self = <Graph identifier=Ne3fb0f3e937e48b19eb980a902fb444f (<class 'rdflib.graph.Graph'>)>
✅ test_to_rdf[toRdf-manifest#tin08]
❌ test_expand[expand-manifest#t0051]
test_case = TestCase(test='expand-manifest#t0051', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0051-out.jsonld'), req=None, extract_all_scripts=False)
❌ test_to_rdf[toRdf-manifest#t0020]
test_case = TestCase(test='toRdf-manifest#t0020', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0020-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#tc032]
✅ test_to_rdf[toRdf-manifest#tm006]
✅ test_to_rdf[toRdf-manifest#te024]
✅ test_expand[expand-manifest#t0105]
✅ test_to_rdf[basic-manifest#cir-scalar-other-2-positive]
✅ test_to_rdf[toRdf-manifest#tjs20]
✅ test_expand[expand-manifest#tc030]
✅ test_expand[expand-manifest#tpr33]
❌ test_to_rdf[html-manifest#tr018]
test_case = TestCase(test='html-manifest#tr018', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/...python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/html/r018-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#tc003]
✅ test_expand[expand-manifest#t0008]
❌ test_expand[expand-manifest#t0121]
test_case = TestCase(test='expand-manifest#t0121', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0121-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#tpr18]
❌ test_to_rdf[toRdf-manifest#t0028]
self = <Graph identifier=Nc430c13936bb4777bfe405ae690c26d5 (<class 'rdflib.graph.Graph'>)>
✅ test_to_rdf[html-manifest#tr012]
✅ test_expand[expand-manifest#tc006]
❌ test_to_rdf[toRdf-manifest#t0116]
self = <Graph identifier=Na3e656a50a8a45aca7e20a978469bd72 (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#t0020]
✅ test_to_rdf[toRdf-manifest#tm008]
❌ test_to_rdf[toRdf-manifest#te027]
test_case = TestCase(test='toRdf-manifest#te027', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e027-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#te045]
❌ test_to_rdf[toRdf-manifest#te028]
test_case = TestCase(test='toRdf-manifest#te028', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e028-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tn001]
✅ test_to_rdf[toRdf-manifest#tc026]
✅ test_expand[remote-doc-manifest#t0004]
❌ test_expand[expand-manifest#t0110]
test_case = TestCase(test='expand-manifest#t0110', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0110-out.jsonld'), req=None, extract_all_scripts=False)
❌ test_to_rdf[toRdf-manifest#te051]
test_case = TestCase(test='toRdf-manifest#te051', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e051-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[html-manifest#te015]
❌ test_expand[expand-manifest#t0040]
test_case = TestCase(test='expand-manifest#t0040', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0040-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#tpr23]
❌ test_expand[expand-manifest#t0059]
test_case = TestCase(test='expand-manifest#t0059', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0059-out.jsonld'), req=None, extract_all_scripts=False)
❌ test_to_rdf[toRdf-manifest#te013]
test_case = TestCase(test='toRdf-manifest#te013', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e013-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#t0117]
✅ test_expand[basic-manifest#cir-scalar-other-1-positive]
✅ test_expand[expand-manifest#tpr29]
✅ test_to_rdf[toRdf-manifest#ter44]
❌ test_expand[expand-manifest#t0092]
test_case = TestCase(test='expand-manifest#t0092', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0092-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tp003]
✅ test_to_rdf[toRdf-manifest#te037]
✅ test_expand[expand-manifest#tc017]
✅ test_expand[expand-manifest#ter43]
✅ test_expand[expand-manifest#ter38]
✅ test_to_rdf[toRdf-manifest#tin09]
✅ test_expand[expand-manifest#tpr35]
❌ test_to_rdf[toRdf-manifest#te081]
self = <Graph identifier=N7620ac2ca55f4b89819ab60f99509d53 (<class 'rdflib.graph.Graph'>)>
❌ test_to_rdf[toRdf-manifest#t0132]
test_case = TestCase(test='toRdf-manifest#t0132', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0132-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tjs20]
✅ test_expand[expand-manifest#ter17]
✅ test_expand[expand-manifest#t0034]
✅ test_to_rdf[toRdf-manifest#tn001]
✅ test_to_rdf[toRdf-manifest#ter50]
✅ test_to_rdf[toRdf-manifest#ter51]
✅ test_expand[basic-manifest#cir-mapping-key-3-negative]
✅ test_to_rdf[toRdf-manifest#te061]
✅ test_expand[expand-manifest#tc008]
✅ test_expand[basic-manifest#cir-scalar-i18n-1-positive]
✅ test_expand[remote-doc-manifest#tla02]
❌ test_to_rdf[toRdf-manifest#te112]
test_case = TestCase(test='toRdf-manifest#te112', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e112-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#tdi03]
✅ test_expand[expand-manifest#tm020]
❌ test_expand[remote-doc-manifest#tla01]
test_case = TestCase(test='remote-doc-manifest#tla01', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifica...l-ld/python-yaml-ld/specifications/json-ld-api/tests/remote-doc/la01-out.jsonld'), req=None, extract_all_scripts=False)
❌ test_to_rdf[toRdf-manifest#te088]
test_case = TestCase(test='toRdf-manifest#te088', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e088-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#tli05]
✅ test_expand[expand-manifest#tn003]
✅ test_to_rdf[toRdf-manifest#te032]
✅ test_to_rdf[toRdf-manifest#tec02]
❌ test_to_rdf[toRdf-manifest#tpr25]
self = <Graph identifier=Nd45eb94d73664e71b2370c101e5558cb (<class 'rdflib.graph.Graph'>)>
❌ test_to_rdf[html-manifest#tr005]
test_case = TestCase(test='html-manifest#tr005', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/.../python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/html/r005-out.nq'), req=None, extract_all_scripts=True)
❌ test_expand[remote-doc-manifest#t0013]
test_case = TestCase(test='remote-doc-manifest#t0013', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifica...l-ld/python-yaml-ld/specifications/json-ld-api/tests/remote-doc/0013-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#tc017]
✅ test_expand[expand-manifest#t0096]
❌ test_expand[expand-manifest#tc034]
self = <pyld.context_resolver.ContextResolver object at 0x7ff237624580>
✅ test_to_rdf[toRdf-manifest#tpr29]
✅ test_to_rdf[toRdf-manifest#tjs07]
❌ test_expand[expand-manifest#t0127]
self = <pyld.context_resolver.ContextResolver object at 0x7ff23701e050>
✅ test_to_rdf[toRdf-manifest#te003]
✅ test_expand[basic-manifest#aa-cycles-2-negative]
❌ test_expand[expand-manifest#tso08]
self = <pyld.context_resolver.ContextResolver object at 0x7ff236e156f0>
✅ test_expand[basic-manifest#cir-mapping-key-2-negative]
✅ test_expand[expand-manifest#tjs12]
✅ test_expand[expand-manifest#t0093]
✅ test_expand[expand-manifest#ter40]
✅ test_to_rdf[toRdf-manifest#te042]
✅ test_expand[expand-manifest#tc004]
✅ test_to_rdf[toRdf-manifest#tdi01]
✅ test_expand[expand-manifest#t0061]
❌ test_to_rdf[toRdf-manifest#te076]
test_case = TestCase(test='toRdf-manifest#te076', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e076-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#te047]
✅ test_expand[expand-manifest#tdi09]
❌ test_expand[expand-manifest#t0048]
test_case = TestCase(test='expand-manifest#t0048', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0048-out.jsonld'), req=None, extract_all_scripts=False)
❌ test_to_rdf[toRdf-manifest#te021]
self = <Graph identifier=N0cdbbe8bdbbd490db5e59145d91673c2 (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#tm012]
✅ test_to_rdf[html-manifest#tr016]
✅ test_expand[expand-manifest#t0024]
❌ test_to_rdf[toRdf-manifest#t0016]
test_case = TestCase(test='toRdf-manifest#t0016', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0016-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#ter08]
✅ test_to_rdf[toRdf-manifest#tm011]
✅ test_to_rdf[toRdf-manifest#tc016]
✅ test_to_rdf[toRdf-manifest#tpr09]
✅ test_expand[expand-manifest#t0063]
✅ test_to_rdf[toRdf-manifest#t0002]
❌ test_expand[remote-doc-manifest#t0005]
test_case = TestCase(test='remote-doc-manifest#t0005', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifica...l-ld/python-yaml-ld/specifications/json-ld-api/tests/remote-doc/0001-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#t0081]
✅ test_expand[expand-manifest#tm009]
✅ test_expand[expand-manifest#ter31]
✅ test_to_rdf[toRdf-manifest#ter29]
✅ test_expand[expand-manifest#t0032]
❌ test_expand[expand-manifest#t0060]
test_case = TestCase(test='expand-manifest#t0060', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0060-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#t0133]
✅ test_to_rdf[toRdf-manifest#t0015]
❌ test_expand[remote-doc-manifest#t0007]
test_case = TestCase(test='remote-doc-manifest#t0007', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifica...l-ld/python-yaml-ld/specifications/json-ld-api/tests/remote-doc/0001-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#te052]
❌ test_expand[expand-manifest#t0076]
test_case = TestCase(test='expand-manifest#t0076', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0076-out.jsonld'), req=None, extract_all_scripts=False)
❌ test_to_rdf[toRdf-manifest#tso05]
self = <pyld.context_resolver.ContextResolver object at 0x7ff23702b970>
✅ test_to_rdf[toRdf-manifest#tjs01]
✅ test_expand[expand-manifest#tjs02]
✅ test_to_rdf[toRdf-manifest#tpr20]
✅ test_expand[expand-manifest#ter29]
✅ test_to_rdf[toRdf-manifest#tin04]
❌ test_to_rdf[toRdf-manifest#t0125]
test_case = TestCase(test='toRdf-manifest#t0125', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0125-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#ter31]
✅ test_to_rdf[toRdf-manifest#tpr12]
✅ test_expand[expand-manifest#t0118]
✅ test_expand[html-manifest#te002]
❌ test_to_rdf[toRdf-manifest#te095]
self = <Graph identifier=N5565885b6cce46e2814c6928a32fc371 (<class 'rdflib.graph.Graph'>)>
✅ test_to_rdf[toRdf-manifest#tpr26]
❌ test_to_rdf[toRdf-manifest#t0126]
test_case = TestCase(test='toRdf-manifest#t0126', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0126-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#te055]
✅ test_to_rdf[toRdf-manifest#te033]
✅ test_expand[expand-manifest#tdi05]
✅ test_to_rdf[toRdf-manifest#ten01]
❌ test_to_rdf[toRdf-manifest#tc025]
self = <Graph identifier=N7a73c44186144ddfaf92b8b3616283ff (<class 'rdflib.graph.Graph'>)>
✅ test_to_rdf[toRdf-manifest#tpr01]
✅ test_expand[expand-manifest#tjs05]
✅ test_to_rdf[toRdf-manifest#tpr19]
❌ test_to_rdf[toRdf-manifest#te089]
test_case = TestCase(test='toRdf-manifest#te089', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e089-out.nq'), req=None, extract_all_scripts=False)
❌ test_expand[expand-manifest#t0050]
test_case = TestCase(test='expand-manifest#t0050', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0050-out.jsonld'), req=None, extract_all_scripts=False)
❌ test_to_rdf[html-manifest#tr004]
self = <Graph identifier=N4f24ff1ebafe48ebb17a2308b9f632b5 (<class 'rdflib.graph.Graph'>)>
❌ test_to_rdf[toRdf-manifest#te101]
self = <Graph identifier=N634f806a2626444ea844c13ac73bf038 (<class 'rdflib.graph.Graph'>)>
✅ test_to_rdf[toRdf-manifest#te074]
❌ test_expand[html-manifest#te021]
test_case = TestCase(test='html-manifest#te021', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/...on-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/html/e021-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_expand[basic-manifest#cir-mapping-key-4-negative]
✅ test_expand[basic-manifest#cr-well-formed-3-negative]
✅ test_expand[expand-manifest#ter36]
❌ test_expand[expand-manifest#t0109]
test_case = TestCase(test='expand-manifest#t0109', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0109-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tpr21]
✅ test_expand[expand-manifest#ter19]
✅ test_to_rdf[toRdf-manifest#tjs09]
✅ test_expand[expand-manifest#t0069]
✅ test_to_rdf[toRdf-manifest#t0005]
❌ test_to_rdf[toRdf-manifest#tc034]
self = <pyld.context_resolver.ContextResolver object at 0x7ff2373812d0>
❌ test_to_rdf[toRdf-manifest#te048]
test_case = TestCase(test='toRdf-manifest#te048', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e048-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tc010]
✅ test_to_rdf[toRdf-manifest#tpr08]
✅ test_to_rdf[toRdf-manifest#te012]
✅ test_expand[html-manifest#te013]
✅ test_expand[expand-manifest#t0014]
✅ test_expand[expand-manifest#ter35]
✅ test_expand[expand-manifest#t0052]
✅ test_expand[expand-manifest#tpr26]
✅ test_expand[expand-manifest#tm015]
❌ test_to_rdf[toRdf-manifest#te084]
self = <Graph identifier=N5fe3ebd5b9694c328fca377a7a15dd7f (<class 'rdflib.graph.Graph'>)>
✅ test_to_rdf[toRdf-manifest#tjs03]
❌ test_to_rdf[toRdf-manifest#te103]
self = <Graph identifier=Na4bd3b3e2c5140bfa0439a8568e4fc95 (<class 'rdflib.graph.Graph'>)>
✅ test_to_rdf[toRdf-manifest#tc018]
✅ test_to_rdf[toRdf-manifest#tc027]
❌ test_to_rdf[toRdf-manifest#tpi10]
test_case = TestCase(test='toRdf-manifest#tpi10', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/pi10-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#t0100]
✅ test_expand[expand-manifest#ten02]
✅ test_to_rdf[toRdf-manifest#tpi05]
✅ test_expand[expand-manifest#t0030]
✅ test_expand[expand-manifest#t0084]
✅ test_expand[expand-manifest#tc019]
❌ test_expand[expand-manifest#t0029]
test_case = TestCase(test='expand-manifest#t0029', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0029-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_expand[html-manifest#te004]
✅ test_to_rdf[toRdf-manifest#ter37]
❌ test_expand[expand-manifest#tc038]
test_case = TestCase(test='expand-manifest#tc038', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/c038-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#tem01]
✅ test_to_rdf[toRdf-manifest#ter55]
✅ test_expand[basic-manifest#two-documents-from-stream]
✅ test_to_rdf[toRdf-manifest#tc005]
❌ test_expand[expand-manifest#tc015]
test_case = TestCase(test='expand-manifest#tc015', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/c015-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tpr11]
✅ test_to_rdf[toRdf-manifest#tpr37]
✅ test_expand[expand-manifest#ter53]
❌ test_to_rdf[toRdf-manifest#t0120]
test_case = TestCase(test='toRdf-manifest#t0120', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0120-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#t0064]
✅ test_expand[expand-manifest#tc003]
✅ test_to_rdf[toRdf-manifest#tm019]
✅ test_expand[expand-manifest#tm003]
✅ test_to_rdf[toRdf-manifest#te009]
✅ test_expand[expand-manifest#t0108]
✅ test_expand[expand-manifest#tpr28]
✅ test_to_rdf[toRdf-manifest#t0031]
✅ test_expand[basic-manifest#cir-scalar-core-1-positive]
✅ test_to_rdf[toRdf-manifest#ter22]
❌ test_to_rdf[toRdf-manifest#tpi08]
test_case = TestCase(test='toRdf-manifest#tpi08', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/pi08-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#t0079]
✅ test_expand[expand-manifest#ter15]
✅ test_to_rdf[toRdf-manifest#ter11]
✅ test_to_rdf[toRdf-manifest#tn007]
❌ test_to_rdf[toRdf-manifest#te007]
test_case = TestCase(test='toRdf-manifest#te007', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e007-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#tc009]
✅ test_expand[expand-manifest#ter12]
✅ test_to_rdf[toRdf-manifest#tin01]
✅ test_to_rdf[html-manifest#tr013]
✅ test_to_rdf[toRdf-manifest#tjs17]
✅ test_expand[expand-manifest#tc007]
✅ test_expand[expand-manifest#tm002]
❌ test_expand[html-manifest#te020]
test_case = TestCase(test='html-manifest#te020', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/...on-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/html/e020-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tpr17]
✅ test_expand[expand-manifest#tjs08]
❌ test_expand[expand-manifest#tso12]
self = <pyld.context_resolver.ContextResolver object at 0x7ff236fcb1c0>
✅ test_expand[expand-manifest#tpr06]
❌ test_to_rdf[toRdf-manifest#tc024]
test_case = TestCase(test='toRdf-manifest#tc024', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/c024-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#tm001]
✅ test_to_rdf[toRdf-manifest#tn005]
✅ test_to_rdf[toRdf-manifest#ter27]
✅ test_expand[expand-manifest#tpr40]
❌ test_to_rdf[toRdf-manifest#tin06]
test_case = TestCase(test='toRdf-manifest#tin06', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/in06-out.nq'), req=None, extract_all_scripts=False)
❌ test_to_rdf[html-manifest#tr017]
test_case = TestCase(test='html-manifest#tr017', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/html/r017-in.html'), result='invalid script element', req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tin02]
✅ test_expand[expand-manifest#tc014]
❌ test_to_rdf[toRdf-manifest#t0121]
test_case = TestCase(test='toRdf-manifest#t0121', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0121-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#twf01]
✅ test_to_rdf[toRdf-manifest#tjs06]
✅ test_expand[expand-manifest#t0094]
✅ test_to_rdf[toRdf-manifest#tli01]
✅ test_expand[expand-manifest#t0058]
✅ test_expand[expand-manifest#tp004]
✅ test_expand[expand-manifest#tpi05]
✅ test_expand[expand-manifest#tc005]
❌ test_to_rdf[toRdf-manifest#te092]
test_case = TestCase(test='toRdf-manifest#te092', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e092-out.nq'), req=None, extract_all_scripts=False)
❌ test_to_rdf[toRdf-manifest#t0122]
test_case = TestCase(test='toRdf-manifest#t0122', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0122-out.nq'), req=None, extract_all_scripts=False)
❌ test_to_rdf[toRdf-manifest#te111]
test_case = TestCase(test='toRdf-manifest#te111', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e111-out.nq'), req=None, extract_all_scripts=False)
❌ test_to_rdf[toRdf-manifest#te057]
test_case = TestCase(test='toRdf-manifest#te057', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e057-out.nq'), req=None, extract_all_scripts=False)
❌ test_to_rdf[toRdf-manifest#te002]
test_case = TestCase(test='toRdf-manifest#te002', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e002-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tc027]
✅ test_to_rdf[toRdf-manifest#tli06]
❌ test_to_rdf[toRdf-manifest#te105]
self = <Graph identifier=N47bd4d28d5fa44d39b505c5f78d7347e (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#tpr24]
✅ test_to_rdf[toRdf-manifest#ter19]
❌ test_to_rdf[toRdf-manifest#te079]
self = <Graph identifier=N7f88e5c813484d19b8f26efb3aa4a016 (<class 'rdflib.graph.Graph'>)>
✅ test_to_rdf[toRdf-manifest#tc006]
❌ test_to_rdf[toRdf-manifest#tdi12]
test_case = TestCase(test='toRdf-manifest#tdi12', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/di12-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tc023]
❌ test_expand[html-manifest#te019]
test_case = TestCase(test='html-manifest#te019', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/...on-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/html/e019-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#trt01]
❌ test_expand[expand-manifest#tpi10]
test_case = TestCase(test='expand-manifest#tpi10', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/pi10-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#ter41]
❌ test_to_rdf[toRdf-manifest#tso12]
self = <pyld.context_resolver.ContextResolver object at 0x7ff23701d480>
✅ test_to_rdf[toRdf-manifest#t0001]
✅ test_expand[basic-manifest#cir-document-content-1-negative]
✅ test_to_rdf[toRdf-manifest#tpi02]
❌ test_expand[expand-manifest#t0078]
test_case = TestCase(test='expand-manifest#t0078', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0078-out.jsonld'), req=None, extract_all_scripts=False)
❌ test_to_rdf[toRdf-manifest#te082]
self = <Graph identifier=N2872b7c298234dc6a26efdfa483cc30a (<class 'rdflib.graph.Graph'>)>
❌ test_expand[remote-doc-manifest#t0008]
test_case = TestCase(test='remote-doc-manifest#t0008', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifica...son-ld-api/tests/remote-doc/missing-in.jsonld'), result='loading document failed', req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tli05]
✅ test_expand[expand-manifest#t0123]
✅ test_to_rdf[toRdf-manifest#te113]
✅ test_to_rdf[toRdf-manifest#tdi08]
✅ test_expand[remote-doc-manifest#tla03]
✅ test_expand[expand-manifest#t0011]
✅ test_to_rdf[toRdf-manifest#te058]
❌ test_to_rdf[html-manifest#tr019]
test_case = TestCase(test='html-manifest#tr019', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/...python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/html/r019-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#tli07]
✅ test_expand[expand-manifest#tm019]
✅ test_expand[expand-manifest#tpr13]
❌ test_expand[expand-manifest#tc024]
test_case = TestCase(test='expand-manifest#tc024', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/c024-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tpr36]
❌ test_to_rdf[toRdf-manifest#t0117]
self = <Graph identifier=N385ea01c437a4c32988c8d4238a354bc (<class 'rdflib.graph.Graph'>)>
❌ test_to_rdf[toRdf-manifest#tso07]
self = <pyld.context_resolver.ContextResolver object at 0x7ff2376db910>
✅ test_to_rdf[toRdf-manifest#tli04]
❌ test_to_rdf[toRdf-manifest#te099]
self = <Graph identifier=N1bda0b0153ca4797a601de02a190b0e1 (<class 'rdflib.graph.Graph'>)>
✅ test_to_rdf[toRdf-manifest#tpr35]
✅ test_expand[expand-manifest#tc028]
✅ test_expand[expand-manifest#tc021]
❌ test_to_rdf[toRdf-manifest#te109]
test_case = TestCase(test='toRdf-manifest#te109', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e109-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#te022]
✅ test_to_rdf[toRdf-manifest#te016]
✅ test_expand[expand-manifest#tpr32]
✅ test_expand[expand-manifest#tn008]
✅ test_to_rdf[toRdf-manifest#tm012]
❌ test_to_rdf[toRdf-manifest#te029]
test_case = TestCase(test='toRdf-manifest#te029', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e029-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#t0035]
✅ test_expand[expand-manifest#t0033]
✅ test_expand[expand-manifest#t0043]
✅ test_to_rdf[toRdf-manifest#tc004]
✅ test_expand[expand-manifest#ter51]
✅ test_to_rdf[toRdf-manifest#t0022]
❌ test_to_rdf[toRdf-manifest#tm016]
self = <Graph identifier=N5e25c23a3af343f18faefe6938ff6f8f (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#t0018]
✅ test_expand[expand-manifest#ter18]
✅ test_expand[basic-manifest#cir-mapping-key-5-negative]
❌ test_to_rdf[toRdf-manifest#te034]
test_case = TestCase(test='toRdf-manifest#te034', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e034-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#te070]
✅ test_expand[expand-manifest#tpr15]
❌ test_expand[expand-manifest#t0056]
test_case = TestCase(test='expand-manifest#t0056', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0056-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#t0068]
✅ test_expand[expand-manifest#tpr34]
❌ test_to_rdf[toRdf-manifest#te087]
self = <Graph identifier=N44fd69d2927f4145805d5b819f74e2c7 (<class 'rdflib.graph.Graph'>)>
❌ test_expand[expand-manifest#t0091]
test_case = TestCase(test='expand-manifest#t0091', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0091-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#ter08]
✅ test_to_rdf[toRdf-manifest#tm007]
✅ test_to_rdf[toRdf-manifest#ten03]
✅ test_to_rdf[toRdf-manifest#t0011]
✅ test_expand[html-manifest#tex01]
✅ test_expand[expand-manifest#tn007]
❌ test_to_rdf[toRdf-manifest#tli13]
test_case = TestCase(test='toRdf-manifest#tli13', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/li13-out.nq'), req=None, extract_all_scripts=False)
❌ test_expand[expand-manifest#t0111]
test_case = TestCase(test='expand-manifest#t0111', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0111-out.jsonld'), req=None, extract_all_scripts=False)
❌ test_expand[expand-manifest#tm005]
test_case = TestCase(test='expand-manifest#tm005', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/m005-out.jsonld'), req=None, extract_all_scripts=False)
❌ test_expand[expand-manifest#t0005]
test_case = TestCase(test='expand-manifest#t0005', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0005-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#ter07]
❌ test_to_rdf[toRdf-manifest#tli11]
test_case = TestCase(test='toRdf-manifest#tli11', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/li11-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#tli03]
❌ test_to_rdf[toRdf-manifest#tli12]
test_case = TestCase(test='toRdf-manifest#tli12', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/li12-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tpr39]
✅ test_expand[expand-manifest#t0044]
✅ test_to_rdf[toRdf-manifest#te119]
✅ test_expand[expand-manifest#t0017]
✅ test_expand[expand-manifest#tpr19]
❌ test_expand[expand-manifest#tpi06]
test_case = TestCase(test='expand-manifest#tpi06', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/pi06-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#tc012]
❌ test_to_rdf[toRdf-manifest#te108]
self = <Graph identifier=N1d2edb82757a4091905cb86ebd54ab46 (<class 'rdflib.graph.Graph'>)>
✅ test_to_rdf[toRdf-manifest#tpr41]
✅ test_expand[expand-manifest#t0036]
✅ test_expand[html-manifest#te011]
✅ test_to_rdf[toRdf-manifest#tpr13]
✅ test_expand[expand-manifest#ter41]
✅ test_to_rdf[toRdf-manifest#tc014]
❌ test_to_rdf[toRdf-manifest#tc031]
self = <pyld.context_resolver.ContextResolver object at 0x7ff2375a76d0>
❌ test_expand[expand-manifest#tm017]
test_case = TestCase(test='expand-manifest#tm017', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/m017-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tpr18]
✅ test_to_rdf[toRdf-manifest#tpr22]
❌ test_expand[expand-manifest#t0126]
self = <pyld.context_resolver.ContextResolver object at 0x7ff237037400>
✅ test_to_rdf[toRdf-manifest#t0034]
✅ test_expand[expand-manifest#tjs01]
❌ test_to_rdf[toRdf-manifest#te121]
test_case = TestCase(test='toRdf-manifest#te121', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e121-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#ter27]
❌ test_to_rdf[toRdf-manifest#te005]
test_case = TestCase(test='toRdf-manifest#te005', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e005-out.nq'), req=None, extract_all_scripts=False)
❌ test_expand[remote-doc-manifest#tla05]
test_case = TestCase(test='remote-doc-manifest#tla05', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifica...l-ld/python-yaml-ld/specifications/json-ld-api/tests/remote-doc/la05-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#ter48]
✅ test_expand[expand-manifest#tn005]
✅ test_to_rdf[toRdf-manifest#tli09]
✅ test_to_rdf[toRdf-manifest#tpr15]
✅ test_to_rdf[toRdf-manifest#tpi03]
✅ test_to_rdf[toRdf-manifest#ter28]
❌ test_to_rdf[toRdf-manifest#twf05]
test_case = TestCase(test='toRdf-manifest#twf05', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/wf05-out.nq'), req=None, extract_all_scripts=False)
❌ test_expand[expand-manifest#tm018]
test_case = TestCase(test='expand-manifest#tm018', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/m018-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_expand[basic-manifest#cr-utf8-2-negative]
✅ test_expand[expand-manifest#tli08]
✅ test_expand[expand-manifest#t0047]
✅ test_expand[expand-manifest#tpr03]
✅ test_to_rdf[toRdf-manifest#te023]
❌ test_to_rdf[toRdf-manifest#t0131]
test_case = TestCase(test='toRdf-manifest#t0131', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0131-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#t0025]
✅ test_to_rdf[toRdf-manifest#ter06]
✅ test_expand[expand-manifest#tc032]
✅ test_expand[expand-manifest#t0102]
✅ test_to_rdf[toRdf-manifest#tm004]
✅ test_to_rdf[toRdf-manifest#tc021]
❌ test_to_rdf[toRdf-manifest#tm013]
self = <Graph identifier=N591d80d977e14365ade89a597dc96c00 (<class 'rdflib.graph.Graph'>)>
❌ test_to_rdf[toRdf-manifest#te096]
self = <Graph identifier=N9dc6621f512840b6a13335e6c0d56186 (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#tpi03]
✅ test_to_rdf[toRdf-manifest#tpr02]
✅ test_to_rdf[toRdf-manifest#tjs10]
✅ test_expand[html-manifest#te006]
✅ test_expand[expand-manifest#t0073]
❌ test_to_rdf[toRdf-manifest#tdi05]
test_case = TestCase(test='toRdf-manifest#tdi05', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/di05-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#ter23]
✅ test_to_rdf[toRdf-manifest#tpr27]
✅ test_to_rdf[toRdf-manifest#tn003]
✅ test_to_rdf[toRdf-manifest#tpr24]
✅ test_expand[expand-manifest#ter55]
❌ test_to_rdf[toRdf-manifest#te104]
self = <Graph identifier=N7c3a36f5b0f5496d901f6aafc3ce4696 (<class 'rdflib.graph.Graph'>)>
❌ test_to_rdf[html-manifest#tr003]
test_case = TestCase(test='html-manifest#tr003', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/...python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/html/r003-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#t0023]
✅ test_to_rdf[toRdf-manifest#te049]
❌ test_to_rdf[toRdf-manifest#tpi09]
test_case = TestCase(test='toRdf-manifest#tpi09', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/pi09-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#tp003]
✅ test_to_rdf[toRdf-manifest#tc007]
✅ test_to_rdf[toRdf-manifest#tp002]
✅ test_expand[expand-manifest#t0103]
✅ test_expand[expand-manifest#ter30]
✅ test_expand[expand-manifest#tjs17]
✅ test_to_rdf[toRdf-manifest#tc028]
✅ test_to_rdf[toRdf-manifest#tli02]
✅ test_expand[expand-manifest#t0086]
✅ test_to_rdf[toRdf-manifest#te118]
❌ test_expand[expand-manifest#tso09]
self = <pyld.context_resolver.ContextResolver object at 0x7ff23739c100>
✅ test_expand[expand-manifest#ter06]
❌ test_to_rdf[toRdf-manifest#tdi06]
test_case = TestCase(test='toRdf-manifest#tdi06', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/di06-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#t0016]
❌ test_to_rdf[toRdf-manifest#te128]
self = <pyld.context_resolver.ContextResolver object at 0x7ff2375fe470>
❌ test_expand[expand-manifest#t0088]
test_case = TestCase(test='expand-manifest#t0088', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0088-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tjs10]
✅ test_to_rdf[toRdf-manifest#tpr38]
✅ test_expand[expand-manifest#tec01]
✅ test_expand[expand-manifest#tpr01]
❌ test_expand[expand-manifest#tso11]
self = <pyld.context_resolver.ContextResolver object at 0x7ff2376185b0>
❌ test_to_rdf[toRdf-manifest#tso06]
self = <pyld.context_resolver.ContextResolver object at 0x7ff236dee0e0>
✅ test_to_rdf[toRdf-manifest#tpr28]
✅ test_to_rdf[toRdf-manifest#ten02]
✅ test_expand[expand-manifest#t0013]
✅ test_to_rdf[toRdf-manifest#tpr16]
✅ test_expand[expand-manifest#tin08]
✅ test_to_rdf[toRdf-manifest#tpr33]
✅ test_expand[expand-manifest#t0046]
✅ test_to_rdf[toRdf-manifest#tpr34]
✅ test_to_rdf[toRdf-manifest#tjs21]
❌ test_to_rdf[html-manifest#tr006]
test_case = TestCase(test='html-manifest#tr006', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/...python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/html/r006-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#ter10]
❌ test_to_rdf[toRdf-manifest#te010]
test_case = TestCase(test='toRdf-manifest#te010', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e010-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#ter11]
✅ test_to_rdf[toRdf-manifest#ter52]
❌ test_to_rdf[toRdf-manifest#te066]
test_case = TestCase(test='toRdf-manifest#te066', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e066-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tc025]
✅ test_to_rdf[toRdf-manifest#te072]
✅ test_expand[expand-manifest#ter52]
❌ test_to_rdf[toRdf-manifest#te031]
test_case = TestCase(test='toRdf-manifest#te031', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e031-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#ttn02]
✅ test_to_rdf[toRdf-manifest#tdi02]
✅ test_to_rdf[toRdf-manifest#t0012]
❌ test_expand[remote-doc-manifest#t0009]
test_case = TestCase(test='remote-doc-manifest#t0009', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifica...l-ld/python-yaml-ld/specifications/json-ld-api/tests/remote-doc/0009-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_expand[basic-manifest#cir-mapping-key-1-negative]
✅ test_to_rdf[toRdf-manifest#ter17]
✅ test_to_rdf[toRdf-manifest#tli10]
❌ test_to_rdf[toRdf-manifest#te122]
self = <pyld.jsonld.JsonLdProcessor object at 0x7ff236e16020>
✅ test_to_rdf[toRdf-manifest#ter30]
✅ test_expand[expand-manifest#tc002]
✅ test_expand[expand-manifest#ter37]
❌ test_to_rdf[toRdf-manifest#te056]
test_case = TestCase(test='toRdf-manifest#te056', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e056-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#tpr03]
✅ test_to_rdf[toRdf-manifest#te054]
✅ test_to_rdf[toRdf-manifest#ten05]
✅ test_to_rdf[toRdf-manifest#ter18]
✅ test_expand[html-manifest#te016]
✅ test_to_rdf[toRdf-manifest#te043]
❌ test_to_rdf[toRdf-manifest#tdi04]
test_case = TestCase(test='toRdf-manifest#tdi04', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/di04-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#te073]
✅ test_expand[html-manifest#te010]
✅ test_expand[expand-manifest#tpi04]
✅ test_expand[expand-manifest#tpr14]
✅ test_to_rdf[toRdf-manifest#ter09]
✅ test_to_rdf[toRdf-manifest#te004]
✅ test_to_rdf[toRdf-manifest#ter53]
✅ test_to_rdf[toRdf-manifest#tec01]
✅ test_expand[expand-manifest#ttn02]
✅ test_to_rdf[toRdf-manifest#ter10]
❌ test_expand[expand-manifest#t0122]
test_case = TestCase(test='expand-manifest#t0122', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0122-out.jsonld'), req=None, extract_all_scripts=False)
❌ test_expand[expand-manifest#t0077]
test_case = TestCase(test='expand-manifest#t0077', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0077-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#te125]
✅ test_to_rdf[toRdf-manifest#ten06]
❌ test_expand[expand-manifest#ter05]
self = <pyld.context_resolver.ContextResolver object at 0x7ff237165690>
✅ test_expand[expand-manifest#tc018]
✅ test_expand[expand-manifest#tli10]
❌ test_to_rdf[toRdf-manifest#t0124]
test_case = TestCase(test='toRdf-manifest#t0124', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0124-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#ter39]
✅ test_to_rdf[toRdf-manifest#tn008]
✅ test_expand[html-manifest#te003]
✅ test_to_rdf[toRdf-manifest#tin07]
❌ test_to_rdf[toRdf-manifest#te126]
self = <pyld.context_resolver.ContextResolver object at 0x7ff237484220>
✅ test_expand[expand-manifest#tpr30]
✅ test_expand[expand-manifest#t0107]
❌ test_to_rdf[toRdf-manifest#te078]
test_case = TestCase(test='toRdf-manifest#te078', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e078-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#t0067]
✅ test_expand[expand-manifest#t0042]
✅ test_expand[expand-manifest#ten03]
✅ test_expand[expand-manifest#ter22]
✅ test_to_rdf[toRdf-manifest#te114]
✅ test_to_rdf[toRdf-manifest#twf07]
✅ test_expand[expand-manifest#ter13]
✅ test_to_rdf[toRdf-manifest#t0035]
✅ test_expand[expand-manifest#t0021]
❌ test_to_rdf[toRdf-manifest#te127]
self = <pyld.context_resolver.ContextResolver object at 0x7ff2374b4430>
✅ test_to_rdf[toRdf-manifest#te053]
✅ test_expand[expand-manifest#t0070]
❌ test_expand[expand-manifest#t0128]
self = <pyld.context_resolver.ContextResolver object at 0x7ff236f34cd0>
❌ test_to_rdf[toRdf-manifest#te085]
self = <Graph identifier=N6620da69a590492d817f122a33b399cd (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#tjs07]
✅ test_expand[expand-manifest#tin04]
✅ test_expand[expand-manifest#ter33]
✅ test_to_rdf[toRdf-manifest#tpr06]
✅ test_expand[expand-manifest#tjs21]
❌ test_to_rdf[toRdf-manifest#tm005]
test_case = TestCase(test='toRdf-manifest#tm005', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/m005-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[html-manifest#te012]
✅ test_to_rdf[toRdf-manifest#tpr17]
✅ test_expand[expand-manifest#t0106]
✅ test_expand[expand-manifest#tpr38]
✅ test_to_rdf[toRdf-manifest#tc037]
✅ test_expand[expand-manifest#ter49]
✅ test_expand[expand-manifest#tli09]
✅ test_expand[expand-manifest#t0027]
❌ test_expand[expand-manifest#t0130]
test_case = TestCase(test='expand-manifest#t0130', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0130-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#tin02]
✅ test_to_rdf[toRdf-manifest#ter33]
✅ test_to_rdf[toRdf-manifest#twf04]
❌ test_to_rdf[toRdf-manifest#t0017]
test_case = TestCase(test='toRdf-manifest#t0017', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0017-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tjs13]
✅ test_to_rdf[toRdf-manifest#tn004]
✅ test_to_rdf[toRdf-manifest#tc019]
✅ test_to_rdf[toRdf-manifest#tjs22]
✅ test_to_rdf[toRdf-manifest#tc023]
✅ test_expand[expand-manifest#tp002]
✅ test_to_rdf[toRdf-manifest#t0004]
✅ test_to_rdf[toRdf-manifest#ter20]
❌ test_expand[expand-manifest#tso10]
self = <pyld.context_resolver.ContextResolver object at 0x7ff237005180>
✅ test_expand[expand-manifest#tin01]
✅ test_expand[expand-manifest#ter25]
✅ test_expand[expand-manifest#tjs16]
❌ test_expand[remote-doc-manifest#t0001]
test_case = TestCase(test='remote-doc-manifest#t0001', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifica...l-ld/python-yaml-ld/specifications/json-ld-api/tests/remote-doc/0001-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#t0101]
❌ test_to_rdf[toRdf-manifest#tm009]
test_case = TestCase(test='toRdf-manifest#tm009', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/m009-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#t0074]
❌ test_to_rdf[toRdf-manifest#tli14]
test_case = TestCase(test='toRdf-manifest#tli14', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/li14-out.nq'), req=None, extract_all_scripts=False)
❌ test_to_rdf[toRdf-manifest#te094]
self = <Graph identifier=N78212b21615042c9874e436794841046 (<class 'rdflib.graph.Graph'>)>
✅ test_to_rdf[toRdf-manifest#te068]
❌ test_to_rdf[toRdf-manifest#t0127]
test_case = TestCase(test='toRdf-manifest#t0127', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0127-out.nq'), req=None, extract_all_scripts=False)
❌ test_expand[expand-manifest#tpi11]
test_case = TestCase(test='expand-manifest#tpi11', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/pi11-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#t0124]
❌ test_to_rdf[toRdf-manifest#te107]
self = <Graph identifier=Necbf0d0c660542cba01db3de83c3ba13 (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#ter26]
❌ test_to_rdf[toRdf-manifest#te044]
test_case = TestCase(test='toRdf-manifest#te044', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e044-out.nq'), req=None, extract_all_scripts=False)
❌ test_to_rdf[toRdf-manifest#tm015]
self = <Graph identifier=N1f0823a15df64a00be4d72e18c187ea3 (<class 'rdflib.graph.Graph'>)>
✅ test_to_rdf[toRdf-manifest#ter12]
❌ test_to_rdf[toRdf-manifest#te130]
test_case = TestCase(test='toRdf-manifest#te130', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e130-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#tc002]
✅ test_to_rdf[toRdf-manifest#te001]
✅ test_to_rdf[toRdf-manifest#tpr04]
❌ test_to_rdf[toRdf-manifest#tpi11]
self = <Graph identifier=Nb32c571c817a455c906694757f53da5f (<class 'rdflib.graph.Graph'>)>
✅ test_to_rdf[toRdf-manifest#te064]
❌ test_expand[expand-manifest#tc031]
self = <pyld.context_resolver.ContextResolver object at 0x7ff236e6b490>
✅ test_to_rdf[toRdf-manifest#tdi10]
✅ test_to_rdf[toRdf-manifest#tpr05]
✅ test_to_rdf[toRdf-manifest#ter01]
✅ test_expand[expand-manifest#tm004]
✅ test_to_rdf[toRdf-manifest#tjs19]
✅ test_expand[expand-manifest#tec02]
❌ test_to_rdf[toRdf-manifest#te018]
test_case = TestCase(test='toRdf-manifest#te018', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e018-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#ter23]
✅ test_to_rdf[toRdf-manifest#te123]
✅ test_expand[expand-manifest#tpr22]
❌ test_expand[remote-doc-manifest#t0003]
test_case = TestCase(test='remote-doc-manifest#t0003', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifica...l-ld/python-yaml-ld/specifications/json-ld-api/tests/remote-doc/0003-out.jsonld'), req=None, extract_all_scripts=False)
❌ test_to_rdf[toRdf-manifest#t0018]
test_case = TestCase(test='toRdf-manifest#t0018', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0018-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tpr08]
❌ test_expand[basic-manifest#html-dedent-needed]
raw_document = '\n "@context": https://json-ld.org/contexts/person.jsonld\n "@id": http://dbped...nld\n "@id": http://dbpedia.org/resource/Cynthia_Lennon\n born: 1939-09-10\n '
❌ test_to_rdf[toRdf-manifest#t0115]
self = <Graph identifier=Nfe98f4c7962b4bf69c4b425de16ce70a (<class 'rdflib.graph.Graph'>)>
✅ test_to_rdf[toRdf-manifest#te063]
❌ test_to_rdf[toRdf-manifest#te059]
test_case = TestCase(test='toRdf-manifest#te059', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e059-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#tc030]
✅ test_expand[expand-manifest#tli06]
❌ test_to_rdf[toRdf-manifest#tc038]
test_case = TestCase(test='toRdf-manifest#tc038', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/c038-out.nq'), req=None, extract_all_scripts=False)
❌ test_to_rdf[toRdf-manifest#tdi11]
test_case = TestCase(test='toRdf-manifest#tdi11', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/di11-out.nq'), req=None, extract_all_scripts=False)
❌ test_to_rdf[toRdf-manifest#tso03]
self = <pyld.context_resolver.ContextResolver object at 0x7ff237191de0>
✅ test_to_rdf[toRdf-manifest#t0013]
✅ test_to_rdf[toRdf-manifest#te017]
✅ test_expand[expand-manifest#tin05]
❌ test_to_rdf[toRdf-manifest#te060]
test_case = TestCase(test='toRdf-manifest#te060', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e060-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tdi06]
❌ test_expand[expand-manifest#t0028]
test_case = TestCase(test='expand-manifest#t0028', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0028-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tes02]
✅ test_expand[expand-manifest#t0003]
❌ test_expand[remote-doc-manifest#t0012]
test_case = TestCase(test='remote-doc-manifest#t0012', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifica...on-ld-api/tests/remote-doc/0012-in.json'), result='multiple context link headers', req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tpr05]
❌ test_to_rdf[toRdf-manifest#ter54]
test_case = TestCase(test='toRdf-manifest#ter54', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/er54-in.jsonld'), result='invalid typed value', req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#twf02]
❌ test_expand[expand-manifest#tin06]
test_case = TestCase(test='expand-manifest#tin06', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/in06-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#ter49]
✅ test_expand[expand-manifest#tp001]
✅ test_to_rdf[toRdf-manifest#tpr21]
❌ test_expand[expand-manifest#tc037]
test_case = TestCase(test='expand-manifest#tc037', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/c037-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#tm020]
✅ test_expand[expand-manifest#tpr41]
❌ test_expand[expand-manifest#t0112]
test_case = TestCase(test='expand-manifest#t0112', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0112-out.jsonld'), req=None, extract_all_scripts=False)
❌ test_expand[remote-doc-manifest#t0011]
test_case = TestCase(test='remote-doc-manifest#t0011', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifica...l-ld/python-yaml-ld/specifications/json-ld-api/tests/remote-doc/0011-out.jsonld'), req=None, extract_all_scripts=False)
❌ test_to_rdf[toRdf-manifest#te040]
test_case = TestCase(test='toRdf-manifest#te040', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e040-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tpr12]
✅ test_to_rdf[html-manifest#tr014]
✅ test_to_rdf[toRdf-manifest#te124]
❌ test_expand[html-manifest#te018]
test_case = TestCase(test='html-manifest#te018', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/...on-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/html/e018-out.jsonld'), req=None, extract_all_scripts=False)
❌ test_to_rdf[toRdf-manifest#te083]
self = <Graph identifier=N6af054d59615435985785f4a88801dc2 (<class 'rdflib.graph.Graph'>)>
❌ test_expand[basic-manifest#html-and-yaml-streams]
raw_document = '\n "@context": https://json-ld.org/contexts/person.jsonld\n "@id": http://dbpedia.org/resource/John_Lennon\n .../json-ld.org/contexts/person.jsonld\n "@id": http://dbpedia.org/resource/Cynthia_Lennon\n born: 1939-09-10\n '
✅ test_to_rdf[toRdf-manifest#t0007]
✅ test_expand[expand-manifest#t0119]
✅ test_to_rdf[toRdf-manifest#t0010]
✅ test_expand[basic-manifest#aa-cycles-1-positive]
✅ test_to_rdf[toRdf-manifest#tjs02]
✅ test_to_rdf[toRdf-manifest#tso02]
✅ test_expand[expand-manifest#tpr20]
✅ test_expand[expand-manifest#tn006]
✅ test_expand[expand-manifest#t0031]
✅ test_expand[expand-manifest#t0065]
✅ test_expand[expand-manifest#t0001]
✅ test_expand[html-manifest#te005]
✅ test_to_rdf[toRdf-manifest#ter14]
✅ test_expand[expand-manifest#ter14]
✅ test_expand[expand-manifest#t0095]
❌ test_to_rdf[toRdf-manifest#tc015]
test_case = TestCase(test='toRdf-manifest#tc015', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/c015-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#te041]
✅ test_expand[expand-manifest#tc013]
✅ test_expand[expand-manifest#tjs22]
✅ test_to_rdf[html-manifest#tr015]
✅ test_to_rdf[toRdf-manifest#te019]
✅ test_expand[expand-manifest#t0004]
✅ test_expand[expand-manifest#t0037]
✅ test_to_rdf[toRdf-manifest#ter34]
✅ test_to_rdf[toRdf-manifest#tdi09]
✅ test_expand[expand-manifest#tjs11]
❌ test_expand[expand-manifest#t0062]
test_case = TestCase(test='expand-manifest#t0062', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0062-out.jsonld'), req=None, extract_all_scripts=False)
❌ test_to_rdf[toRdf-manifest#tm014]
self = <Graph identifier=N13797a50462e489d86b6b323ec9c12d9 (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#tso02]
✅ test_to_rdf[toRdf-manifest#tpi04]
✅ test_expand[expand-manifest#t0080]
✅ test_to_rdf[toRdf-manifest#tjs04]
✅ test_to_rdf[toRdf-manifest#tc033]
✅ test_expand[basic-manifest#aa-cycles-3-positive]
✅ test_to_rdf[toRdf-manifest#ter38]
✅ test_to_rdf[toRdf-manifest#te006]
❌ test_expand[html-manifest#te017]
test_case = TestCase(test='html-manifest#te017', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/html/e017-in.html'), result='invalid script element', req=None, extract_all_scripts=False)
❌ test_expand[expand-manifest#tpi08]
test_case = TestCase(test='expand-manifest#tpi08', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/pi08-out.jsonld'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#tpr30]
✅ test_to_rdf[toRdf-manifest#tc035]
✅ test_expand[expand-manifest#tjs18]
✅ test_to_rdf[toRdf-manifest#tpr10]
❌ test_to_rdf[toRdf-manifest#t0128]
test_case = TestCase(test='toRdf-manifest#t0128', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0128-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#ter13]
❌ test_to_rdf[toRdf-manifest#tm010]
test_case = TestCase(test='toRdf-manifest#tm010', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/m010-out.nq'), req=None, extract_all_scripts=False)
✅ test_expand[expand-manifest#tli07]
✅ test_expand[expand-manifest#tpr31]
✅ test_to_rdf[toRdf-manifest#ter26]
✅ test_expand[expand-manifest#tdi01]
✅ test_expand[expand-manifest#tc026]
✅ test_to_rdf[toRdf-manifest#tpr40]
✅ test_expand[expand-manifest#t0085]
✅ test_expand[expand-manifest#tpr25]
✅ test_to_rdf[toRdf-manifest#ter35]
✅ test_expand[expand-manifest#tjs19]
✅ test_expand[expand-manifest#ter28]
✅ test_to_rdf[toRdf-manifest#tc001]
❌ test_to_rdf[html-manifest#tr022]
test_case = TestCase(test='html-manifest#tr022', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/...python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/html/r022-out.nq'), req=None, extract_all_scripts=False)
✅ test_to_rdf[toRdf-manifest#tpr14]
❌ test_to_rdf[toRdf-manifest#tso13]
self = <pyld.context_resolver.ContextResolver object at 0x7ff23723ebf0>
Report exceeded GitHub limit of 65535 bytes and has been trimmed
Annotations
Check failure on line 0 in tests/artifacts/pytest.xml
github-actions / pytest
pytest ► tests.test_expand ► test_local_context
Failed test found in:
tests/artifacts/pytest.xml
Error:
self = <pyld.context_resolver.ContextResolver object at 0x7ff2377eb640>
Raw output
self = <pyld.context_resolver.ContextResolver object at 0x7ff2377eb640>
active_ctx = frozendict.frozendict({'_uuid': '0fe25d88-eed5-11ee-a762-1f659a11011b', 'processingMode': 'json-ld-1.1', 'mappings': {}})
url = 'file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0127-context-1.jsonld'
cycles = {'file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0127-context-1.jsonld'}
def _fetch_context(self, active_ctx, url, cycles):
# check for max context URLs fetched during a resolve operation
if len(cycles) > MAX_CONTEXT_URLS:
raise jsonld.JsonLdError(
'Maximum number of @context URLs exceeded.',
'jsonld.ContextUrlError', {'max': MAX_CONTEXT_URLS},
code=('loading remote context failed'
if active_ctx.get('processingMode') == 'json-ld-1.0'
else 'context overflow'))
# check for context URL cycle
# shortcut to avoid extra work that would eventually hit the max above
if url in cycles:
raise jsonld.JsonLdError(
'Cyclical @context URLs detected.',
'jsonld.ContextUrlError', {'url': url},
code=('recursive context inclusion'
if active_ctx.get('processingMode') == 'json-ld-1.0'
else 'context overflow'))
# track cycles
cycles.add(url)
try:
> remote_doc = jsonld.load_document(url,
{'documentLoader': self.document_loader},
requestProfile='http://www.w3.org/ns/json-ld#context')
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/pyld/context_resolver.py:143:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/pyld/jsonld.py:6583: in load_document
remote_doc = options['documentLoader'](url, options)
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/pyld/documentloader/requests.py:98: in loader
raise e
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
url = 'file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0127-context-1.jsonld'
options = {'documentLoader': <function requests_document_loader.<locals>.loader at 0x7ff23c5aa290>, 'headers': {'Accept': 'appli...w3.org/ns/json-ld#context, application/ld+json, application/json;q=0.5, text/html;q=0.8, application/xhtml+xml;q=0.8'}}
def loader(url, options={}):
"""
Retrieves JSON-LD at the given URL.
:param url: the URL to retrieve.
:return: the RemoteDocument.
"""
try:
# validate URL
pieces = urllib_parse.urlparse(url)
if (not all([pieces.scheme, pieces.netloc]) or
pieces.scheme not in ['http', 'https'] or
set(pieces.netloc) > set(
string.ascii_letters + string.digits + '-.:')):
> raise JsonLdError(
'URL could not be dereferenced; only "http" and "https" '
'URLs are supported.',
'jsonld.InvalidUrl', {'url': url},
code='loading document failed')
E pyld.jsonld.JsonLdError: ('URL could not be dereferenced; only "http" and "https" URLs are supported.',)
E Type: jsonld.InvalidUrl
E Code: loading document failed
E Details: {'url': 'file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0127-context-1.jsonld'}
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/pyld/documentloader/requests.py:47: JsonLdError
During handling of the above exception, another exception occurred:
document = {'@context': '0127-context-1.jsonld', '@id': 'ex:id', 'prop': {'value': 'v'}}
base = 'file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/'
context = None, extract_all_scripts = False
mode = <ProcessingMode.JSON_LD_1_1: 'json-ld-1.1'>, document_loader = None
def expand( # noqa: C901, WPS211
document: SerializedDocument | Document,
base: Annotated[str | None, Help('The base IRI to use.')] = None,
context: Annotated[
Document | None,
Help('A context to expand with.'),
] = None,
extract_all_scripts: ExtractAllScripts = False,
mode: ProcessingMode = ProcessingMode.JSON_LD_1_1,
document_loader: DocumentLoader | None = None,
):
"""Expand a YAML-LD document."""
if isinstance(document, (str, bytes, Path, URL)):
if isinstance(document, Path) and base is None:
base = f'file://{document.parent}/'
document = parse(document, extract_all_scripts=extract_all_scripts)
options = ExpandOptions(
base=base,
context=context,
extract_all_scripts=extract_all_scripts,
mode=mode,
document_loader=document_loader,
).model_dump(
exclude_defaults=True,
by_alias=True,
)
try:
> return jsonld.expand(
input_=document,
options=options,
)
yaml_ld/expand.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/pyld/jsonld.py:163: in expand
return JsonLdProcessor().expand(input_, options)
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/pyld/jsonld.py:870: in expand
expanded = self._expand(active_ctx, None, document, options,
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/pyld/jsonld.py:2302: in _expand
active_ctx = self._process_context(
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/pyld/jsonld.py:3049: in _process_context
resolved = options['contextResolver'].resolve(active_ctx, local_ctx, options.get('base', ''))
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/pyld/context_resolver.py:58: in resolve
resolved = self._resolve_remote_context(
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/pyld/context_resolver.py:108: in _resolve_remote_context
context, remote_doc = self._fetch_context(active_ctx, url, cycles)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pyld.context_resolver.ContextResolver object at 0x7ff2377eb640>
active_ctx = frozendict.frozendict({'_uuid': '0fe25d88-eed5-11ee-a762-1f659a11011b', 'processingMode': 'json-ld-1.1', 'mappings': {}})
url = 'file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0127-context-1.jsonld'
cycles = {'file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0127-context-1.jsonld'}
def _fetch_context(self, active_ctx, url, cycles):
# check for max context URLs fetched during a resolve operation
if len(cycles) > MAX_CONTEXT_URLS:
raise jsonld.JsonLdError(
'Maximum number of @context URLs exceeded.',
'jsonld.ContextUrlError', {'max': MAX_CONTEXT_URLS},
code=('loading remote context failed'
if active_ctx.get('processingMode') == 'json-ld-1.0'
else 'context overflow'))
# check for context URL cycle
# shortcut to avoid extra work that would eventually hit the max above
if url in cycles:
raise jsonld.JsonLdError(
'Cyclical @context URLs detected.',
'jsonld.ContextUrlError', {'url': url},
code=('recursive context inclusion'
if active_ctx.get('processingMode') == 'json-ld-1.0'
else 'context overflow'))
# track cycles
cycles.add(url)
try:
remote_doc = jsonld.load_document(url,
{'documentLoader': self.document_loader},
requestProfile='http://www.w3.org/ns/json-ld#context')
context = remote_doc.get('document', url)
except Exception as cause:
> raise jsonld.JsonLdError(
'Dereferencing a URL did not result in a valid JSON-LD object. ' +
'Possible causes are an inaccessible URL perhaps due to ' +
'a same-origin policy (ensure the server uses CORS if you are ' +
'using client-side JavaScript), too many redirects, a ' +
'non-JSON response, or more than one HTTP Link Header was ' +
'provided for a remote context.',
'jsonld.InvalidUrl',
{'url': url, 'cause': cause},
code='loading remote context failed')
E pyld.jsonld.JsonLdError: ('Dereferencing a URL did not result in a valid JSON-LD object. Possible causes are an inaccessible URL perhaps due to a same-origin policy (ensure the server uses CORS if you are using client-side JavaScript), too many redirects, a non-JSON response, or more than one HTTP Link Header was provided for a remote context.',)
E Type: jsonld.InvalidUrl
E Code: loading remote context failed
E Details: {'url': 'file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0127-context-1.jsonld', 'cause': JsonLdError('URL could not be dereferenced; only "http" and "https" URLs are supported.')}
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/pyld/context_resolver.py:148: JsonLdError
The above exception was the direct cause of the following exception:
@pytest.mark.xfail(
raises=JsonLdError,
reason='`pyld` does not handle `file://` paths.',
)
def test_local_context():
document = specifications_root / 'json-ld-api/tests/expand/0127-in.jsonld'
> yaml_ld.expand(document)
tests/test_expand.py:28:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
document = {'@context': '0127-context-1.jsonld', '@id': 'ex:id', 'prop': {'value': 'v'}}
base = 'file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/'
context = None, extract_all_scripts = False
mode = <ProcessingMode.JSON_LD_1_1: 'json-ld-1.1'>, document_loader = None
def expand( # noqa: C901, WPS211
document: SerializedDocument | Document,
base: Annotated[str | None, Help('The base IRI to use.')] = None,
context: Annotated[
Document | None,
Help('A context to expand with.'),
] = None,
extract_all_scripts: ExtractAllScripts = False,
mode: ProcessingMode = ProcessingMode.JSON_LD_1_1,
document_loader: DocumentLoader | None = None,
):
"""Expand a YAML-LD document."""
if isinstance(document, (str, bytes, Path, URL)):
if isinstance(document, Path) and base is None:
base = f'file://{document.parent}/'
document = parse(document, extract_all_scripts=extract_all_scripts)
options = ExpandOptions(
base=base,
context=context,
extract_all_scripts=extract_all_scripts,
mode=mode,
document_loader=document_loader,
).model_dump(
exclude_defaults=True,
by_alias=True,
)
try:
return jsonld.expand(
input_=document,
options=options,
)
except TypeError as err:
raise MappingKeyError() from err
except RecursionError as err:
raise CycleDetected() from err
except jsonld.JsonLdError as err:
match err.code:
case LoadingRemoteContextFailed.code:
> raise LoadingRemoteContextFailed(
context=err.details['url'],
reason=str(err.details['cause']),
) from err
E yaml_ld.errors.LoadingRemoteContextFailed: Failed to load the context.
E
E URL of the context: file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0127-context-1.jsonld
E Reason: ('URL could not be dereferenced; only "http" and "https" URLs are supported.',)
E Type: jsonld.InvalidUrl
E Code: loading document failed
E Details: {'url': 'file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0127-context-1.jsonld'}
yaml_ld/expand.py:67: LoadingRemoteContextFailed
Check failure on line 0 in tests/artifacts/pytest.xml
github-actions / pytest
pytest ► tests.test_specification ► test_to_rdf[toRdf-manifest#t0130]
Failed test found in:
tests/artifacts/pytest.xml
Error:
test_case = TestCase(test='toRdf-manifest#t0130', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0130-out.nq'), req=None, extract_all_scripts=False)
Raw output
test_case = TestCase(test='toRdf-manifest#t0130', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0130-out.nq'), req=None, extract_all_scripts=False)
@pytest.mark.parametrize(
'test_case',
load_tests(tests.ToRDFTest),
ids=_get_id,
)
def test_to_rdf(test_case: TestCase):
if isinstance(test_case.result, str):
try:
rdf_document = yaml_ld.to_rdf(
test_case.input,
extract_all_scripts=test_case.extract_all_scripts,
)
except YAMLLDError as error:
assert error.code == test_case.result
return
else:
pytest.fail(str(FailureToFail(
test_case=test_case,
expected_error_code=test_case.result,
raw_document=test_case.raw_document,
expanded_document=rdf_document,
)))
actual_dataset = yaml_ld.to_rdf(test_case.raw_document)
raw_expected_quads = test_case.raw_expected_document
actual_triples = actual_dataset['@default']
actual_graph: Graph = _rdflib_graph_from_pyld_dataset(actual_triples)
expected_graph = Graph().parse(data=raw_expected_quads)
> assert actual_graph.isomorphic(expected_graph)
E AssertionError: assert False
E + where False = <bound method Graph.isomorphic of <Graph identifier=N925668e4af9d46b4b8fcecb6509274f3 (<class 'rdflib.graph.Graph'>)>>(<Graph identifier=N3d243273365b4ce18af7f59f6c68852a (<class 'rdflib.graph.Graph'>)>)
E + where <bound method Graph.isomorphic of <Graph identifier=N925668e4af9d46b4b8fcecb6509274f3 (<class 'rdflib.graph.Graph'>)>> = <Graph identifier=N925668e4af9d46b4b8fcecb6509274f3 (<class 'rdflib.graph.Graph'>)>.isomorphic
tests/test_specification.py:65: AssertionError
Check failure on line 0 in tests/artifacts/pytest.xml
github-actions / pytest
pytest ► tests.test_specification ► test_to_rdf[toRdf-manifest#te030]
Failed test found in:
tests/artifacts/pytest.xml
Error:
test_case = TestCase(test='toRdf-manifest#te030', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e030-out.nq'), req=None, extract_all_scripts=False)
Raw output
test_case = TestCase(test='toRdf-manifest#te030', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e030-out.nq'), req=None, extract_all_scripts=False)
@pytest.mark.parametrize(
'test_case',
load_tests(tests.ToRDFTest),
ids=_get_id,
)
def test_to_rdf(test_case: TestCase):
if isinstance(test_case.result, str):
try:
rdf_document = yaml_ld.to_rdf(
test_case.input,
extract_all_scripts=test_case.extract_all_scripts,
)
except YAMLLDError as error:
assert error.code == test_case.result
return
else:
pytest.fail(str(FailureToFail(
test_case=test_case,
expected_error_code=test_case.result,
raw_document=test_case.raw_document,
expanded_document=rdf_document,
)))
actual_dataset = yaml_ld.to_rdf(test_case.raw_document)
raw_expected_quads = test_case.raw_expected_document
actual_triples = actual_dataset['@default']
actual_graph: Graph = _rdflib_graph_from_pyld_dataset(actual_triples)
expected_graph = Graph().parse(data=raw_expected_quads)
> assert actual_graph.isomorphic(expected_graph)
E AssertionError: assert False
E + where False = <bound method Graph.isomorphic of <Graph identifier=Ne9561010afb946e4af23f28641fe2cf8 (<class 'rdflib.graph.Graph'>)>>(<Graph identifier=Nbbac73547c814a2290363688721b133f (<class 'rdflib.graph.Graph'>)>)
E + where <bound method Graph.isomorphic of <Graph identifier=Ne9561010afb946e4af23f28641fe2cf8 (<class 'rdflib.graph.Graph'>)>> = <Graph identifier=Ne9561010afb946e4af23f28641fe2cf8 (<class 'rdflib.graph.Graph'>)>.isomorphic
tests/test_specification.py:65: AssertionError
Check failure on line 0 in tests/artifacts/pytest.xml
github-actions / pytest
pytest ► tests.test_specification ► test_expand[expand-manifest#tso13]
Failed test found in:
tests/artifacts/pytest.xml
Error:
self = <pyld.context_resolver.ContextResolver object at 0x7ff23764d0f0>
Raw output
self = <pyld.context_resolver.ContextResolver object at 0x7ff23764d0f0>
active_ctx = frozendict.frozendict({'_uuid': '0fe25d88-eed5-11ee-a762-1f659a11011b', 'processingMode': 'json-ld-1.1', 'mappings': {}})
url = 'so13-context.jsonld', cycles = {'so13-context.jsonld'}
def _fetch_context(self, active_ctx, url, cycles):
# check for max context URLs fetched during a resolve operation
if len(cycles) > MAX_CONTEXT_URLS:
raise jsonld.JsonLdError(
'Maximum number of @context URLs exceeded.',
'jsonld.ContextUrlError', {'max': MAX_CONTEXT_URLS},
code=('loading remote context failed'
if active_ctx.get('processingMode') == 'json-ld-1.0'
else 'context overflow'))
# check for context URL cycle
# shortcut to avoid extra work that would eventually hit the max above
if url in cycles:
raise jsonld.JsonLdError(
'Cyclical @context URLs detected.',
'jsonld.ContextUrlError', {'url': url},
code=('recursive context inclusion'
if active_ctx.get('processingMode') == 'json-ld-1.0'
else 'context overflow'))
# track cycles
cycles.add(url)
try:
> remote_doc = jsonld.load_document(url,
{'documentLoader': self.document_loader},
requestProfile='http://www.w3.org/ns/json-ld#context')
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/pyld/context_resolver.py:143:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/pyld/jsonld.py:6583: in load_document
remote_doc = options['documentLoader'](url, options)
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/pyld/documentloader/requests.py:98: in loader
raise e
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
url = 'so13-context.jsonld'
options = {'documentLoader': <function requests_document_loader.<locals>.loader at 0x7ff23c5aa290>, 'headers': {'Accept': 'appli...w3.org/ns/json-ld#context, application/ld+json, application/json;q=0.5, text/html;q=0.8, application/xhtml+xml;q=0.8'}}
def loader(url, options={}):
"""
Retrieves JSON-LD at the given URL.
:param url: the URL to retrieve.
:return: the RemoteDocument.
"""
try:
# validate URL
pieces = urllib_parse.urlparse(url)
if (not all([pieces.scheme, pieces.netloc]) or
pieces.scheme not in ['http', 'https'] or
set(pieces.netloc) > set(
string.ascii_letters + string.digits + '-.:')):
> raise JsonLdError(
'URL could not be dereferenced; only "http" and "https" '
'URLs are supported.',
'jsonld.InvalidUrl', {'url': url},
code='loading document failed')
E pyld.jsonld.JsonLdError: ('URL could not be dereferenced; only "http" and "https" URLs are supported.',)
E Type: jsonld.InvalidUrl
E Code: loading document failed
E Details: {'url': 'so13-context.jsonld'}
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/pyld/documentloader/requests.py:47: JsonLdError
During handling of the above exception, another exception occurred:
document = {'@context': {'@import': 'so13-context.jsonld', '@version': 1.1}, 'term': 'value'}
base = None, context = None, extract_all_scripts = False
mode = <ProcessingMode.JSON_LD_1_1: 'json-ld-1.1'>, document_loader = None
def expand( # noqa: C901, WPS211
document: SerializedDocument | Document,
base: Annotated[str | None, Help('The base IRI to use.')] = None,
context: Annotated[
Document | None,
Help('A context to expand with.'),
] = None,
extract_all_scripts: ExtractAllScripts = False,
mode: ProcessingMode = ProcessingMode.JSON_LD_1_1,
document_loader: DocumentLoader | None = None,
):
"""Expand a YAML-LD document."""
if isinstance(document, (str, bytes, Path, URL)):
if isinstance(document, Path) and base is None:
base = f'file://{document.parent}/'
document = parse(document, extract_all_scripts=extract_all_scripts)
options = ExpandOptions(
base=base,
context=context,
extract_all_scripts=extract_all_scripts,
mode=mode,
document_loader=document_loader,
).model_dump(
exclude_defaults=True,
by_alias=True,
)
try:
> return jsonld.expand(
input_=document,
options=options,
)
yaml_ld/expand.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/pyld/jsonld.py:163: in expand
return JsonLdProcessor().expand(input_, options)
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/pyld/jsonld.py:870: in expand
expanded = self._expand(active_ctx, None, document, options,
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/pyld/jsonld.py:2302: in _expand
active_ctx = self._process_context(
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/pyld/jsonld.py:3146: in _process_context
resolved_import = options['contextResolver'].resolve(
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/pyld/context_resolver.py:58: in resolve
resolved = self._resolve_remote_context(
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/pyld/context_resolver.py:108: in _resolve_remote_context
context, remote_doc = self._fetch_context(active_ctx, url, cycles)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pyld.context_resolver.ContextResolver object at 0x7ff23764d0f0>
active_ctx = frozendict.frozendict({'_uuid': '0fe25d88-eed5-11ee-a762-1f659a11011b', 'processingMode': 'json-ld-1.1', 'mappings': {}})
url = 'so13-context.jsonld', cycles = {'so13-context.jsonld'}
def _fetch_context(self, active_ctx, url, cycles):
# check for max context URLs fetched during a resolve operation
if len(cycles) > MAX_CONTEXT_URLS:
raise jsonld.JsonLdError(
'Maximum number of @context URLs exceeded.',
'jsonld.ContextUrlError', {'max': MAX_CONTEXT_URLS},
code=('loading remote context failed'
if active_ctx.get('processingMode') == 'json-ld-1.0'
else 'context overflow'))
# check for context URL cycle
# shortcut to avoid extra work that would eventually hit the max above
if url in cycles:
raise jsonld.JsonLdError(
'Cyclical @context URLs detected.',
'jsonld.ContextUrlError', {'url': url},
code=('recursive context inclusion'
if active_ctx.get('processingMode') == 'json-ld-1.0'
else 'context overflow'))
# track cycles
cycles.add(url)
try:
remote_doc = jsonld.load_document(url,
{'documentLoader': self.document_loader},
requestProfile='http://www.w3.org/ns/json-ld#context')
context = remote_doc.get('document', url)
except Exception as cause:
> raise jsonld.JsonLdError(
'Dereferencing a URL did not result in a valid JSON-LD object. ' +
'Possible causes are an inaccessible URL perhaps due to ' +
'a same-origin policy (ensure the server uses CORS if you are ' +
'using client-side JavaScript), too many redirects, a ' +
'non-JSON response, or more than one HTTP Link Header was ' +
'provided for a remote context.',
'jsonld.InvalidUrl',
{'url': url, 'cause': cause},
code='loading remote context failed')
E pyld.jsonld.JsonLdError: ('Dereferencing a URL did not result in a valid JSON-LD object. Possible causes are an inaccessible URL perhaps due to a same-origin policy (ensure the server uses CORS if you are using client-side JavaScript), too many redirects, a non-JSON response, or more than one HTTP Link Header was provided for a remote context.',)
E Type: jsonld.InvalidUrl
E Code: loading remote context failed
E Details: {'url': 'so13-context.jsonld', 'cause': JsonLdError('URL could not be dereferenced; only "http" and "https" URLs are supported.')}
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/pyld/context_resolver.py:148: JsonLdError
The above exception was the direct cause of the following exception:
test_case = TestCase(test='expand-manifest#tso13', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/so13-in.jsonld'), result='invalid remote context', req=None, extract_all_scripts=False)
@pytest.mark.parametrize('test_case', load_tests(tests.ExpandTest), ids=_get_id)
def test_expand(test_case: TestCase):
if isinstance(test_case.result, str):
try:
> expanded_document = yaml_ld.expand(
test_case.input,
extract_all_scripts=test_case.extract_all_scripts,
)
tests/test_specification.py:72:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
document = {'@context': {'@import': 'so13-context.jsonld', '@version': 1.1}, 'term': 'value'}
base = None, context = None, extract_all_scripts = False
mode = <ProcessingMode.JSON_LD_1_1: 'json-ld-1.1'>, document_loader = None
def expand( # noqa: C901, WPS211
document: SerializedDocument | Document,
base: Annotated[str | None, Help('The base IRI to use.')] = None,
context: Annotated[
Document | None,
Help('A context to expand with.'),
] = None,
extract_all_scripts: ExtractAllScripts = False,
mode: ProcessingMode = ProcessingMode.JSON_LD_1_1,
document_loader: DocumentLoader | None = None,
):
"""Expand a YAML-LD document."""
if isinstance(document, (str, bytes, Path, URL)):
if isinstance(document, Path) and base is None:
base = f'file://{document.parent}/'
document = parse(document, extract_all_scripts=extract_all_scripts)
options = ExpandOptions(
base=base,
context=context,
extract_all_scripts=extract_all_scripts,
mode=mode,
document_loader=document_loader,
).model_dump(
exclude_defaults=True,
by_alias=True,
)
try:
return jsonld.expand(
input_=document,
options=options,
)
except TypeError as err:
raise MappingKeyError() from err
except RecursionError as err:
raise CycleDetected() from err
except jsonld.JsonLdError as err:
match err.code:
case LoadingRemoteContextFailed.code:
> raise LoadingRemoteContextFailed(
context=err.details['url'],
reason=str(err.details['cause']),
) from err
E yaml_ld.errors.LoadingRemoteContextFailed: Failed to load the context.
E
E URL of the context: so13-context.jsonld
E Reason: ('URL could not be dereferenced; only "http" and "https" URLs are supported.',)
E Type: jsonld.InvalidUrl
E Code: loading document failed
E Details: {'url': 'so13-context.jsonld'}
yaml_ld/expand.py:67: LoadingRemoteContextFailed
During handling of the above exception, another exception occurred:
test_case = TestCase(test='expand-manifest#tso13', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/so13-in.jsonld'), result='invalid remote context', req=None, extract_all_scripts=False)
@pytest.mark.parametrize('test_case', load_tests(tests.ExpandTest), ids=_get_id)
def test_expand(test_case: TestCase):
if isinstance(test_case.result, str):
try:
expanded_document = yaml_ld.expand(
test_case.input,
extract_all_scripts=test_case.extract_all_scripts,
)
except YAMLLDError as error:
> assert error.code == test_case.result
E AssertionError: assert 'loading remo...ontext failed' == 'invalid remote context'
E - invalid remote context
E + loading remote context failed
tests/test_specification.py:77: AssertionError
Check failure on line 0 in tests/artifacts/pytest.xml
github-actions / pytest
pytest ► tests.test_specification ► test_expand[expand-manifest#tc036]
Failed test found in:
tests/artifacts/pytest.xml
Error:
test_case = TestCase(test='expand-manifest#tc036', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/c036-out.jsonld'), req=None, extract_all_scripts=False)
Raw output
test_case = TestCase(test='expand-manifest#tc036', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/c036-out.jsonld'), req=None, extract_all_scripts=False)
@pytest.mark.parametrize('test_case', load_tests(tests.ExpandTest), ids=_get_id)
def test_expand(test_case: TestCase):
if isinstance(test_case.result, str):
try:
expanded_document = yaml_ld.expand(
test_case.input,
extract_all_scripts=test_case.extract_all_scripts,
)
except YAMLLDError as error:
assert error.code == test_case.result
else:
pytest.fail(str(FailureToFail(
test_case=test_case,
expected_error_code=test_case.result,
raw_document=test_case.raw_document,
expanded_document=expanded_document,
)))
elif isinstance(test_case.result, Path):
expected = yaml_ld.parse(test_case.result.read_text())
actual = yaml_ld.expand(
test_case.input,
extract_all_scripts=test_case.extract_all_scripts,
)
> assert actual == expected
E AssertionError: assert [{'ex:thing':...ue': 'top'}]}] == [{'ex:thing':...ue': 'top'}]}]
E At index 0 diff: {'ex:thing': [{}], 'ex:title': [{'@value': 'top'}]} != {'ex:title': [{'@value': 'top'}], 'ex:thing': [{'ex:title': [{'@value': 'sub'}]}]}
E Full diff:
E [
E - {'ex:thing': [{'ex:title': [{'@value': 'sub'}]}],
E + {'ex:thing': [{}],
E 'ex:title': [{'@value': 'top'}]},
E ]
tests/test_specification.py:92: AssertionError
Check failure on line 0 in tests/artifacts/pytest.xml
github-actions / pytest
pytest ► tests.test_specification ► test_to_rdf[toRdf-manifest#te090]
Failed test found in:
tests/artifacts/pytest.xml
Error:
test_case = TestCase(test='toRdf-manifest#te090', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e090-out.nq'), req=None, extract_all_scripts=False)
Raw output
test_case = TestCase(test='toRdf-manifest#te090', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e090-out.nq'), req=None, extract_all_scripts=False)
@pytest.mark.parametrize(
'test_case',
load_tests(tests.ToRDFTest),
ids=_get_id,
)
def test_to_rdf(test_case: TestCase):
if isinstance(test_case.result, str):
try:
rdf_document = yaml_ld.to_rdf(
test_case.input,
extract_all_scripts=test_case.extract_all_scripts,
)
except YAMLLDError as error:
assert error.code == test_case.result
return
else:
pytest.fail(str(FailureToFail(
test_case=test_case,
expected_error_code=test_case.result,
raw_document=test_case.raw_document,
expanded_document=rdf_document,
)))
actual_dataset = yaml_ld.to_rdf(test_case.raw_document)
raw_expected_quads = test_case.raw_expected_document
actual_triples = actual_dataset['@default']
actual_graph: Graph = _rdflib_graph_from_pyld_dataset(actual_triples)
expected_graph = Graph().parse(data=raw_expected_quads)
> assert actual_graph.isomorphic(expected_graph)
E AssertionError: assert False
E + where False = <bound method Graph.isomorphic of <Graph identifier=Ndebd0927e0584e0fa82c4e8313ae73f5 (<class 'rdflib.graph.Graph'>)>>(<Graph identifier=N50e12b024fea4b65a0cd29c4669e7d0c (<class 'rdflib.graph.Graph'>)>)
E + where <bound method Graph.isomorphic of <Graph identifier=Ndebd0927e0584e0fa82c4e8313ae73f5 (<class 'rdflib.graph.Graph'>)>> = <Graph identifier=Ndebd0927e0584e0fa82c4e8313ae73f5 (<class 'rdflib.graph.Graph'>)>.isomorphic
tests/test_specification.py:65: AssertionError
Check failure on line 0 in tests/artifacts/pytest.xml
github-actions / pytest
pytest ► tests.test_specification ► test_to_rdf[toRdf-manifest#te086]
Failed test found in:
tests/artifacts/pytest.xml
Error:
self = <Graph identifier=Ne3fb0f3e937e48b19eb980a902fb444f (<class 'rdflib.graph.Graph'>)>
Raw output
self = <Graph identifier=Ne3fb0f3e937e48b19eb980a902fb444f (<class 'rdflib.graph.Graph'>)>
source = <rdflib.parser.StringInputSource object at 0x7ff2376da6b0>
publicID = None, format = 'turtle', location = None, file = None
data = '_:b0 <http://example.org/value> "x" <http://example.com/g1> .\n_:b1 <http://example.org/input> <http://example.com/g1> .\n'
args = {}, could_not_guess_format = True
parser = <rdflib.plugins.parsers.notation3.TurtleParser object at 0x7ff2376da800>
def parse(
self,
source: Optional[
Union[IO[bytes], TextIO, InputSource, str, bytes, pathlib.PurePath]
] = None,
publicID: Optional[str] = None, # noqa: N803
format: Optional[str] = None,
location: Optional[str] = None,
file: Optional[Union[BinaryIO, TextIO]] = None,
data: Optional[Union[str, bytes]] = None,
**args: Any,
) -> "Graph":
"""
Parse an RDF source adding the resulting triples to the Graph.
The source is specified using one of source, location, file or data.
.. caution::
This method can access directly or indirectly requested network or
file resources, for example, when parsing JSON-LD documents with
``@context`` directives that point to a network location.
When processing untrusted or potentially malicious documents,
measures should be taken to restrict network and file access.
For information on available security measures, see the RDFLib
:doc:`Security Considerations </security_considerations>`
documentation.
:Parameters:
- ``source``: An InputSource, file-like object, or string. In the case
of a string the string is the location of the source.
- ``location``: A string indicating the relative or absolute URL of
the source. Graph's absolutize method is used if a relative location
is specified.
- ``file``: A file-like object.
- ``data``: A string containing the data to be parsed.
- ``format``: Used if format can not be determined from source, e.g.
file extension or Media Type. Defaults to text/turtle. Format
support can be extended with plugins, but "xml", "n3" (use for
turtle), "nt" & "trix" are built in.
- ``publicID``: the logical URI to use as the document base. If None
specified the document location is used (at least in the case where
there is a document location).
:Returns:
- self, the graph instance.
Examples:
>>> my_data = '''
... <rdf:RDF
... xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
... xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
... >
... <rdf:Description>
... <rdfs:label>Example</rdfs:label>
... <rdfs:comment>This is really just an example.</rdfs:comment>
... </rdf:Description>
... </rdf:RDF>
... '''
>>> import os, tempfile
>>> fd, file_name = tempfile.mkstemp()
>>> f = os.fdopen(fd, "w")
>>> dummy = f.write(my_data) # Returns num bytes written
>>> f.close()
>>> g = Graph()
>>> result = g.parse(data=my_data, format="application/rdf+xml")
>>> len(g)
2
>>> g = Graph()
>>> result = g.parse(location=file_name, format="application/rdf+xml")
>>> len(g)
2
>>> g = Graph()
>>> with open(file_name, "r") as f:
... result = g.parse(f, format="application/rdf+xml")
>>> len(g)
2
>>> os.remove(file_name)
>>> # default turtle parsing
>>> result = g.parse(data="<http://example.com/a> <http://example.com/a> <http://example.com/a> .")
>>> len(g)
3
"""
source = create_input_source(
source=source,
publicID=publicID,
location=location,
file=file,
data=data,
format=format,
)
if format is None:
format = source.content_type
could_not_guess_format = False
if format is None:
if (
hasattr(source, "file")
and getattr(source.file, "name", None)
and isinstance(source.file.name, str)
):
format = rdflib.util.guess_format(source.file.name)
if format is None:
format = "turtle"
could_not_guess_format = True
parser = plugin.get(format, Parser)()
try:
# TODO FIXME: Parser.parse should have **kwargs argument.
> parser.parse(source, self, **args)
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/rdflib/graph.py:1494:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/rdflib/plugins/parsers/notation3.py:2021: in parse
p.loadStream(stream)
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/rdflib/plugins/parsers/notation3.py:479: in loadStream
return self.loadBuf(stream.read()) # Not ideal
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/rdflib/plugins/parsers/notation3.py:485: in loadBuf
self.feed(buf)
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/rdflib/plugins/parsers/notation3.py:511: in feed
i = self.directiveOrStatement(s, j)
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/rdflib/plugins/parsers/notation3.py:532: in directiveOrStatement
return self.checkDot(argstr, j)
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/rdflib/plugins/parsers/notation3.py:1214: in checkDot
self.BadSyntax(argstr, j, "expected '.' or '}' or ']' at end of statement")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rdflib.plugins.parsers.notation3.SinkParser object at 0x7ff2376da230>
argstr = '_:b0 <http://example.org/value> "x" <http://example.com/g1> .\n_:b1 <http://example.org/input> <http://example.com/g1> .\n'
i = 36, msg = "expected '.' or '}' or ']' at end of statement"
def BadSyntax(self, argstr: str, i: int, msg: str) -> NoReturn:
> raise BadSyntax(self._thisDoc, self.lines, argstr, i, msg)
E rdflib.plugins.parsers.notation3.BadSyntax: <no detail available>
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/rdflib/plugins/parsers/notation3.py:1730: BadSyntax
During handling of the above exception, another exception occurred:
test_case = TestCase(test='toRdf-manifest#te086', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e086-out.nq'), req=None, extract_all_scripts=False)
@pytest.mark.parametrize(
'test_case',
load_tests(tests.ToRDFTest),
ids=_get_id,
)
def test_to_rdf(test_case: TestCase):
if isinstance(test_case.result, str):
try:
rdf_document = yaml_ld.to_rdf(
test_case.input,
extract_all_scripts=test_case.extract_all_scripts,
)
except YAMLLDError as error:
assert error.code == test_case.result
return
else:
pytest.fail(str(FailureToFail(
test_case=test_case,
expected_error_code=test_case.result,
raw_document=test_case.raw_document,
expanded_document=rdf_document,
)))
actual_dataset = yaml_ld.to_rdf(test_case.raw_document)
raw_expected_quads = test_case.raw_expected_document
actual_triples = actual_dataset['@default']
actual_graph: Graph = _rdflib_graph_from_pyld_dataset(actual_triples)
> expected_graph = Graph().parse(data=raw_expected_quads)
tests/test_specification.py:63:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Graph identifier=Ne3fb0f3e937e48b19eb980a902fb444f (<class 'rdflib.graph.Graph'>)>
source = <rdflib.parser.StringInputSource object at 0x7ff2376da6b0>
publicID = None, format = 'turtle', location = None, file = None
data = '_:b0 <http://example.org/value> "x" <http://example.com/g1> .\n_:b1 <http://example.org/input> <http://example.com/g1> .\n'
args = {}, could_not_guess_format = True
parser = <rdflib.plugins.parsers.notation3.TurtleParser object at 0x7ff2376da800>
def parse(
self,
source: Optional[
Union[IO[bytes], TextIO, InputSource, str, bytes, pathlib.PurePath]
] = None,
publicID: Optional[str] = None, # noqa: N803
format: Optional[str] = None,
location: Optional[str] = None,
file: Optional[Union[BinaryIO, TextIO]] = None,
data: Optional[Union[str, bytes]] = None,
**args: Any,
) -> "Graph":
"""
Parse an RDF source adding the resulting triples to the Graph.
The source is specified using one of source, location, file or data.
.. caution::
This method can access directly or indirectly requested network or
file resources, for example, when parsing JSON-LD documents with
``@context`` directives that point to a network location.
When processing untrusted or potentially malicious documents,
measures should be taken to restrict network and file access.
For information on available security measures, see the RDFLib
:doc:`Security Considerations </security_considerations>`
documentation.
:Parameters:
- ``source``: An InputSource, file-like object, or string. In the case
of a string the string is the location of the source.
- ``location``: A string indicating the relative or absolute URL of
the source. Graph's absolutize method is used if a relative location
is specified.
- ``file``: A file-like object.
- ``data``: A string containing the data to be parsed.
- ``format``: Used if format can not be determined from source, e.g.
file extension or Media Type. Defaults to text/turtle. Format
support can be extended with plugins, but "xml", "n3" (use for
turtle), "nt" & "trix" are built in.
- ``publicID``: the logical URI to use as the document base. If None
specified the document location is used (at least in the case where
there is a document location).
:Returns:
- self, the graph instance.
Examples:
>>> my_data = '''
... <rdf:RDF
... xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
... xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
... >
... <rdf:Description>
... <rdfs:label>Example</rdfs:label>
... <rdfs:comment>This is really just an example.</rdfs:comment>
... </rdf:Description>
... </rdf:RDF>
... '''
>>> import os, tempfile
>>> fd, file_name = tempfile.mkstemp()
>>> f = os.fdopen(fd, "w")
>>> dummy = f.write(my_data) # Returns num bytes written
>>> f.close()
>>> g = Graph()
>>> result = g.parse(data=my_data, format="application/rdf+xml")
>>> len(g)
2
>>> g = Graph()
>>> result = g.parse(location=file_name, format="application/rdf+xml")
>>> len(g)
2
>>> g = Graph()
>>> with open(file_name, "r") as f:
... result = g.parse(f, format="application/rdf+xml")
>>> len(g)
2
>>> os.remove(file_name)
>>> # default turtle parsing
>>> result = g.parse(data="<http://example.com/a> <http://example.com/a> <http://example.com/a> .")
>>> len(g)
3
"""
source = create_input_source(
source=source,
publicID=publicID,
location=location,
file=file,
data=data,
format=format,
)
if format is None:
format = source.content_type
could_not_guess_format = False
if format is None:
if (
hasattr(source, "file")
and getattr(source.file, "name", None)
and isinstance(source.file.name, str)
):
format = rdflib.util.guess_format(source.file.name)
if format is None:
format = "turtle"
could_not_guess_format = True
parser = plugin.get(format, Parser)()
try:
# TODO FIXME: Parser.parse should have **kwargs argument.
parser.parse(source, self, **args)
except SyntaxError as se:
if could_not_guess_format:
> raise ParserError(
"Could not guess RDF format for %r from file extension so tried Turtle but failed."
"You can explicitly specify format using the format argument."
% source
)
E rdflib.exceptions.ParserError: Could not guess RDF format for <rdflib.parser.StringInputSource object at 0x7ff2376da6b0> from file extension so tried Turtle but failed.You can explicitly specify format using the format argument.
../../../.cache/pypoetry/virtualenvs/python-yaml-ld-9I021CQq-py3.10/lib/python3.10/site-packages/rdflib/graph.py:1497: ParserError
Check failure on line 0 in tests/artifacts/pytest.xml
github-actions / pytest
pytest ► tests.test_specification ► test_expand[expand-manifest#t0051]
Failed test found in:
tests/artifacts/pytest.xml
Error:
test_case = TestCase(test='expand-manifest#t0051', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0051-out.jsonld'), req=None, extract_all_scripts=False)
Raw output
test_case = TestCase(test='expand-manifest#t0051', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0051-out.jsonld'), req=None, extract_all_scripts=False)
@pytest.mark.parametrize('test_case', load_tests(tests.ExpandTest), ids=_get_id)
def test_expand(test_case: TestCase):
if isinstance(test_case.result, str):
try:
expanded_document = yaml_ld.expand(
test_case.input,
extract_all_scripts=test_case.extract_all_scripts,
)
except YAMLLDError as error:
assert error.code == test_case.result
else:
pytest.fail(str(FailureToFail(
test_case=test_case,
expected_error_code=test_case.result,
raw_document=test_case.raw_document,
expanded_document=expanded_document,
)))
elif isinstance(test_case.result, Path):
expected = yaml_ld.parse(test_case.result.read_text())
actual = yaml_ld.expand(
test_case.input,
extract_all_scripts=test_case.extract_all_scripts,
)
> assert actual == expected
E AssertionError: assert [{'@id': '/is...lue': 'ok'}]}] == [{'@id': 'htt...lue': 'ok'}]}]
E At index 0 diff: {'http://example.com/property': [{'@value': 'ok'}], '@id': '/issue/1'} != {'http://example.com/property': [{'@value': 'ok'}], '@id': 'https://w3c.github.io/issue/1'}
E Full diff:
E [
E - {'@id': 'https://w3c.github.io/issue/1',
E + {'@id': '/issue/1',
E 'http://example.com/property': [{'@value': 'ok'}]},
E ]
tests/test_specification.py:92: AssertionError
Check failure on line 0 in tests/artifacts/pytest.xml
github-actions / pytest
pytest ► tests.test_specification ► test_to_rdf[toRdf-manifest#t0020]
Failed test found in:
tests/artifacts/pytest.xml
Error:
test_case = TestCase(test='toRdf-manifest#t0020', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0020-out.nq'), req=None, extract_all_scripts=False)
Raw output
test_case = TestCase(test='toRdf-manifest#t0020', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ython-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0020-out.nq'), req=None, extract_all_scripts=False)
@pytest.mark.parametrize(
'test_case',
load_tests(tests.ToRDFTest),
ids=_get_id,
)
def test_to_rdf(test_case: TestCase):
if isinstance(test_case.result, str):
try:
rdf_document = yaml_ld.to_rdf(
test_case.input,
extract_all_scripts=test_case.extract_all_scripts,
)
except YAMLLDError as error:
assert error.code == test_case.result
return
else:
pytest.fail(str(FailureToFail(
test_case=test_case,
expected_error_code=test_case.result,
raw_document=test_case.raw_document,
expanded_document=rdf_document,
)))
actual_dataset = yaml_ld.to_rdf(test_case.raw_document)
raw_expected_quads = test_case.raw_expected_document
actual_triples = actual_dataset['@default']
actual_graph: Graph = _rdflib_graph_from_pyld_dataset(actual_triples)
expected_graph = Graph().parse(data=raw_expected_quads)
> assert actual_graph.isomorphic(expected_graph)
E AssertionError: assert False
E + where False = <bound method Graph.isomorphic of <Graph identifier=N44ef943ce4d647249042bd4cb0243f93 (<class 'rdflib.graph.Graph'>)>>(<Graph identifier=Nc7b525b1e8a94489bba3f12cf9110534 (<class 'rdflib.graph.Graph'>)>)
E + where <bound method Graph.isomorphic of <Graph identifier=N44ef943ce4d647249042bd4cb0243f93 (<class 'rdflib.graph.Graph'>)>> = <Graph identifier=N44ef943ce4d647249042bd4cb0243f93 (<class 'rdflib.graph.Graph'>)>.isomorphic
tests/test_specification.py:65: AssertionError
Check failure on line 0 in tests/artifacts/pytest.xml
github-actions / pytest
pytest ► tests.test_specification ► test_to_rdf[html-manifest#tr018]
Failed test found in:
tests/artifacts/pytest.xml
Error:
test_case = TestCase(test='html-manifest#tr018', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/...python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/html/r018-out.nq'), req=None, extract_all_scripts=False)
Raw output
test_case = TestCase(test='html-manifest#tr018', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/...python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/html/r018-out.nq'), req=None, extract_all_scripts=False)
@pytest.mark.parametrize(
'test_case',
load_tests(tests.ToRDFTest),
ids=_get_id,
)
def test_to_rdf(test_case: TestCase):
if isinstance(test_case.result, str):
try:
rdf_document = yaml_ld.to_rdf(
test_case.input,
extract_all_scripts=test_case.extract_all_scripts,
)
except YAMLLDError as error:
assert error.code == test_case.result
return
else:
pytest.fail(str(FailureToFail(
test_case=test_case,
expected_error_code=test_case.result,
raw_document=test_case.raw_document,
expanded_document=rdf_document,
)))
actual_dataset = yaml_ld.to_rdf(test_case.raw_document)
raw_expected_quads = test_case.raw_expected_document
actual_triples = actual_dataset['@default']
actual_graph: Graph = _rdflib_graph_from_pyld_dataset(actual_triples)
expected_graph = Graph().parse(data=raw_expected_quads)
> assert actual_graph.isomorphic(expected_graph)
E AssertionError: assert False
E + where False = <bound method Graph.isomorphic of <Graph identifier=N85857180c4f04840a62b9b458aabd265 (<class 'rdflib.graph.Graph'>)>>(<Graph identifier=N626919cab2844c21a0922fbe3dda4a57 (<class 'rdflib.graph.Graph'>)>)
E + where <bound method Graph.isomorphic of <Graph identifier=N85857180c4f04840a62b9b458aabd265 (<class 'rdflib.graph.Graph'>)>> = <Graph identifier=N85857180c4f04840a62b9b458aabd265 (<class 'rdflib.graph.Graph'>)>.isomorphic
tests/test_specification.py:65: AssertionError
Check failure on line 0 in tests/artifacts/pytest.xml
github-actions / pytest
pytest ► tests.test_specification ► test_expand[expand-manifest#t0121]
Failed test found in:
tests/artifacts/pytest.xml
Error:
test_case = TestCase(test='expand-manifest#t0121', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0121-out.jsonld'), req=None, extract_all_scripts=False)
Raw output
test_case = TestCase(test='expand-manifest#t0121', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/0121-out.jsonld'), req=None, extract_all_scripts=False)
@pytest.mark.parametrize('test_case', load_tests(tests.ExpandTest), ids=_get_id)
def test_expand(test_case: TestCase):
if isinstance(test_case.result, str):
try:
expanded_document = yaml_ld.expand(
test_case.input,
extract_all_scripts=test_case.extract_all_scripts,
)
except YAMLLDError as error:
assert error.code == test_case.result
else:
pytest.fail(str(FailureToFail(
test_case=test_case,
expected_error_code=test_case.result,
raw_document=test_case.raw_document,
expanded_document=expanded_document,
)))
elif isinstance(test_case.result, Path):
expected = yaml_ld.parse(test_case.result.read_text())
actual = yaml_ld.expand(
test_case.input,
extract_all_scripts=test_case.extract_all_scripts,
)
> assert actual == expected
E AssertionError: assert [{'@id': 'foo...'allowed'}]}}] == [{'@id': 'htt.../allowed'}]}}]
E At index 0 diff: {'@id': 'foo', '@reverse': {'http://example.org/vocab/@': [{'@id': 'allowed'}], 'http://example.org/vocab/@foo.bar': [{'@id': 'allowed'}]}} != {'@id': 'http://example.org/foo', '@reverse': {'http://example.org/vocab/@': [{'@id': 'http://example.org/allowed'}], 'http://example.org/vocab/@foo.bar': [{'@id': 'http://example.org/allowed'}]}}
E Full diff:
E [
E - {'@id': 'http://example.org/foo',
E + {'@id': 'foo',
E - '@reverse': {'http://example.org/vocab/@': [{'@id': 'http://example.org/allowed'}],
E ? -------------------
E + '@reverse': {'http://example.org/vocab/@': [{'@id': 'allowed'}],
E - 'http://example.org/vocab/@foo.bar': [{'@id': 'http://example.org/allowed'}]}},
E ? -------------------
E + 'http://example.org/vocab/@foo.bar': [{'@id': 'allowed'}]}},
E ]
tests/test_specification.py:92: AssertionError