Fixed expand-manifest#t0089
I hope
#129
645 passed, 242 failed and 0 skipped
❌ tests/artifacts/pytest.xml
887 tests were completed in 48s with 645 passed, 242 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 645✅ | 242❌ | 48s |
❌ 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 0x7f768c93b6d0>
✅ test_empty_value
tests.test_specification
✅ test_to_rdf[toRdf-manifest#tpr34]
✅ test_expand[basic-manifest#cr-well-formed-1-positive]
❌ test_expand[expand-manifest#tso10]
self = <pyld.context_resolver.ContextResolver object at 0x7f768cabf670>
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e112-out.nq'), req=None, extract_all_scripts=False, base=None)
❌ test_to_rdf[toRdf-manifest#te008]
test_case = TestCase(test='toRdf-manifest#te008', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e008-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#tc010]
✅ test_to_rdf[toRdf-manifest#tpr41]
❌ 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...ld-api/tests/toRdf/e089-out.nq'), req=None, extract_all_scripts=False, base=rdflib.term.URIRef('http://example/base/'))
✅ test_to_rdf[toRdf-manifest#t0008]
✅ test_expand[expand-manifest#tpr04]
✅ test_expand[expand-manifest#t0007]
✅ test_to_rdf[toRdf-manifest#tem01]
✅ test_to_rdf[toRdf-manifest#ten03]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/c015-out.nq'), req=None, extract_all_scripts=False, base=None)
❌ test_to_rdf[toRdf-manifest#tm013]
self = <Graph identifier=Ne13011477ce74ef29834c326d7398cfd (<class 'rdflib.graph.Graph'>)>
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/c038-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#te011]
✅ test_expand[expand-manifest#t0033]
✅ test_to_rdf[toRdf-manifest#tc007]
✅ test_expand[expand-manifest#t0049]
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/0078-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#t0009]
✅ test_expand[expand-manifest#ter39]
✅ test_expand[expand-manifest#tpr24]
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/0056-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#twf07]
✅ test_to_rdf[toRdf-manifest#ter36]
❌ test_to_rdf[toRdf-manifest#te101]
self = <Graph identifier=N891123f9e251475488a99c3556e5cf8c (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#ter14]
❌ test_to_rdf[toRdf-manifest#te020]
self = <Graph identifier=Na9763e1a1242484f8664d26044ac6c5e (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#t0023]
✅ test_to_rdf[toRdf-manifest#tjs04]
✅ test_expand[expand-manifest#ten03]
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/c036-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#tli05]
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/0110-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[html-manifest#te015]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/c038-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#tpr09]
✅ test_expand[expand-manifest#tm008]
✅ test_expand[expand-manifest#t0119]
✅ test_expand[expand-manifest#tpr05]
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/0122-out.jsonld'), req=None, extract_all_scripts=False, base=None)
❌ test_to_rdf[toRdf-manifest#tc031]
self = <pyld.context_resolver.ContextResolver object at 0x7f768cb43fa0>
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e030-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#tdi02]
✅ test_to_rdf[toRdf-manifest#tpr40]
✅ test_to_rdf[toRdf-manifest#te016]
✅ test_to_rdf[toRdf-manifest#ter22]
✅ test_expand[expand-manifest#tdi08]
✅ test_expand[expand-manifest#tpr27]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/di06-out.nq'), req=None, extract_all_scripts=False, base=None)
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/in06-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#t0125]
✅ test_expand[expand-manifest#tc013]
✅ test_to_rdf[toRdf-manifest#t0005]
✅ test_expand[expand-manifest#tli01]
✅ test_expand[expand-manifest#t0090]
❌ test_expand[expand-manifest#tso09]
self = <pyld.context_resolver.ContextResolver object at 0x7f768c627c70>
✅ test_to_rdf[toRdf-manifest#tc002]
✅ test_to_rdf[toRdf-manifest#tn004]
✅ test_to_rdf[toRdf-manifest#tli03]
✅ test_to_rdf[html-manifest#tr010]
✅ test_to_rdf[toRdf-manifest#tpi03]
✅ test_expand[expand-manifest#tn007]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e088-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tin08]
✅ test_to_rdf[toRdf-manifest#ter44]
✅ test_expand[expand-manifest#t0107]
✅ test_to_rdf[html-manifest#tr001]
✅ test_to_rdf[toRdf-manifest#tpr17]
✅ test_to_rdf[toRdf-manifest#ter41]
✅ test_to_rdf[toRdf-manifest#tc032]
❌ test_expand[remote-doc-manifest#t0002]
test_case = TestCase(test='remote-doc-manifest#t0002', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifica...-yaml-ld/specifications/json-ld-api/tests/remote-doc/0002-out.jsonld'), req=None, extract_all_scripts=False, base=None)
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e013-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#ten02]
✅ test_expand[expand-manifest#tc021]
✅ test_expand[expand-manifest#t0082]
✅ test_expand[expand-manifest#t0024]
✅ test_to_rdf[toRdf-manifest#t0036]
✅ test_to_rdf[toRdf-manifest#tli02]
✅ test_expand[expand-manifest#tn008]
✅ test_expand[expand-manifest#t0011]
✅ test_expand[expand-manifest#tpr26]
✅ test_expand[expand-manifest#ter22]
✅ test_expand[expand-manifest#tli08]
❌ test_expand[expand-manifest#t0131]
test_case = TestCase(test='expand-manifest#t0131', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...thon-yaml-ld/specifications/json-ld-api/tests/expand/0131-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#t0015]
❌ test_to_rdf[toRdf-manifest#t0113]
self = <Graph identifier=Nf00086c5da974dfeb6dd3ecf4418a4b4 (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#tjs02]
❌ test_to_rdf[toRdf-manifest#tso06]
self = <pyld.context_resolver.ContextResolver object at 0x7f768c6c18d0>
✅ test_expand[expand-manifest#ter01]
✅ test_to_rdf[toRdf-manifest#ter15]
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/0028-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#t0120]
✅ test_to_rdf[toRdf-manifest#te017]
❌ test_to_rdf[toRdf-manifest#te021]
self = <Graph identifier=N5dc54bfe39074bdb8a215151afba1e46 (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#tli09]
✅ test_expand[expand-manifest#tc016]
✅ test_expand[expand-manifest#tpr17]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0124-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#tm020]
✅ test_expand[expand-manifest#ter28]
✅ test_to_rdf[toRdf-manifest#tm004]
✅ test_expand[expand-manifest#tm015]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0130-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tin07]
❌ 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...-yaml-ld/specifications/json-ld-api/tests/remote-doc/0013-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#tpr16]
✅ test_to_rdf[toRdf-manifest#tc008]
✅ test_expand[expand-manifest#tp001]
✅ test_expand[expand-manifest#tc010]
❌ 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/...api/tests/html/r019-out.nq'), req=None, extract_all_scripts=False, base=rdflib.term.URIRef('http://a.example.com/doc'))
✅ test_to_rdf[html-manifest#tr015]
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/0112-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tc026]
✅ test_expand[expand-manifest#t0100]
✅ test_to_rdf[toRdf-manifest#ter26]
✅ test_expand[expand-manifest#tli03]
✅ test_to_rdf[toRdf-manifest#te120]
✅ test_expand[expand-manifest#t0089]
✅ test_to_rdf[toRdf-manifest#tli09]
❌ test_to_rdf[toRdf-manifest#te079]
self = <Graph identifier=Na7ce00e4df5144cd8663b24eac6e0b44 (<class 'rdflib.graph.Graph'>)>
✅ test_to_rdf[toRdf-manifest#te032]
❌ test_expand[expand-manifest#tso13]
self = <pyld.context_resolver.ContextResolver object at 0x7f768c975cf0>
✅ test_to_rdf[toRdf-manifest#tp004]
✅ test_to_rdf[toRdf-manifest#tc035]
❌ test_to_rdf[toRdf-manifest#te122]
self = <pyld.jsonld.JsonLdProcessor object at 0x7f768cd28280>
✅ test_expand[expand-manifest#ter38]
✅ test_to_rdf[toRdf-manifest#tso02]
✅ test_expand[expand-manifest#ter30]
❌ test_to_rdf[toRdf-manifest#t0123]
test_case = TestCase(test='toRdf-manifest#t0123', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0123-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#ter09]
✅ test_to_rdf[toRdf-manifest#ten06]
✅ test_expand[basic-manifest#aa-cycles-1-positive]
✅ test_expand[expand-manifest#tjs07]
✅ test_expand[expand-manifest#ter34]
❌ test_expand[expand-manifest#t0129]
test_case = TestCase(test='expand-manifest#t0129', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...thon-yaml-ld/specifications/json-ld-api/tests/expand/0129-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#ter37]
✅ test_to_rdf[toRdf-manifest#tc013]
✅ test_expand[html-manifest#te001]
✅ test_expand[expand-manifest#tjs09]
✅ test_expand[expand-manifest#t0091]
✅ test_to_rdf[toRdf-manifest#tpr14]
✅ test_to_rdf[toRdf-manifest#te042]
❌ 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...-ld-api/tests/toRdf/li14-out.nq'), req=None, extract_all_scripts=False, base=rdflib.term.URIRef('http://example.com/'))
✅ test_expand[expand-manifest#t0118]
❌ test_to_rdf[toRdf-manifest#te035]
test_case = TestCase(test='toRdf-manifest#te035', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e035-out.nq'), req=None, extract_all_scripts=False, base=None)
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/in06-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tm003]
✅ test_expand[expand-manifest#tli06]
✅ test_expand[expand-manifest#t0069]
❌ test_to_rdf[toRdf-manifest#tdi07]
test_case = TestCase(test='toRdf-manifest#tdi07', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/di07-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#ter49]
✅ test_to_rdf[toRdf-manifest#ten05]
❌ test_to_rdf[toRdf-manifest#tm014]
self = <Graph identifier=Nbdd47b52ea7244fc925a2c99120feea0 (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#ter43]
✅ test_to_rdf[toRdf-manifest#tc027]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e007-out.nq'), req=None, extract_all_scripts=False, base=None)
❌ test_expand[expand-manifest#ter05]
self = <pyld.context_resolver.ContextResolver object at 0x7f768cd293f0>
✅ test_expand[expand-manifest#tin05]
✅ test_to_rdf[toRdf-manifest#tc037]
✅ test_expand[expand-manifest#t0095]
✅ test_expand[expand-manifest#t0010]
✅ test_to_rdf[toRdf-manifest#t0022]
✅ test_expand[expand-manifest#tp004]
❌ test_to_rdf[toRdf-manifest#ter56]
test_case = TestCase(test='toRdf-manifest#ter56', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/json-ld-api/tests/expand/er56-in.jsonld'), result='keyword redefinition', req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#t0002]
❌ test_to_rdf[toRdf-manifest#te100]
self = <Graph identifier=Nec2b85cf1ed64e6a8b70831c645f7a45 (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#tdi05]
✅ test_to_rdf[html-manifest#tr016]
✅ test_expand[expand-manifest#ter07]
✅ test_to_rdf[toRdf-manifest#ter20]
❌ test_expand[expand-manifest#tso06]
self = <pyld.context_resolver.ContextResolver object at 0x7f768c5426b0>
✅ test_expand[expand-manifest#ter06]
❌ test_expand[html-manifest#te022]
test_case = TestCase(test='html-manifest#te022', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/...python-yaml-ld/specifications/json-ld-api/tests/html/e022-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#te063]
✅ test_expand[expand-manifest#tc035]
✅ test_expand[expand-manifest#tjs17]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0131-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tpr38]
✅ test_expand[expand-manifest#tm019]
✅ test_expand[expand-manifest#tpr12]
✅ test_to_rdf[toRdf-manifest#te041]
✅ test_to_rdf[toRdf-manifest#tjs23]
✅ test_expand[expand-manifest#t0021]
✅ test_to_rdf[toRdf-manifest#ter40]
✅ test_to_rdf[toRdf-manifest#te012]
✅ test_to_rdf[toRdf-manifest#tc021]
❌ test_to_rdf[toRdf-manifest#te093]
self = <Graph identifier=N4dc13578d4534d01b942cd1552504ac5 (<class 'rdflib.graph.Graph'>)>
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e040-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#tin05]
❌ test_to_rdf[toRdf-manifest#te126]
self = <pyld.context_resolver.ContextResolver object at 0x7f768cabf730>
✅ test_to_rdf[toRdf-manifest#te001]
❌ 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...ld-api/tests/toRdf/e076-out.nq'), req=None, extract_all_scripts=False, base=rdflib.term.URIRef('http://example/base/'))
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/c024-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#te003]
✅ test_expand[expand-manifest#ter15]
✅ test_to_rdf[toRdf-manifest#tpr06]
✅ test_expand[expand-manifest#tjs12]
✅ test_to_rdf[toRdf-manifest#tn007]
✅ test_to_rdf[toRdf-manifest#tjs09]
✅ test_to_rdf[toRdf-manifest#tc011]
✅ test_expand[expand-manifest#tpi02]
❌ 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/...-ld/python-yaml-ld/specifications/json-ld-api/tests/html/r022-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tpr35]
✅ test_expand[expand-manifest#tm012]
✅ test_expand[expand-manifest#tdi04]
✅ test_to_rdf[toRdf-manifest#tjs20]
✅ test_expand[basic-manifest#cr-well-formed-2-negative]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/c024-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#tc022]
✅ test_expand[expand-manifest#tc017]
✅ test_expand[expand-manifest#t0044]
✅ test_expand[expand-manifest#tm009]
✅ test_to_rdf[toRdf-manifest#tpr36]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e066-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#tc004]
✅ test_expand[expand-manifest#t0117]
✅ test_expand[html-manifest#te002]
✅ test_expand[expand-manifest#tc033]
❌ test_to_rdf[toRdf-manifest#te099]
self = <Graph identifier=N5337dbbb38854eb6b4bc391a10c52be8 (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#tc023]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/di12-out.nq'), req=None, extract_all_scripts=False, base=None)
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/di05-out.nq'), req=None, extract_all_scripts=False, base=None)
❌ test_to_rdf[toRdf-manifest#tjs13]
test_case = TestCase(test='toRdf-manifest#tjs13', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/js13-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tpi05]
✅ test_to_rdf[toRdf-manifest#tp003]
❌ test_to_rdf[toRdf-manifest#te077]
test_case = TestCase(test='toRdf-manifest#te077', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e077-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#t0036]
✅ test_expand[expand-manifest#ter26]
❌ test_to_rdf[toRdf-manifest#te097]
self = <Graph identifier=N05849ad1112d4d40bd6db106d9b57811 (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#tn004]
✅ test_expand[expand-manifest#tjs03]
❌ test_to_rdf[toRdf-manifest#te095]
self = <Graph identifier=N2caf493dfc55492ebdef835802c0f3ae (<class 'rdflib.graph.Graph'>)>
✅ test_to_rdf[toRdf-manifest#tjs15]
✅ test_expand[expand-manifest#ter18]
✅ test_expand[basic-manifest#cr-utf8-2-negative]
✅ test_to_rdf[toRdf-manifest#te124]
✅ test_expand[expand-manifest#tpr32]
✅ test_expand[expand-manifest#t0014]
✅ test_expand[expand-manifest#ter13]
❌ test_to_rdf[toRdf-manifest#tc025]
self = <Graph identifier=N0598c18b7c1740809a778b0d0311a35d (<class 'rdflib.graph.Graph'>)>
✅ test_to_rdf[toRdf-manifest#tli01]
✅ test_to_rdf[toRdf-manifest#tn006]
✅ test_to_rdf[toRdf-manifest#tjs18]
✅ test_expand[expand-manifest#tin03]
✅ test_to_rdf[toRdf-manifest#ter55]
✅ test_expand[html-manifest#te016]
✅ test_to_rdf[toRdf-manifest#t0003]
✅ test_expand[expand-manifest#t0098]
✅ test_to_rdf[toRdf-manifest#te117]
✅ test_to_rdf[toRdf-manifest#tpr35]
✅ test_expand[expand-manifest#ten06]
✅ test_expand[expand-manifest#tem01]
✅ test_to_rdf[toRdf-manifest#ter30]
✅ test_expand[expand-manifest#t0037]
❌ test_to_rdf[toRdf-manifest#tpr43]
self = <Graph identifier=N9eb22b3b7b9f47a19dbbb02d5c35090c (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#tjs14]
✅ test_to_rdf[toRdf-manifest#t0025]
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/0040-out.jsonld'), req=None, extract_all_scripts=False, base=None)
❌ 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...ld-api/tests/toRdf/e090-out.nq'), req=None, extract_all_scripts=False, base=rdflib.term.URIRef('http://example/base/'))
✅ test_to_rdf[toRdf-manifest#tpr19]
✅ test_expand[expand-manifest#t0020]
✅ test_to_rdf[toRdf-manifest#tpr39]
✅ test_to_rdf[toRdf-manifest#ter17]
✅ test_expand[html-manifest#te005]
✅ test_expand[basic-manifest#aa-cycles-3-positive]
❌ test_to_rdf[toRdf-manifest#te082]
self = <Graph identifier=N85658a57f42044239d9db73f3fc9ee55 (<class 'rdflib.graph.Graph'>)>
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0016-out.nq'), req=None, extract_all_scripts=False, base=None)
❌ 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...-yaml-ld/specifications/json-ld-api/tests/remote-doc/la01-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tin02]
✅ test_expand[expand-manifest#tpr19]
❌ test_to_rdf[toRdf-manifest#t0027]
self = <Graph identifier=N5b07c1aa720a4ec5b17305e0bb381a7c (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#t0080]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e092-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tm020]
✅ test_expand[expand-manifest#t0041]
❌ test_to_rdf[toRdf-manifest#tso12]
self = <pyld.context_resolver.ContextResolver object at 0x7f768c955300>
✅ test_expand[expand-manifest#t0012]
✅ test_to_rdf[toRdf-manifest#tpr11]
✅ test_to_rdf[toRdf-manifest#tjs07]
❌ test_to_rdf[toRdf-manifest#tso03]
self = <pyld.context_resolver.ContextResolver object at 0x7f768c541570>
✅ test_to_rdf[toRdf-manifest#tdi01]
✅ test_to_rdf[toRdf-manifest#tec02]
✅ test_to_rdf[toRdf-manifest#twf03]
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/m018-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[basic-manifest#cr-comments-1-positive]
✅ test_to_rdf[toRdf-manifest#te045]
✅ test_expand[expand-manifest#tjs16]
✅ test_to_rdf[toRdf-manifest#t0032]
✅ test_to_rdf[toRdf-manifest#ter33]
✅ test_expand[expand-manifest#t0102]
❌ test_to_rdf[toRdf-manifest#tpi07]
test_case = TestCase(test='toRdf-manifest#tpi07', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/pi07-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tjs15]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e002-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[basic-manifest#two-documents-from-stream]
✅ test_expand[expand-manifest#tpr36]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0120-out.nq'), req=None, extract_all_scripts=False, base=None)
❌ test_expand[basic-manifest#html-dedent-not-needed]
test_case = TestCase(test='basic-manifest#html-dedent-not-needed', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-...ython-yaml-ld/specifications/yaml-ld/tests/cases/html/stream.yamlld'), req='must', extract_all_scripts=True, base=None)
✅ test_to_rdf[toRdf-manifest#t0019]
❌ 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...-yaml-ld/specifications/json-ld-api/tests/remote-doc/0001-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tpr33]
✅ test_expand[html-manifest#te007]
✅ test_to_rdf[toRdf-manifest#tpr18]
✅ test_to_rdf[toRdf-manifest#t0026]
✅ test_expand[basic-manifest#cr-well-formed-3-negative]
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/0109-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#t0004]
✅ test_expand[expand-manifest#ter49]
❌ test_to_rdf[toRdf-manifest#tso13]
self = <pyld.context_resolver.ContextResolver object at 0x7f768c83b190>
✅ test_expand[expand-manifest#t0045]
✅ test_expand[expand-manifest#tm011]
✅ test_to_rdf[toRdf-manifest#tc014]
❌ 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/...-ld/python-yaml-ld/specifications/json-ld-api/tests/html/r018-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tin04]
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/pi11-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[basic-manifest#cir-scalar-i18n-1-positive]
✅ test_to_rdf[toRdf-manifest#te046]
✅ test_expand[expand-manifest#tjs23]
❌ 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...-ld-api/tests/toRdf/m005-out.nq'), req=None, extract_all_scripts=False, base=rdflib.term.URIRef('http://example.org/'))
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/0059-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tpr41]
✅ test_to_rdf[toRdf-manifest#te022]
✅ test_expand[expand-manifest#tc019]
✅ test_expand[expand-manifest#tn001]
❌ test_to_rdf[toRdf-manifest#ter05]
self = <pyld.context_resolver.ContextResolver object at 0x7f768c58f2e0>
❌ 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/...l-ld/python-yaml-ld/specifications/json-ld-api/tests/html/r005-out.nq'), req=None, extract_all_scripts=True, base=None)
✅ test_expand[expand-manifest#ter20]
✅ test_to_rdf[toRdf-manifest#te037]
✅ test_to_rdf[toRdf-manifest#ter29]
✅ test_expand[expand-manifest#t0074]
✅ test_expand[expand-manifest#t0108]
✅ test_to_rdf[toRdf-manifest#tc030]
✅ test_to_rdf[toRdf-manifest#ter51]
✅ test_expand[expand-manifest#ter08]
✅ test_to_rdf[toRdf-manifest#ter39]
✅ test_to_rdf[toRdf-manifest#t0010]
✅ test_expand[expand-manifest#tpr20]
❌ test_to_rdf[toRdf-manifest#te105]
self = <Graph identifier=Na4db8cc8c18645908d39d4cd86eb3c4b (<class 'rdflib.graph.Graph'>)>
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e059-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#tpr04]
❌ test_to_rdf[html-manifest#tr007]
test_case = TestCase(test='html-manifest#tr007', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/...l-ld/python-yaml-ld/specifications/json-ld-api/tests/html/r007-out.nq'), req=None, extract_all_scripts=True, base=None)
✅ test_to_rdf[toRdf-manifest#t0001]
✅ test_to_rdf[toRdf-manifest#tp001]
✅ test_expand[expand-manifest#t0047]
✅ test_expand[expand-manifest#ten01]
❌ test_expand[expand-manifest#tso08]
self = <pyld.context_resolver.ContextResolver object at 0x7f768c5532b0>
✅ test_to_rdf[toRdf-manifest#tpr03]
✅ test_expand[expand-manifest#t0058]
✅ test_to_rdf[toRdf-manifest#tli06]
❌ test_to_rdf[toRdf-manifest#te084]
self = <Graph identifier=Nea5e01c32af94c98a75a5dc4e4af7219 (<class 'rdflib.graph.Graph'>)>
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e027-out.nq'), req=None, extract_all_scripts=False, base=None)
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/m009-out.nq'), req=None, extract_all_scripts=False, base=None)
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/0050-out.jsonld'), req=None, extract_all_scripts=False, base=None)
❌ test_expand[expand-manifest#tso07]
self = <pyld.context_resolver.ContextResolver object at 0x7f768c553b50>
✅ test_expand[expand-manifest#tpr25]
✅ test_to_rdf[toRdf-manifest#tc005]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e051-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tpr43]
✅ test_to_rdf[toRdf-manifest#te025]
✅ test_to_rdf[toRdf-manifest#tjs02]
✅ test_to_rdf[toRdf-manifest#tpr10]
✅ test_expand[expand-manifest#t0085]
✅ test_to_rdf[toRdf-manifest#tc020]
✅ test_to_rdf[toRdf-manifest#ter10]
❌ 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/...-ld/python-yaml-ld/specifications/json-ld-api/tests/html/r006-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tec01]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/pi08-out.nq'), req=None, extract_all_scripts=False, base=None)
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/c015-out.jsonld'), req=None, extract_all_scripts=False, base=None)
❌ test_to_rdf[toRdf-manifest#tm015]
self = <Graph identifier=N06ff8e3979ad4a27b2fd670bf65ebe34 (<class 'rdflib.graph.Graph'>)>
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/0005-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#tc026]
✅ test_to_rdf[toRdf-manifest#tin01]
✅ test_to_rdf[toRdf-manifest#tm001]
✅ test_expand[expand-manifest#ter04]
✅ test_expand[expand-manifest#tpr37]
✅ test_expand[expand-manifest#tjs04]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e048-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#t0027]
✅ test_to_rdf[toRdf-manifest#te054]
❌ test_to_rdf[toRdf-manifest#t0114]
self = <Graph identifier=N00a13f7701824707b4e2065f95c549f1 (<class 'rdflib.graph.Graph'>)>
✅ test_to_rdf[toRdf-manifest#tpr42]
✅ test_expand[expand-manifest#tpr40]
✅ test_expand[expand-manifest#t0123]
✅ test_to_rdf[toRdf-manifest#ter09]
✅ test_expand[expand-manifest#t0114]
❌ 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...ests/remote-doc/0012-in.json'), result='multiple context link headers', req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tpr08]
✅ test_to_rdf[toRdf-manifest#ter52]
✅ test_expand[expand-manifest#t0124]
✅ test_to_rdf[toRdf-manifest#tjs06]
✅ test_expand[expand-manifest#t0055]
❌ 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...-ld-api/tests/toRdf/li11-out.nq'), req=None, extract_all_scripts=False, base=rdflib.term.URIRef('http://example.com/'))
✅ test_expand[expand-manifest#tpi04]
✅ test_expand[expand-manifest#tpr16]
✅ test_expand[expand-manifest#tjs01]
✅ test_to_rdf[toRdf-manifest#tep03]
✅ test_expand[expand-manifest#t0004]
❌ test_expand[remote-doc-manifest#t0006]
test_case = TestCase(test='remote-doc-manifest#t0006', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifica...-yaml-ld/specifications/json-ld-api/tests/remote-doc/0001-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[html-manifest#tr014]
✅ test_to_rdf[toRdf-manifest#twf01]
✅ test_expand[expand-manifest#tm002]
❌ test_expand[expand-manifest#tso03]
self = <pyld.context_resolver.ContextResolver object at 0x7f768bc5afb0>
✅ test_to_rdf[toRdf-manifest#tpr29]
✅ test_to_rdf[toRdf-manifest#te123]
✅ test_to_rdf[toRdf-manifest#ter34]
❌ test_expand[expand-manifest#t0128]
self = <pyld.context_resolver.ContextResolver object at 0x7f768c58c5e0>
✅ test_to_rdf[toRdf-manifest#tpi02]
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/0092-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#ter19]
✅ test_to_rdf[toRdf-manifest#t0002]
✅ test_expand[expand-manifest#tpi03]
✅ test_expand[expand-manifest#t0053]
✅ test_expand[expand-manifest#t0081]
✅ test_expand[expand-manifest#t0097]
✅ test_to_rdf[toRdf-manifest#t0012]
✅ test_expand[expand-manifest#t0083]
✅ test_expand[expand-manifest#tp003]
✅ test_expand[basic-manifest#cir-scalar-other-1-positive]
✅ test_expand[expand-manifest#t0113]
❌ test_to_rdf[toRdf-manifest#te102]
self = <Graph identifier=Nb167e00dfd4040d28fe1405f5483d35c (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#t0101]
✅ test_to_rdf[toRdf-manifest#ter23]
❌ 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...-yaml-ld/specifications/json-ld-api/tests/remote-doc/0003-out.jsonld'), req=None, extract_all_scripts=False, base=None)
❌ 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...-ld-api/tests/toRdf/li13-out.nq'), req=None, extract_all_scripts=False, base=rdflib.term.URIRef('http://example.com/'))
✅ test_expand[expand-manifest#t0103]
✅ test_expand[expand-manifest#tpr03]
✅ test_to_rdf[toRdf-manifest#tm008]
❌ test_to_rdf[toRdf-manifest#t0116]
self = <Graph identifier=N209e5683c76347bd983ced4e60605295 (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#tl001]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0127-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#t0105]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0017-out.nq'), req=None, extract_all_scripts=False, base=None)
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e111-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tdi02]
✅ test_to_rdf[toRdf-manifest#ter35]
✅ test_to_rdf[toRdf-manifest#tpr05]
✅ test_to_rdf[toRdf-manifest#ter06]
✅ test_expand[expand-manifest#tpr14]
✅ test_expand[remote-doc-manifest#t0004]
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/0062-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#t0003]
✅ test_expand[expand-manifest#tdi03]
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/0077-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tjs20]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e028-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tn005]
✅ test_expand[expand-manifest#tc014]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0128-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#trt01]
✅ test_expand[expand-manifest#t0068]
✅ test_to_rdf[toRdf-manifest#te118]
✅ test_to_rdf[toRdf-manifest#tjs10]
✅ test_expand[expand-manifest#tpr42]
✅ test_expand[expand-manifest#ter29]
✅ test_to_rdf[toRdf-manifest#ter43]
✅ test_expand[expand-manifest#tli10]
❌ test_to_rdf[toRdf-manifest#tso05]
self = <pyld.context_resolver.ContextResolver object at 0x7f768c3746d0>
✅ test_to_rdf[toRdf-manifest#tm003]
✅ test_expand[expand-manifest#tc004]
✅ test_expand[expand-manifest#tc028]
❌ test_to_rdf[toRdf-manifest#te128]
self = <pyld.context_resolver.ContextResolver object at 0x7f768c546230>
✅ test_expand[expand-manifest#tpr11]
✅ test_to_rdf[toRdf-manifest#tc009]
✅ test_to_rdf[toRdf-manifest#te069]
❌ test_expand[expand-manifest#tso05]
self = <pyld.context_resolver.ContextResolver object at 0x7f768c44d810>
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/pi10-out.nq'), req=None, extract_all_scripts=False, base=None)
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e029-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[html-manifest#tr011]
❌ 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...-yaml-ld/specifications/json-ld-api/tests/remote-doc/la05-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#tjs17]
✅ test_to_rdf[toRdf-manifest#te052]
✅ test_expand[expand-manifest#t0013]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e056-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#tpi05]
✅ test_expand[expand-manifest#tc008]
✅ test_to_rdf[toRdf-manifest#tpr23]
❌ test_to_rdf[toRdf-manifest#tc034]
self = <pyld.context_resolver.ContextResolver object at 0x7f768c5721d0>
❌ test_to_rdf[html-manifest#tr021]
test_case = TestCase(test='html-manifest#tr021', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/...api/tests/html/r021-out.nq'), req=None, extract_all_scripts=False, base=rdflib.term.URIRef('http://a.example.com/doc'))
✅ test_expand[html-manifest#te012]
❌ test_expand[expand-manifest#t0127]
self = <pyld.context_resolver.ContextResolver object at 0x7f768c83bb80>
✅ test_to_rdf[toRdf-manifest#te047]
✅ test_expand[expand-manifest#t0079]
❌ test_expand[expand-manifest#t0066]
test_case = TestCase(test='expand-manifest#t0066', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...thon-yaml-ld/specifications/json-ld-api/tests/expand/0066-out.jsonld'), req=None, extract_all_scripts=False, base=None)
❌ test_to_rdf[toRdf-manifest#t0030]
self = <Graph identifier=Nf48884cb911c41658943b5d21a67451f (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#tc002]
✅ test_to_rdf[toRdf-manifest#tpi04]
✅ test_expand[expand-manifest#tli04]
✅ test_expand[expand-manifest#t0094]
✅ test_to_rdf[toRdf-manifest#t0034]
✅ test_to_rdf[toRdf-manifest#tjs22]
✅ test_to_rdf[toRdf-manifest#te033]
✅ test_expand[expand-manifest#tc012]
✅ test_to_rdf[toRdf-manifest#tjs12]
❌ 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...-yaml-ld/specifications/json-ld-api/tests/remote-doc/0001-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#tpr38]
❌ test_expand[expand-manifest#tc034]
self = <pyld.context_resolver.ContextResolver object at 0x7f768bf89b10>
✅ test_to_rdf[toRdf-manifest#tin04]
✅ test_to_rdf[toRdf-manifest#t0014]
❌ test_to_rdf[toRdf-manifest#te085]
self = <Graph identifier=N9513e6b8c1f14696a8a533e2ac576de8 (<class 'rdflib.graph.Graph'>)>
✅ test_to_rdf[toRdf-manifest#tpr01]
✅ test_to_rdf[toRdf-manifest#tc003]
✅ test_expand[expand-manifest#ter53]
✅ test_expand[expand-manifest#tc007]
✅ test_expand[expand-manifest#tc030]
✅ test_expand[expand-manifest#t0008]
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/m017-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tin01]
✅ test_expand[expand-manifest#tpr29]
❌ test_to_rdf[toRdf-manifest#t0006]
test_case = TestCase(test='toRdf-manifest#t0006', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0006-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#twf04]
✅ test_expand[expand-manifest#tpr21]
✅ test_expand[expand-manifest#tc003]
❌ 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, base=None)
❌ test_to_rdf[toRdf-manifest#te094]
self = <Graph identifier=N5766c46c598b46ff85542cf2a634379e (<class 'rdflib.graph.Graph'>)>
✅ test_to_rdf[toRdf-manifest#ter14]
❌ test_to_rdf[toRdf-manifest#t0129]
test_case = TestCase(test='toRdf-manifest#t0129', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0129-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#tpr20]
✅ test_expand[expand-manifest#tli05]
✅ test_expand[expand-manifest#tpr34]
✅ test_expand[expand-manifest#ter35]
❌ test_to_rdf[toRdf-manifest#te087]
self = <Graph identifier=Ne2e930d7608248fa82552cb083d0d8fa (<class 'rdflib.graph.Graph'>)>
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e121-out.nq'), req=None, extract_all_scripts=False, base=None)
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/wf05-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#te049]
✅ test_to_rdf[toRdf-manifest#te119]
✅ test_to_rdf[toRdf-manifest#tpr33]
✅ test_to_rdf[html-manifest#tr013]
❌ test_to_rdf[toRdf-manifest#tc036]
test_case = TestCase(test='toRdf-manifest#tc036', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/c036-out.nq'), req=None, extract_all_scripts=False, base=None)
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0122-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#tli04]
✅ test_expand[expand-manifest#tc032]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e057-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#tm002]
✅ test_expand[expand-manifest#tpr15]
✅ test_to_rdf[toRdf-manifest#te039]
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/0051-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#ter44]
✅ test_to_rdf[toRdf-manifest#tm007]
✅ test_expand[expand-manifest#tpr02]
❌ test_expand[remote-doc-manifest#t0010]
test_case = TestCase(test='remote-doc-manifest#t0010', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifica...-yaml-ld/specifications/json-ld-api/tests/remote-doc/0010-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#te004]
❌ test_to_rdf[toRdf-manifest#te091]
test_case = TestCase(test='toRdf-manifest#te091', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld-api/tests/toRdf/e091-out.nq'), req=None, extract_all_scripts=False, base=rdflib.term.URIRef('http://example/base/'))
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e109-out.nq'), req=None, extract_all_scripts=False, base=None)
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/di04-out.nq'), req=None, extract_all_scripts=False, base=None)
❌ test_to_rdf[toRdf-manifest#tso09]
self = <pyld.context_resolver.ContextResolver object at 0x7f768c3f13c0>
✅ test_expand[expand-manifest#tjs11]
❌ test_to_rdf[toRdf-manifest#te083]
self = <Graph identifier=N670553e8bc5149d191bc76a941e242a2 (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#tin09]
✅ test_to_rdf[toRdf-manifest#ter38]
✅ test_expand[expand-manifest#ter33]
✅ test_to_rdf[toRdf-manifest#tn008]
✅ test_expand[expand-manifest#tpr28]
✅ test_to_rdf[toRdf-manifest#tpr26]
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/0111-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#t0001]
✅ test_to_rdf[toRdf-manifest#tc016]
✅ test_expand[expand-manifest#tjs18]
✅ test_expand[basic-manifest#cir-mapping-key-2-negative]
✅ test_expand[expand-manifest#tjs19]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e034-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[toRdf-manifest#te015]
❌ test_expand[basic-manifest#html-and-yaml-streams]
test_case = TestCase(test='basic-manifest#html-and-yaml-streams', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-l...ython-yaml-ld/specifications/yaml-ld/tests/cases/html/stream.yamlld'), req='must', extract_all_scripts=True, base=None)
❌ 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/...python-yaml-ld/specifications/json-ld-api/tests/html/e018-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[basic-manifest#cir-scalar-core-1-positive]
✅ test_to_rdf[toRdf-manifest#tpr28]
✅ test_expand[expand-manifest#tc020]
✅ test_expand[expand-manifest#t0025]
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/0060-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#t0086]
❌ test_to_rdf[toRdf-manifest#te106]
self = <Graph identifier=Nf067e066d5444a9694565c1df142c2b1 (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#t0072]
✅ test_to_rdf[toRdf-manifest#twf02]
✅ test_to_rdf[toRdf-manifest#te065]
✅ test_to_rdf[toRdf-manifest#tdi03]
✅ test_to_rdf[toRdf-manifest#te043]
✅ test_expand[expand-manifest#tn003]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e060-out.nq'), req=None, extract_all_scripts=False, base=None)
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0018-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tm013]
❌ test_expand[expand-manifest#ter56]
test_case = TestCase(test='expand-manifest#ter56', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...on-ld-api/tests/expand/er56-in.jsonld'), result='keyword redefinition', req=None, extract_all_scripts=False, base=None)
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/pi08-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#t0052]
✅ test_to_rdf[toRdf-manifest#tpr37]
✅ test_to_rdf[toRdf-manifest#te055]
✅ test_to_rdf[toRdf-manifest#te058]
✅ test_expand[expand-manifest#t0032]
✅ test_expand[expand-manifest#t0065]
✅ test_expand[basic-manifest#aa-cycles-2-negative]
❌ test_to_rdf[html-manifest#tr004]
self = <Graph identifier=Nc26c9a74c4734f9cb785e2c39e7507e8 (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#ter31]
✅ test_expand[expand-manifest#tpr18]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/m010-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tc018]
❌ test_to_rdf[toRdf-manifest#t0029]
self = <Graph identifier=N97d2fb79c1244b9188c41990df8c4e88 (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#tpr31]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/pi09-out.nq'), req=None, extract_all_scripts=False, base=None)
❌ test_to_rdf[toRdf-manifest#te104]
self = <Graph identifier=N5712c25907ff45a59a0c8cf67554c715 (<class 'rdflib.graph.Graph'>)>
✅ test_expand[expand-manifest#t0054]
❌ 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/...tests/html/e020-out.jsonld'), req=None, extract_all_scripts=False, base=rdflib.term.URIRef('http://a.example.com/doc'))
❌ test_to_rdf[toRdf-manifest#tm016]
self = <Graph identifier=Ne880abcc04f149d58c136be5f6f2e88f (<class 'rdflib.graph.Graph'>)>
✅ test_to_rdf[toRdf-manifest#ter27]
✅ test_to_rdf[toRdf-manifest#ttn02]
✅ test_to_rdf[toRdf-manifest#ter19]
✅ test_expand[expand-manifest#t0093]
✅ test_expand[expand-manifest#tli07]
❌ test_expand[expand-manifest#tpi09]
test_case = TestCase(test='expand-manifest#tpi09', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...thon-yaml-ld/specifications/json-ld-api/tests/expand/pi09-out.jsonld'), req=None, extract_all_scripts=False, base=None)
❌ test_to_rdf[toRdf-manifest#tso10]
self = <pyld.context_resolver.ContextResolver object at 0x7f768cd372e0>
✅ test_expand[basic-manifest#cir-document-content-1-negative]
✅ test_expand[expand-manifest#ter11]
❌ test_to_rdf[toRdf-manifest#tpi06]
test_case = TestCase(test='toRdf-manifest#tpi06', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/pi06-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tjs10]
✅ test_to_rdf[toRdf-manifest#tpr21]
✅ test_expand[expand-manifest#t0076]
✅ test_expand[html-manifest#te011]
✅ test_expand[expand-manifest#tc006]
✅ test_to_rdf[toRdf-manifest#t0024]
❌ test_to_rdf[html-manifest#tr020]
test_case = TestCase(test='html-manifest#tr020', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications/...api/tests/html/r020-out.nq'), req=None, extract_all_scripts=False, base=rdflib.term.URIRef('http://a.example.com/doc'))
✅ test_to_rdf[basic-manifest#cir-scalar-core-2-positive]
❌ test_to_rdf[toRdf-manifest#te050]
test_case = TestCase(test='toRdf-manifest#te050', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e050-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#ter36]
✅ test_to_rdf[toRdf-manifest#te125]
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/0088-out.jsonld'), req=None, extract_all_scripts=False, base=None)
❌ test_to_rdf[toRdf-manifest#te098]
self = <Graph identifier=Na3dca35251fb455898a3ef10ad14bb0c (<class 'rdflib.graph.Graph'>)>
❌ test_to_rdf[toRdf-manifest#te108]
self = <Graph identifier=N64a2cfdb6c47421cbe2d9662866eac53 (<class 'rdflib.graph.Graph'>)>
✅ test_expand[basic-manifest#cir-mapping-key-3-negative]
✅ test_expand[expand-manifest#tjs21]
❌ test_to_rdf[toRdf-manifest#te107]
self = <Graph identifier=N73e42bb48cae4d76965b518ccaa5494c (<class 'rdflib.graph.Graph'>)>
✅ test_to_rdf[toRdf-manifest#te073]
✅ test_expand[expand-manifest#t0016]
✅ test_expand[expand-manifest#t0009]
❌ test_expand[expand-manifest#tc031]
self = <pyld.context_resolver.ContextResolver object at 0x7f768c3f2bf0>
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e078-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tm007]
❌ 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...-yaml-ld/specifications/json-ld-api/tests/remote-doc/0001-out.jsonld'), req=None, extract_all_scripts=False, base=None)
✅ test_to_rdf[html-manifest#tr002]
❌ 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...thon-yaml-ld/specifications/json-ld-api/tests/expand/0029-out.jsonld'), req=None, extract_all_scripts=False, base=None)
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/0126-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[html-manifest#te014]
✅ test_to_rdf[toRdf-manifest#te006]
✅ test_expand[html-manifest#te019]
✅ test_expand[basic-manifest#cr-utf8-1-positive]
✅ test_expand[remote-doc-manifest#tla02]
✅ test_expand[expand-manifest#t0104]
✅ test_expand[expand-manifest#t0073]
✅ test_expand[expand-manifest#ter23]
✅ test_to_rdf[toRdf-manifest#ter11]
❌ test_to_rdf[toRdf-manifest#te110]
test_case = TestCase(test='toRdf-manifest#te110', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e110-out.nq'), req=None, extract_all_scripts=False, base=None)
✅ test_expand[expand-manifest#tpr06]
❌ 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...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/li12-out.nq'), req=None, extract_all_scripts=False, base=None)
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 0x7f768c93b6d0>
Raw output
self = <pyld.context_resolver.ContextResolver object at 0x7f768c93b6d0>
active_ctx = frozendict.frozendict({'_uuid': 'e483141a-0271-11ef-9fb3-33b451ce6290', '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 0x7f76918e6cb0>, '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
@specified_by(API / '#dom-jsonldprocessor-expand')
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,
) -> Document | list[Document]:
"""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:57:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.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 0x7f768c93b6d0>
active_ctx = frozendict.frozendict({'_uuid': 'e483141a-0271-11ef-9fb3-33b451ce6290', '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
@specified_by(API / '#dom-jsonldprocessor-expand')
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,
) -> Document | list[Document]:
"""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:68: LoadingRemoteContextFailed
Check failure on line 0 in tests/artifacts/pytest.xml
github-actions / pytest
pytest ► tests.test_specification ► test_expand[expand-manifest#tso10]
Failed test found in:
tests/artifacts/pytest.xml
Error:
self = <pyld.context_resolver.ContextResolver object at 0x7f768cabf670>
Raw output
self = <pyld.context_resolver.ContextResolver object at 0x7f768cabf670>
active_ctx = frozendict.frozendict({'_uuid': 'e483141a-0271-11ef-9fb3-33b451ce6290', 'processingMode': 'json-ld-1.1', 'mappings': {}})
url = 'so10-context.jsonld', cycles = {'so10-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 = 'so10-context.jsonld'
options = {'documentLoader': <function requests_document_loader.<locals>.loader at 0x7f76918e6cb0>, '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': 'so10-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': 'so10-context.jsonld', '@protected': True, '@version': 1.1}, {'term': 'http://example.org/unprotected'}], 'term': 'value'}
base = None, context = None, extract_all_scripts = False
mode = <ProcessingMode.JSON_LD_1_1: 'json-ld-1.1'>, document_loader = None
@specified_by(API / '#dom-jsonldprocessor-expand')
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,
) -> Document | list[Document]:
"""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:57:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.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 0x7f768cabf670>
active_ctx = frozendict.frozendict({'_uuid': 'e483141a-0271-11ef-9fb3-33b451ce6290', 'processingMode': 'json-ld-1.1', 'mappings': {}})
url = 'so10-context.jsonld', cycles = {'so10-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': 'so10-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#tso10', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...pi/tests/expand/so10-in.jsonld'), result='protected term redefinition', req=None, extract_all_scripts=False, base=None)
@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:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
document = {'@context': [{'@import': 'so10-context.jsonld', '@protected': True, '@version': 1.1}, {'term': 'http://example.org/unprotected'}], 'term': 'value'}
base = None, context = None, extract_all_scripts = False
mode = <ProcessingMode.JSON_LD_1_1: 'json-ld-1.1'>, document_loader = None
@specified_by(API / '#dom-jsonldprocessor-expand')
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,
) -> Document | list[Document]:
"""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: so10-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': 'so10-context.jsonld'}
yaml_ld/expand.py:68: LoadingRemoteContextFailed
During handling of the above exception, another exception occurred:
test_case = TestCase(test='expand-manifest#tso10', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...pi/tests/expand/so10-in.jsonld'), result='protected term redefinition', req=None, extract_all_scripts=False, base=None)
@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' == 'protected term redefinition'
E - protected term redefinition
E + loading remote context failed
tests/test_specification.py:79: AssertionError
Check failure on line 0 in tests/artifacts/pytest.xml
github-actions / pytest
pytest ► tests.test_specification ► test_to_rdf[toRdf-manifest#te112]
Failed test found in:
tests/artifacts/pytest.xml
Error:
test_case = TestCase(test='toRdf-manifest#te112', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e112-out.nq'), req=None, extract_all_scripts=False, base=None)
Raw output
test_case = TestCase(test='toRdf-manifest#te112', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e112-out.nq'), req=None, extract_all_scripts=False, base=None)
@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=Ne2cc7e460f704adcab4a3bcdaf2f277f (<class 'rdflib.graph.Graph'>)>>(<Graph identifier=N0e02c7ebc2fb43da8476e2da2bbf6b54 (<class 'rdflib.graph.Graph'>)>)
E + where <bound method Graph.isomorphic of <Graph identifier=Ne2cc7e460f704adcab4a3bcdaf2f277f (<class 'rdflib.graph.Graph'>)>> = <Graph identifier=Ne2cc7e460f704adcab4a3bcdaf2f277f (<class 'rdflib.graph.Graph'>)>.isomorphic
tests/test_specification.py:67: AssertionError
Check failure on line 0 in tests/artifacts/pytest.xml
github-actions / pytest
pytest ► tests.test_specification ► test_to_rdf[toRdf-manifest#te008]
Failed test found in:
tests/artifacts/pytest.xml
Error:
test_case = TestCase(test='toRdf-manifest#te008', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e008-out.nq'), req=None, extract_all_scripts=False, base=None)
Raw output
test_case = TestCase(test='toRdf-manifest#te008', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e008-out.nq'), req=None, extract_all_scripts=False, base=None)
@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=N9a07675500e243809f2b967878506103 (<class 'rdflib.graph.Graph'>)>>(<Graph identifier=Nb46a6c9cb3e94b4dbda4dd16ed7c23d4 (<class 'rdflib.graph.Graph'>)>)
E + where <bound method Graph.isomorphic of <Graph identifier=N9a07675500e243809f2b967878506103 (<class 'rdflib.graph.Graph'>)>> = <Graph identifier=N9a07675500e243809f2b967878506103 (<class 'rdflib.graph.Graph'>)>.isomorphic
tests/test_specification.py:67: AssertionError
Check failure on line 0 in tests/artifacts/pytest.xml
github-actions / pytest
pytest ► tests.test_specification ► test_to_rdf[toRdf-manifest#te089]
Failed test found in:
tests/artifacts/pytest.xml
Error:
test_case = TestCase(test='toRdf-manifest#te089', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld-api/tests/toRdf/e089-out.nq'), req=None, extract_all_scripts=False, base=rdflib.term.URIRef('http://example/base/'))
Raw output
test_case = TestCase(test='toRdf-manifest#te089', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld-api/tests/toRdf/e089-out.nq'), req=None, extract_all_scripts=False, base=rdflib.term.URIRef('http://example/base/'))
@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=N868ac06553e842588cd2a29a139387cd (<class 'rdflib.graph.Graph'>)>>(<Graph identifier=N9bf70b097dce40b0bce6d500e5058160 (<class 'rdflib.graph.Graph'>)>)
E + where <bound method Graph.isomorphic of <Graph identifier=N868ac06553e842588cd2a29a139387cd (<class 'rdflib.graph.Graph'>)>> = <Graph identifier=N868ac06553e842588cd2a29a139387cd (<class 'rdflib.graph.Graph'>)>.isomorphic
tests/test_specification.py:67: AssertionError
Check failure on line 0 in tests/artifacts/pytest.xml
github-actions / pytest
pytest ► tests.test_specification ► test_to_rdf[toRdf-manifest#tc015]
Failed test found in:
tests/artifacts/pytest.xml
Error:
test_case = TestCase(test='toRdf-manifest#tc015', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/c015-out.nq'), req=None, extract_all_scripts=False, base=None)
Raw output
test_case = TestCase(test='toRdf-manifest#tc015', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/c015-out.nq'), req=None, extract_all_scripts=False, base=None)
@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=Ne18f17071e54474eb2e4c776083eb54b (<class 'rdflib.graph.Graph'>)>>(<Graph identifier=N90f04ffe77784ef28ff8fdfaa53c17ae (<class 'rdflib.graph.Graph'>)>)
E + where <bound method Graph.isomorphic of <Graph identifier=Ne18f17071e54474eb2e4c776083eb54b (<class 'rdflib.graph.Graph'>)>> = <Graph identifier=Ne18f17071e54474eb2e4c776083eb54b (<class 'rdflib.graph.Graph'>)>.isomorphic
tests/test_specification.py:67: AssertionError
Check failure on line 0 in tests/artifacts/pytest.xml
github-actions / pytest
pytest ► tests.test_specification ► test_to_rdf[toRdf-manifest#tm013]
Failed test found in:
tests/artifacts/pytest.xml
Error:
self = <Graph identifier=Ne13011477ce74ef29834c326d7398cfd (<class 'rdflib.graph.Graph'>)>
Raw output
self = <Graph identifier=Ne13011477ce74ef29834c326d7398cfd (<class 'rdflib.graph.Graph'>)>
source = <rdflib.parser.StringInputSource object at 0x7f768c974c70>
publicID = None, format = 'turtle', location = None, file = None
data = '_:b0 <http://example.org/input> _:b1 .\n_:b2 <http://example.org/value> "x" _:b1 .\n'
args = {}, could_not_guess_format = True
parser = <rdflib.plugins.parsers.notation3.TurtleParser object at 0x7f768c974ca0>
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 0x7f768c977ac0>
argstr = '_:b0 <http://example.org/input> _:b1 .\n_:b2 <http://example.org/value> "x" _:b1 .\n'
i = 75, 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#tm013', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/m013-out.nq'), req=None, extract_all_scripts=False, base=None)
@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:65:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Graph identifier=Ne13011477ce74ef29834c326d7398cfd (<class 'rdflib.graph.Graph'>)>
source = <rdflib.parser.StringInputSource object at 0x7f768c974c70>
publicID = None, format = 'turtle', location = None, file = None
data = '_:b0 <http://example.org/input> _:b1 .\n_:b2 <http://example.org/value> "x" _:b1 .\n'
args = {}, could_not_guess_format = True
parser = <rdflib.plugins.parsers.notation3.TurtleParser object at 0x7f768c974ca0>
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 0x7f768c974c70> 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#tc038]
Failed test found in:
tests/artifacts/pytest.xml
Error:
test_case = TestCase(test='expand-manifest#tc038', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...thon-yaml-ld/specifications/json-ld-api/tests/expand/c038-out.jsonld'), req=None, extract_all_scripts=False, base=None)
Raw output
test_case = TestCase(test='expand-manifest#tc038', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...thon-yaml-ld/specifications/json-ld-api/tests/expand/c038-out.jsonld'), req=None, extract_all_scripts=False, base=None)
@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,
base=test_case.base,
)
if actual != expected:
# Try running `pyld` against this example.
jsonld_actual = jsonld.expand(json.loads(test_case.result.read_text()))
if jsonld_actual == expected:
# PyLD is fine. We're having a trouble with YAML-LD.
> assert actual == expected
E AssertionError: assert [{'@id': 'boo...99'}]}], ...}] == [{'@id': 'htt...1999'}], ...}]
E At index 0 diff: {'@id': 'book/one', '@type': ['http://purl.org/ontology/bibo/Book'], 'http://purl.org/dc/terms/Isbn': [{'http://purl.org/dc/terms/value': [{'@value': '1234567890'}]}], 'http://purl.org/dc/terms/aut': [{'http://purl.org/dc/terms/agent': [{'http://www.w3.org/2000/01/rdf-schema#label': [{'@value': 'Some Body'}]}]}], 'http://purl.org/dc/terms/Publication': [{'http://purl.org/dc/terms/agent': [{'http://www.w3.org/2000/01/rdf-schema#label': [{'@value': 'PubCorp'}]}], 'http://purl.org/dc/terms/date': [{'@value': '1999'}]}]} != {'@id': 'http://example.org/base/book/one', '@type': ['http://purl.org/ontology/bibo/Book'], 'http://purl.org/dc/terms/creator': [{'http://www.w3.org/2000/01/rdf-schema#label': [{'@value': 'Some Body'}]}], 'http://purl.org/ontology/bibo/isbn': [{'@value': '1234567890'}], 'http://purl.org/dc/terms/published': [{'@value': '1999'}], 'http://purl.org/dc/terms/publisher': [{'http://www.w3.org/2000/01/rdf-schema#label': [{'@value': 'PubCorp'}]}]}
E Full diff:
E [
E - {'@id': 'http://example.org/base/book/one',
E + {'@id': 'book/one',
E '@type': ['http://purl.org/ontology/bibo/Book'],
E + 'http://purl.org/dc/terms/Isbn': [{'http://purl.org/dc/terms/value': [{'@value': '1234567890'}]}],
E + 'http://purl.org/dc/terms/Publication': [{'http://purl.org/dc/terms/agent': [{'http://www.w3.org/2000/01/rdf-schema#label': [{'@value': 'PubCorp'}]}],
E + 'http://purl.org/dc/terms/date': [{'@value': '1999'}]}],
E - 'http://purl.org/dc/terms/creator': [{'http://www.w3.org/2000/01/rdf-schema#label': [{'@value': 'Some '
E ? ^ ^^^
E + 'http://purl.org/dc/terms/aut': [{'http://purl.org/dc/terms/agent': [{'http://www.w3.org/2000/01/rdf-schema#label': [{'@value': 'Some '
E ? ^^^^^^^^^^^^^^^^^^ ^^ ++++++++++++++++
E - 'Body'}]}],
E + 'Body'}]}]}]},
E ? ++++++++++++++++++++++++++++++++ +++
E - 'http://purl.org/dc/terms/published': [{'@value': '1999'}],
E - 'http://purl.org/dc/terms/publisher': [{'http://www.w3.org/2000/01/rdf-schema#label': [{'@value': 'PubCorp'}]}],
E - 'http://purl.org/ontology/bibo/isbn': [{'@value': '1234567890'}]},
E ]
tests/test_specification.py:102: AssertionError
Check failure on line 0 in tests/artifacts/pytest.xml
github-actions / pytest
pytest ► tests.test_specification ► test_expand[expand-manifest#t0078]
Failed test found in:
tests/artifacts/pytest.xml
Error:
test_case = TestCase(test='expand-manifest#t0078', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...thon-yaml-ld/specifications/json-ld-api/tests/expand/0078-out.jsonld'), req=None, extract_all_scripts=False, base=None)
Raw output
test_case = TestCase(test='expand-manifest#t0078', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...thon-yaml-ld/specifications/json-ld-api/tests/expand/0078-out.jsonld'), req=None, extract_all_scripts=False, base=None)
@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,
base=test_case.base,
)
if actual != expected:
# Try running `pyld` against this example.
jsonld_actual = jsonld.expand(json.loads(test_case.result.read_text()))
if jsonld_actual == expected:
# PyLD is fine. We're having a trouble with YAML-LD.
> assert actual == expected
E assert [{'@id': '#ho...': 'Homer'}]}] == [{'@id': 'htt...': 'Homer'}]}]
E At index 0 diff: {'@id': '#homer', '@reverse': {'http://example.com/vocab#parent': [{'@id': '#bart', 'http://example.com/vocab#name': [{'@value': 'Bart'}]}, {'@id': '#lisa', 'http://example.com/vocab#name': [{'@value': 'Lisa'}]}], 'http://example.com/vocab#owner': [{'@id': '#snowball-ii', 'http://example.com/vocab#name': [{'@value': 'Snowball II'}]}, {'@id': '#santas-little-helper', 'http://example.com/vocab#name': [{'@value': "Santa's Little Helper"}]}]}, 'http://example.com/vocab#name': [{'@value': 'Homer'}]} != {'@id': 'https://w3c.github.io/json-ld-api/tests/expand/0078-in.jsonld#homer', '@reverse': {'http://example.com/vocab#parent': [{'@id': 'https://w3c.github.io/json-ld-api/tests/expand/0078-in.jsonld#bart', 'http://example.com/vocab#name': [{'@value': 'Bart'}]}, {'@id': 'https://w3c.github.io/json-ld-api/tests/expand/0078-in.jsonld#lisa', 'http://example.com/vocab#name': [{'@value': 'Lisa'}]}], 'http://example.com/vocab#owner': [{'@id': 'https://w3c.github.io/json-ld-api/tests/expand/0078-in.jsonld#snowball-ii', 'http://example.com/vocab#name': [{'@value': 'Snowball II'}]}, {'@id': 'https://w3c.github.io/json-ld-api/tests/expand/0078-in.jsonld#santas-little-helper', 'http://example.com/vocab#name': [{'@value': "Santa's Little Helper"}]}]}, 'http://example.com/vocab#name': [{'@value': 'Homer'}]}
E Full diff:
E [
E - {'@id': 'https://w3c.github.io/json-ld-api/tests/expand/0078-in.jsonld#homer',
E - '@reverse': {'http://example.com/vocab#owner': [{'@id': 'https://w3c.github.io/json-ld-api/tests/expand/0078-in.jsonld#snowball-ii',
E + {'@id': '#homer',
E + '@reverse': {'http://example.com/vocab#owner': [{'@id': '#snowball-ii',
E 'http://example.com/vocab#name': [{'@value': 'Snowball '
E 'II'}]},
E - {'@id': 'https://w3c.github.io/json-ld-api/tests/expand/0078-in.jsonld#santas-little-helper',
E + {'@id': '#santas-little-helper',
E 'http://example.com/vocab#name': [{'@value': "Santa's "
E 'Little '
E 'Helper'}]}],
E - 'http://example.com/vocab#parent': [{'@id': 'https://w3c.github.io/json-ld-api/tests/expand/0078-in.jsonld#bart',
E + 'http://example.com/vocab#parent': [{'@id': '#bart',
E 'http://example.com/vocab#name': [{'@value': 'Bart'}]},
E - {'@id': 'https://w3c.github.io/json-ld-api/tests/expand/0078-in.jsonld#lisa',
E + {'@id': '#lisa',
E 'http://example.com/vocab#name': [{'@value': 'Lisa'}]}]},
E 'http://example.com/vocab#name': [{'@value': 'Homer'}]},
E ]
tests/test_specification.py:102: AssertionError
Check failure on line 0 in tests/artifacts/pytest.xml
github-actions / pytest
pytest ► tests.test_specification ► test_expand[expand-manifest#t0056]
Failed test found in:
tests/artifacts/pytest.xml
Error:
test_case = TestCase(test='expand-manifest#t0056', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...thon-yaml-ld/specifications/json-ld-api/tests/expand/0056-out.jsonld'), req=None, extract_all_scripts=False, base=None)
Raw output
test_case = TestCase(test='expand-manifest#t0056', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specification...thon-yaml-ld/specifications/json-ld-api/tests/expand/0056-out.jsonld'), req=None, extract_all_scripts=False, base=None)
@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,
base=test_case.base,
)
if actual != expected:
# Try running `pyld` against this example.
jsonld_actual = jsonld.expand(json.loads(test_case.result.read_text()))
if jsonld_actual == expected:
# PyLD is fine. We're having a trouble with YAML-LD.
> assert actual == expected
E AssertionError: assert [{'@id': 'htt...Lanthaler'}]}] == [{'@id': 'htt...Lanthaler'}]}]
E At index 0 diff: {'@id': 'http://me.markus-lanthaler.com/', 'http://xmlns.com/foaf/0.1/homepage': [{'@id': 'http://www.markus-lanthaler.com/'}], 'http://example.com/link': [{'@id': 'relative-iri'}], 'http://xmlns.com/foaf/0.1/name': [{'@value': 'Markus Lanthaler'}]} != {'@id': 'http://me.markus-lanthaler.com/', 'http://xmlns.com/foaf/0.1/homepage': [{'@id': 'http://www.markus-lanthaler.com/'}], 'http://example.com/link': [{'@id': 'https://w3c.github.io/json-ld-api/tests/expand/relative-iri'}], 'http://xmlns.com/foaf/0.1/name': [{'@value': 'Markus Lanthaler'}]}
E Full diff:
E [
E {'@id': 'http://me.markus-lanthaler.com/',
E - 'http://example.com/link': [{'@id': 'https://w3c.github.io/json-ld-api/tests/expand/relative-iri'}],
E + 'http://example.com/link': [{'@id': 'relative-iri'}],
E 'http://xmlns.com/foaf/0.1/homepage': [{'@id': 'http://www.markus-lanthaler.com/'}],
E 'http://xmlns.com/foaf/0.1/name': [{'@value': 'Markus Lanthaler'}]},
E ]
tests/test_specification.py:102: AssertionError
Check failure on line 0 in tests/artifacts/pytest.xml
github-actions / pytest
pytest ► tests.test_specification ► test_to_rdf[toRdf-manifest#te101]
Failed test found in:
tests/artifacts/pytest.xml
Error:
self = <Graph identifier=N891123f9e251475488a99c3556e5cf8c (<class 'rdflib.graph.Graph'>)>
Raw output
self = <Graph identifier=N891123f9e251475488a99c3556e5cf8c (<class 'rdflib.graph.Graph'>)>
source = <rdflib.parser.StringInputSource object at 0x7f768cb619f0>
publicID = None, format = 'turtle', location = None, file = None
data = '_:b1 <http://example.org/value> "x" <http://example.com/g1> .\n_:b2 <http://example.org/value> "y" <http://example.co..._:b0 <http://example.org/input> <http://example.com/g1> .\n_:b0 <http://example.org/input> <http://example.com/g2> .\n'
args = {}, could_not_guess_format = True
parser = <rdflib.plugins.parsers.notation3.TurtleParser object at 0x7f768cb61450>
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 0x7f768cb60f70>
argstr = '_:b1 <http://example.org/value> "x" <http://example.com/g1> .\n_:b2 <http://example.org/value> "y" <http://example.co..._:b0 <http://example.org/input> <http://example.com/g1> .\n_:b0 <http://example.org/input> <http://example.com/g2> .\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#te101', input=URL('file:///home/runner/work/python-yaml-ld/python-yaml-ld/specifications...ld/python-yaml-ld/specifications/json-ld-api/tests/toRdf/e101-out.nq'), req=None, extract_all_scripts=False, base=None)
@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:65:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Graph identifier=N891123f9e251475488a99c3556e5cf8c (<class 'rdflib.graph.Graph'>)>
source = <rdflib.parser.StringInputSource object at 0x7f768cb619f0>
publicID = None, format = 'turtle', location = None, file = None
data = '_:b1 <http://example.org/value> "x" <http://example.com/g1> .\n_:b2 <http://example.org/value> "y" <http://example.co..._:b0 <http://example.org/input> <http://example.com/g1> .\n_:b0 <http://example.org/input> <http://example.com/g2> .\n'
args = {}, could_not_guess_format = True
parser = <rdflib.plugins.parsers.notation3.TurtleParser object at 0x7f768cb61450>
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 0x7f768cb619f0> 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