├── .github └── workflows │ ├── add_prs_and_issues_to_project.yml │ └── ci.yml ├── .gitignore ├── .pr-preview.json ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── ECHIDNA ├── Gemfile ├── Gemfile.lock ├── LICENSE.md ├── README.md ├── Rakefile ├── common ├── README.rb ├── algorithm-terms.html ├── common.js ├── extract-examples.rb ├── jsonld.js ├── terms.html └── typographical-conventions.html ├── index.html ├── publication-snapshots └── FPWD │ └── Overview.html ├── reports ├── .earl ├── README ├── Rakefile ├── earl.jsonld ├── index.html ├── jsonld-streaming-parser-earl.ttl ├── manifests.nt ├── ruby-json-ld-earl.ttl └── template.haml ├── tests ├── LICENSE.md ├── README.md ├── Rakefile ├── index.html ├── manifest.html ├── manifest.jsonld ├── stream-toRdf-manifest.html ├── stream-toRdf-manifest.jsonld ├── stream-toRdf │ ├── 0001-in.jsonld │ ├── 0001-out.nq │ ├── 0002-in.jsonld │ ├── 0002-out.nq │ ├── 0003-in.jsonld │ ├── 0003-out.nq │ ├── 0004-in.jsonld │ ├── 0004-out.nq │ ├── 0005-in.jsonld │ ├── 0005-out.nq │ ├── 0006-in.jsonld │ ├── 0006-out.nq │ ├── 0007-in.jsonld │ ├── 0007-out.nq │ ├── 0008-in.jsonld │ ├── 0008-out.nq │ ├── 0009-in.jsonld │ ├── 0009-out.nq │ ├── 0010-in.jsonld │ ├── 0010-out.nq │ ├── 0011-in.jsonld │ ├── 0011-out.nq │ ├── 0012-in.jsonld │ ├── 0012-out.nq │ ├── 0013-in.jsonld │ ├── 0013-out.nq │ ├── 0014-in.jsonld │ ├── 0014-out.nq │ ├── 0015-in.jsonld │ ├── 0015-out.nq │ ├── 0016-in.jsonld │ ├── 0016-out.nq │ ├── 0017-in.jsonld │ ├── 0017-out.nq │ ├── 0018-in.jsonld │ ├── 0018-out.nq │ ├── 0019-in.jsonld │ ├── 0019-out.nq │ ├── 0020-in.jsonld │ ├── 0020-out.nq │ ├── 0022-in.jsonld │ ├── 0022-out.nq │ ├── 0023-in.jsonld │ ├── 0023-out.nq │ ├── 0024-in.jsonld │ ├── 0024-out.nq │ ├── 0025-in.jsonld │ ├── 0025-out.nq │ ├── 0026-in.jsonld │ ├── 0026-out.nq │ ├── 0027-in.jsonld │ ├── 0027-out.nq │ ├── 0028-in.jsonld │ ├── 0028-out.nq │ ├── 0029-in.jsonld │ ├── 0029-out.nq │ ├── 0030-in.jsonld │ ├── 0030-out.nq │ ├── 0031-in.jsonld │ ├── 0031-out.nq │ ├── 0032-in.jsonld │ ├── 0032-out.nq │ ├── 0033-in.jsonld │ ├── 0033-out.nq │ ├── 0034-in.jsonld │ ├── 0034-out.nq │ ├── 0035-in.jsonld │ ├── 0035-out.nq │ ├── 0036-in.jsonld │ ├── 0036-out.nq │ ├── 0113-in.jsonld │ ├── 0113-out.nq │ ├── 0114-in.jsonld │ ├── 0114-out.nq │ ├── 0115-in.jsonld │ ├── 0115-out.nq │ ├── 0116-in.jsonld │ ├── 0116-out.nq │ ├── 0117-in.jsonld │ ├── 0117-out.nq │ ├── 0118-in.jsonld │ ├── 0118-out.nq │ ├── 0119-in.jsonld │ ├── 0119-out.nq │ ├── 0120-in.jsonld │ ├── 0120-out.nq │ ├── 0121-in.jsonld │ ├── 0121-out.nq │ ├── 0122-in.jsonld │ ├── 0122-out.nq │ ├── 0123-in.jsonld │ ├── 0123-out.nq │ ├── 0124-in.jsonld │ ├── 0124-out.nq │ ├── 0125-in.jsonld │ ├── 0125-out.nq │ ├── 0126-in.jsonld │ ├── 0126-out.nq │ ├── 0127-in.jsonld │ ├── 0127-out.nq │ ├── 0128-in.jsonld │ ├── 0128-out.nq │ ├── 0129-in.jsonld │ ├── 0129-out.nq │ ├── 0130-in.jsonld │ ├── 0130-out.nq │ ├── 0131-in.jsonld │ ├── 0131-out.nq │ ├── 0132-in.jsonld │ ├── 0132-out.nq │ ├── c001-in.jsonld │ ├── c001-out.nq │ ├── c002-in.jsonld │ ├── c002-out.nq │ ├── c003-in.jsonld │ ├── c003-out.nq │ ├── c004-in.jsonld │ ├── c004-out.nq │ ├── c005-in.jsonld │ ├── c005-out.nq │ ├── c006-in.jsonld │ ├── c006-out.nq │ ├── c007-in.jsonld │ ├── c007-out.nq │ ├── c008-in.jsonld │ ├── c008-out.nq │ ├── c009-in.jsonld │ ├── c009-out.nq │ ├── c010-in.jsonld │ ├── c010-out.nq │ ├── c011-in.jsonld │ ├── c011-out.nq │ ├── c012-in.jsonld │ ├── c012-out.nq │ ├── c013-in.jsonld │ ├── c013-out.nq │ ├── c014-in.jsonld │ ├── c014-out.nq │ ├── c015-in.jsonld │ ├── c015-out.nq │ ├── c016-in.jsonld │ ├── c016-out.nq │ ├── c017-in.jsonld │ ├── c017-out.nq │ ├── c018-in.jsonld │ ├── c018-out.nq │ ├── c019-in.jsonld │ ├── c019-out.nq │ ├── c020-in.jsonld │ ├── c020-out.nq │ ├── c021-in.jsonld │ ├── c021-out.nq │ ├── c022-in.jsonld │ ├── c022-out.nq │ ├── c023-in.jsonld │ ├── c023-out.nq │ ├── c024-in.jsonld │ ├── c024-out.nq │ ├── c025-in.jsonld │ ├── c025-out.nq │ ├── c026-in.jsonld │ ├── c026-out.nq │ ├── c027-in.jsonld │ ├── c027-out.nq │ ├── c028-in.jsonld │ ├── c028-out.nq │ ├── c029-in.jsonld │ ├── c030-in.jsonld │ ├── c031-context.jsonld │ ├── c031-in.jsonld │ ├── c031-out.nq │ ├── c031 │ │ └── c031-context.jsonld │ ├── c032-in.jsonld │ ├── c033-in.jsonld │ ├── c034-context.jsonld │ ├── c034-in.jsonld │ ├── c034-out.nq │ ├── c035-in.jsonld │ ├── c035-out.nq │ ├── di01-in.jsonld │ ├── di01-out.nq │ ├── di02-in.jsonld │ ├── di02-out.nq │ ├── di03-in.jsonld │ ├── di03-out.nq │ ├── di04-in.jsonld │ ├── di04-out.nq │ ├── di05-in.jsonld │ ├── di05-out.nq │ ├── di06-in.jsonld │ ├── di06-out.nq │ ├── di07-in.jsonld │ ├── di07-out.nq │ ├── di08-in.jsonld │ ├── di09-in.jsonld │ ├── di09-out.nq │ ├── di10-in.jsonld │ ├── di10-out.nq │ ├── di11-in.jsonld │ ├── di11-out.nq │ ├── di12-in.jsonld │ ├── di12-out.nq │ ├── e001-in.jsonld │ ├── e001-out.nq │ ├── e002-in.jsonld │ ├── e002-out.nq │ ├── e003-in.jsonld │ ├── e003-out.nq │ ├── e004-in.jsonld │ ├── e004-out.nq │ ├── e005-in.jsonld │ ├── e005-out.nq │ ├── e006-in.jsonld │ ├── e006-out.nq │ ├── e007-in.jsonld │ ├── e007-out.nq │ ├── e008-in.jsonld │ ├── e008-out.nq │ ├── e009-in.jsonld │ ├── e009-out.nq │ ├── e010-in.jsonld │ ├── e010-out.nq │ ├── e011-in.jsonld │ ├── e011-out.nq │ ├── e012-in.jsonld │ ├── e012-out.nq │ ├── e013-in.jsonld │ ├── e013-out.nq │ ├── e014-in.jsonld │ ├── e014-out.nq │ ├── e015-in.jsonld │ ├── e015-out.nq │ ├── e016-in.jsonld │ ├── e016-out.nq │ ├── e017-in.jsonld │ ├── e017-out.nq │ ├── e018-in.jsonld │ ├── e018-out.nq │ ├── e019-in.jsonld │ ├── e019-out.nq │ ├── e020-in.jsonld │ ├── e020-out.nq │ ├── e021-in.jsonld │ ├── e021-out.nq │ ├── e022-in.jsonld │ ├── e022-out.nq │ ├── e023-in.jsonld │ ├── e023-out.nq │ ├── e024-in.jsonld │ ├── e024-out.nq │ ├── e025-in.jsonld │ ├── e025-out.nq │ ├── e026-in.jsonld │ ├── e026-out.nq │ ├── e027-in.jsonld │ ├── e027-out.nq │ ├── e028-in.jsonld │ ├── e028-out.nq │ ├── e029-in.jsonld │ ├── e029-out.nq │ ├── e030-in.jsonld │ ├── e030-out.nq │ ├── e031-in.jsonld │ ├── e031-out.nq │ ├── e032-in.jsonld │ ├── e032-out.nq │ ├── e033-in.jsonld │ ├── e033-out.nq │ ├── e034-in.jsonld │ ├── e034-out.nq │ ├── e035-in.jsonld │ ├── e035-out.nq │ ├── e036-in.jsonld │ ├── e036-out.nq │ ├── e037-in.jsonld │ ├── e037-out.nq │ ├── e038-in.jsonld │ ├── e038-out.nq │ ├── e039-in.jsonld │ ├── e039-out.nq │ ├── e040-in.jsonld │ ├── e040-out.nq │ ├── e041-in.jsonld │ ├── e041-out.nq │ ├── e042-in.jsonld │ ├── e042-out.nq │ ├── e043-in.jsonld │ ├── e043-out.nq │ ├── e044-in.jsonld │ ├── e044-out.nq │ ├── e045-in.jsonld │ ├── e045-out.nq │ ├── e046-in.jsonld │ ├── e046-out.nq │ ├── e047-in.jsonld │ ├── e047-out.nq │ ├── e048-in.jsonld │ ├── e048-out.nq │ ├── e049-in.jsonld │ ├── e049-out.nq │ ├── e050-in.jsonld │ ├── e050-out.nq │ ├── e051-in.jsonld │ ├── e051-out.nq │ ├── e052-in.jsonld │ ├── e052-out.nq │ ├── e053-in.jsonld │ ├── e053-out.nq │ ├── e054-in.jsonld │ ├── e054-out.nq │ ├── e055-in.jsonld │ ├── e055-out.nq │ ├── e056-in.jsonld │ ├── e056-out.nq │ ├── e057-in.jsonld │ ├── e057-out.nq │ ├── e058-in.jsonld │ ├── e058-out.nq │ ├── e059-in.jsonld │ ├── e059-out.nq │ ├── e060-in.jsonld │ ├── e060-out.nq │ ├── e061-in.jsonld │ ├── e061-out.nq │ ├── e062-in.jsonld │ ├── e062-out.nq │ ├── e063-in.jsonld │ ├── e063-out.nq │ ├── e064-in.jsonld │ ├── e064-out.nq │ ├── e065-in.jsonld │ ├── e065-out.nq │ ├── e066-in.jsonld │ ├── e066-out.nq │ ├── e067-in.jsonld │ ├── e067-out.nq │ ├── e068-in.jsonld │ ├── e068-out.nq │ ├── e069-in.jsonld │ ├── e069-out.nq │ ├── e070-in.jsonld │ ├── e070-out.nq │ ├── e071-in.jsonld │ ├── e071-out.nq │ ├── e072-in.jsonld │ ├── e072-out.nq │ ├── e073-in.jsonld │ ├── e073-out.nq │ ├── e074-in.jsonld │ ├── e074-out.nq │ ├── e075-in.jsonld │ ├── e075-out.nq │ ├── e076-in.jsonld │ ├── e076-out.nq │ ├── e077-context.jsonld │ ├── e077-in.jsonld │ ├── e077-out.nq │ ├── e078-in.jsonld │ ├── e078-out.nq │ ├── e079-in.jsonld │ ├── e079-out.nq │ ├── e080-in.jsonld │ ├── e080-out.nq │ ├── e081-in.jsonld │ ├── e081-out.nq │ ├── e082-in.jsonld │ ├── e082-out.nq │ ├── e083-in.jsonld │ ├── e083-out.nq │ ├── e084-in.jsonld │ ├── e084-out.nq │ ├── e085-in.jsonld │ ├── e085-out.nq │ ├── e086-in.jsonld │ ├── e086-out.nq │ ├── e087-in.jsonld │ ├── e087-out.nq │ ├── e088-in.jsonld │ ├── e088-out.nq │ ├── e089-in.jsonld │ ├── e089-out.nq │ ├── e090-in.jsonld │ ├── e090-out.nq │ ├── e091-in.jsonld │ ├── e091-out.nq │ ├── e092-in.jsonld │ ├── e092-out.nq │ ├── e093-in.jsonld │ ├── e093-out.nq │ ├── e094-in.jsonld │ ├── e094-out.nq │ ├── e095-in.jsonld │ ├── e095-out.nq │ ├── e096-in.jsonld │ ├── e096-out.nq │ ├── e097-in.jsonld │ ├── e097-out.nq │ ├── e098-in.jsonld │ ├── e098-out.nq │ ├── e099-in.jsonld │ ├── e099-out.nq │ ├── e100-in.jsonld │ ├── e100-out.nq │ ├── e101-in.jsonld │ ├── e101-out.nq │ ├── e102-in.jsonld │ ├── e102-out.nq │ ├── e103-in.jsonld │ ├── e103-out.nq │ ├── e104-in.jsonld │ ├── e104-out.nq │ ├── e105-in.jsonld │ ├── e105-out.nq │ ├── e106-in.jsonld │ ├── e106-out.nq │ ├── e107-in.jsonld │ ├── e107-out.nq │ ├── e108-in.jsonld │ ├── e108-out.nq │ ├── e109-in.jsonld │ ├── e109-out.nq │ ├── e110-in.jsonld │ ├── e110-out.nq │ ├── e111-in.jsonld │ ├── e111-out.nq │ ├── e112-in.jsonld │ ├── e112-out.nq │ ├── e113-in.jsonld │ ├── e113-out.nq │ ├── e114-in.jsonld │ ├── e114-out.nq │ ├── e115-in.jsonld │ ├── e116-in.jsonld │ ├── e117-in.jsonld │ ├── e117-out.nq │ ├── e118-in.jsonld │ ├── e118-out.nq │ ├── e119-in.jsonld │ ├── e119-out.nq │ ├── e120-in.jsonld │ ├── e120-out.nq │ ├── e121-in.jsonld │ ├── e121-out.nq │ ├── e122-in.jsonld │ ├── e122-out.nq │ ├── e123-in.jsonld │ ├── e124-context.jsonld │ ├── e124-in.jsonld │ ├── e124-out.nq │ ├── e125-context-1.jsonld │ ├── e125-context-2.jsonld │ ├── e125-in.jsonld │ ├── e125-out.nq │ ├── e126-context-1.jsonld │ ├── e126-context-2.jsonld │ ├── e126-context-3.jsonld │ ├── e126-context.jsonld │ ├── e126-in.jsonld │ ├── e126-out.nq │ ├── e127-context-1.jsonld │ ├── e127-context-2.jsonld │ ├── e127-in.jsonld │ ├── e127-out.nq │ ├── e128-context-1.jsonld │ ├── e128-context-2.jsonld │ ├── e128-context-3.jsonld │ ├── e128-in.jsonld │ ├── e128-out.nq │ ├── e129-in.jsonld │ ├── e129-out.nq │ ├── e130-in.jsonld │ ├── e130-out.nq │ ├── ec01-in.jsonld │ ├── ec02-in.jsonld │ ├── em01-in.jsonld │ ├── en01-in.jsonld │ ├── en02-in.jsonld │ ├── en03-in.jsonld │ ├── en04-in.jsonld │ ├── en05-in.jsonld │ ├── en06-in.jsonld │ ├── ep02-in.jsonld │ ├── ep03-in.jsonld │ ├── er01-in.jsonld │ ├── er02-in.jsonld │ ├── er03-in.jsonld │ ├── er04-in.jsonld │ ├── er05-in.jsonld │ ├── er06-in.jsonld │ ├── er07-in.jsonld │ ├── er08-in.jsonld │ ├── er09-in.jsonld │ ├── er10-in.jsonld │ ├── er11-in.jsonld │ ├── er12-in.jsonld │ ├── er13-in.jsonld │ ├── er14-in.jsonld │ ├── er15-in.jsonld │ ├── er17-in.jsonld │ ├── er18-in.jsonld │ ├── er19-in.jsonld │ ├── er20-in.jsonld │ ├── er21-in.jsonld │ ├── er22-in.jsonld │ ├── er23-in.jsonld │ ├── er24-in.jsonld │ ├── er25-in.jsonld │ ├── er26-in.jsonld │ ├── er27-in.jsonld │ ├── er28-in.jsonld │ ├── er29-in.jsonld │ ├── er30-in.jsonld │ ├── er31-in.jsonld │ ├── er32-in.jsonld │ ├── er33-in.jsonld │ ├── er34-in.jsonld │ ├── er35-in.jsonld │ ├── er36-in.jsonld │ ├── er37-in.jsonld │ ├── er38-in.jsonld │ ├── er39-in.jsonld │ ├── er40-in.jsonld │ ├── er41-in.jsonld │ ├── er42-in.jsonld │ ├── er43-in.jsonld │ ├── er44-in.jsonld │ ├── er45-in.jsonld │ ├── er48-in.jsonld │ ├── er49-in.jsonld │ ├── er50-in.jsonld │ ├── er51-in.jsonld │ ├── er52-in.jsonld │ ├── er53-in.jsonld │ ├── in01-in.jsonld │ ├── in01-out.nq │ ├── in02-in.jsonld │ ├── in02-out.nq │ ├── in03-in.jsonld │ ├── in03-out.nq │ ├── in04-in.jsonld │ ├── in04-out.nq │ ├── in05-in.jsonld │ ├── in05-out.nq │ ├── in06-in.jsonld │ ├── in06-out.nq │ ├── in07-in.jsonld │ ├── in08-in.jsonld │ ├── in09-in.jsonld │ ├── js01-in.jsonld │ ├── js01-out.nq │ ├── js02-in.jsonld │ ├── js02-out.nq │ ├── js03-in.jsonld │ ├── js03-out.nq │ ├── js04-in.jsonld │ ├── js04-out.nq │ ├── js05-in.jsonld │ ├── js05-out.nq │ ├── js06-in.jsonld │ ├── js06-out.nq │ ├── js07-in.jsonld │ ├── js07-out.nq │ ├── js08-in.jsonld │ ├── js08-out.nq │ ├── js09-in.jsonld │ ├── js09-out.nq │ ├── js10-in.jsonld │ ├── js10-out.nq │ ├── js11-in.jsonld │ ├── js11-out.nq │ ├── js12-in.jsonld │ ├── js12-out.nq │ ├── js13-in.jsonld │ ├── js13-out.nq │ ├── js14-in.jsonld │ ├── js14-out.nq │ ├── js15-in.jsonld │ ├── js15-out.nq │ ├── js16-in.jsonld │ ├── js16-out.nq │ ├── js17-in.jsonld │ ├── js17-out.nq │ ├── js18-in.jsonld │ ├── js18-out.nq │ ├── js19-in.jsonld │ ├── js19-out.nq │ ├── js20-in.jsonld │ ├── js20-out.nq │ ├── js21-in.jsonld │ ├── js21-out.nq │ ├── js22-in.jsonld │ ├── js22-out.nq │ ├── js23-in.jsonld │ ├── js23-out.nq │ ├── li01-in.jsonld │ ├── li01-out.nq │ ├── li02-in.jsonld │ ├── li02-out.nq │ ├── li03-in.jsonld │ ├── li03-out.nq │ ├── li04-in.jsonld │ ├── li04-out.nq │ ├── li05-in.jsonld │ ├── li05-out.nq │ ├── li06-in.jsonld │ ├── li06-out.nq │ ├── li07-in.jsonld │ ├── li07-out.nq │ ├── li08-in.jsonld │ ├── li08-out.nq │ ├── li09-in.jsonld │ ├── li09-out.nq │ ├── li10-in.jsonld │ ├── li10-out.nq │ ├── m001-in.jsonld │ ├── m001-out.nq │ ├── m002-in.jsonld │ ├── m002-out.nq │ ├── m003-in.jsonld │ ├── m003-out.nq │ ├── m004-in.jsonld │ ├── m004-out.nq │ ├── m005-in.jsonld │ ├── m005-out.nq │ ├── m006-in.jsonld │ ├── m006-out.nq │ ├── m007-in.jsonld │ ├── m007-out.nq │ ├── m008-in.jsonld │ ├── m008-out.nq │ ├── m009-in.jsonld │ ├── m009-out.nq │ ├── m010-in.jsonld │ ├── m010-out.nq │ ├── m011-in.jsonld │ ├── m011-out.nq │ ├── m012-in.jsonld │ ├── m012-out.nq │ ├── m013-in.jsonld │ ├── m013-out.nq │ ├── m014-in.jsonld │ ├── m014-out.nq │ ├── m015-in.jsonld │ ├── m015-out.nq │ ├── m016-in.jsonld │ ├── m016-out.nq │ ├── m017-in.jsonld │ ├── m017-out.nq │ ├── m018-in.jsonld │ ├── m018-out.nq │ ├── m019-in.jsonld │ ├── m019-out.nq │ ├── m020-in.jsonld │ ├── n001-in.jsonld │ ├── n001-out.nq │ ├── n002-in.jsonld │ ├── n002-out.nq │ ├── n003-in.jsonld │ ├── n003-out.nq │ ├── n004-in.jsonld │ ├── n004-out.nq │ ├── n005-in.jsonld │ ├── n005-out.nq │ ├── n006-in.jsonld │ ├── n006-out.nq │ ├── n007-in.jsonld │ ├── n007-out.nq │ ├── n008-in.jsonld │ ├── n008-out.nq │ ├── nt01-in.jsonld │ ├── nt02-in.jsonld │ ├── nt03-in.jsonld │ ├── nt04-in.jsonld │ ├── nt05-in.jsonld │ ├── nt06-in.jsonld │ ├── nt07-in.jsonld │ ├── nt08-in.jsonld │ ├── nt09-in.jsonld │ ├── nt10-in.jsonld │ ├── nt11-in.jsonld │ ├── nt12-in.jsonld │ ├── nt13-in.jsonld │ ├── nt14-in.jsonld │ ├── nt15-in.jsonld │ ├── nt16-in.jsonld │ ├── p001-in.jsonld │ ├── p001-out.nq │ ├── p002-in.jsonld │ ├── p002-out.nq │ ├── p003-in.jsonld │ ├── p003-out.nq │ ├── p004-in.jsonld │ ├── p004-out.nq │ ├── pi01-in.jsonld │ ├── pi02-in.jsonld │ ├── pi03-in.jsonld │ ├── pi04-in.jsonld │ ├── pi05-in.jsonld │ ├── pi06-in.jsonld │ ├── pi06-out.nq │ ├── pi07-in.jsonld │ ├── pi07-out.nq │ ├── pi08-in.jsonld │ ├── pi08-out.nq │ ├── pi09-in.jsonld │ ├── pi09-out.nq │ ├── pi10-in.jsonld │ ├── pi10-out.nq │ ├── pi11-in.jsonld │ ├── pi11-out.nq │ ├── pr01-in.jsonld │ ├── pr02-in.jsonld │ ├── pr02-out.nq │ ├── pr03-in.jsonld │ ├── pr04-in.jsonld │ ├── pr05-in.jsonld │ ├── pr06-in.jsonld │ ├── pr06-out.nq │ ├── pr08-in.jsonld │ ├── pr09-in.jsonld │ ├── pr10-in.jsonld │ ├── pr10-out.nq │ ├── pr11-in.jsonld │ ├── pr12-in.jsonld │ ├── pr13-in.jsonld │ ├── pr13-out.nq │ ├── pr14-in.jsonld │ ├── pr14-out.nq │ ├── pr15-in.jsonld │ ├── pr15-out.nq │ ├── pr16-in.jsonld │ ├── pr16-out.nq │ ├── pr17-in.jsonld │ ├── pr18-in.jsonld │ ├── pr19-in.jsonld │ ├── pr19-out.nq │ ├── pr20-in.jsonld │ ├── pr21-in.jsonld │ ├── pr22-in.jsonld │ ├── pr22-out.nq │ ├── pr23-in.jsonld │ ├── pr23-out.nq │ ├── pr24-in.jsonld │ ├── pr24-out.nq │ ├── pr25-in.jsonld │ ├── pr25-out.nq │ ├── pr26-in.jsonld │ ├── pr27-in.jsonld │ ├── pr27-out.nq │ ├── pr28-in.jsonld │ ├── pr29-in.jsonld │ ├── pr29-out.nq │ ├── pr30-in.jsonld │ ├── pr30-out.nq │ ├── pr31-in.jsonld │ ├── pr32-in.jsonld │ ├── pr33-in.jsonld │ ├── pr34-in.jsonld │ ├── pr34-out.nq │ ├── pr35-in.jsonld │ ├── pr35-out.nq │ ├── pr36-in.jsonld │ ├── pr36-out.nq │ ├── pr37-in.jsonld │ ├── pr37-out.nq │ ├── pr38-in.jsonld │ ├── pr38-out.nq │ ├── pr39-in.jsonld │ ├── pr39-out.nq │ ├── pr40-in.jsonld │ ├── pr40-out.nq │ ├── rt01-in.jsonld │ ├── rt01-out.nq │ ├── se01-in.jsonld │ ├── se02-in.jsonld │ ├── se03-in.jsonld │ ├── se04-in.jsonld │ ├── se05-in.jsonld │ ├── se06-in.jsonld │ ├── se07-in.jsonld │ ├── se08-in.jsonld │ ├── se09-in.jsonld │ ├── so01-in.jsonld │ ├── so02-in.jsonld │ ├── so03-in.jsonld │ ├── so05-context.jsonld │ ├── so05-in.jsonld │ ├── so05-out.nq │ ├── so06-context.jsonld │ ├── so06-in.jsonld │ ├── so06-out.nq │ ├── so07-context.jsonld │ ├── so07-in.jsonld │ ├── so08-context.jsonld │ ├── so08-in.jsonld │ ├── so08-out.nq │ ├── so09-context.jsonld │ ├── so09-in.jsonld │ ├── so09-out.nq │ ├── so10-context.jsonld │ ├── so10-in.jsonld │ ├── so11-context.jsonld │ ├── so11-in.jsonld │ ├── so11-out.nq │ ├── so12-in.jsonld │ ├── so13-context.jsonld │ ├── so13-in.jsonld │ ├── tn01-in.jsonld │ ├── tn02-in.jsonld │ ├── tn02-out.nq │ ├── v001-in.jsonld │ ├── v001-out.nq │ ├── v002-in.jsonld │ ├── v002-out.nq │ ├── v003-in.jsonld │ ├── v003-out.nq │ ├── v004-in.jsonld │ ├── v004-out.nq │ ├── v005-in.jsonld │ ├── v005-out.nq │ ├── v006-in.jsonld │ ├── v006-out.nq │ ├── v008-in.jsonld │ ├── v008-out.nq │ ├── v009-in.jsonld │ ├── v009-out.nq │ ├── v010-in.jsonld │ ├── v010-out.nq │ ├── v011-in.jsonld │ ├── v011-out.nq │ ├── v012-in.jsonld │ ├── v012-out.nq │ ├── v013-in.jsonld │ ├── v013-out.nq │ ├── v014-in.jsonld │ ├── v014-out.nq │ ├── v015-in.jsonld │ ├── v015-out.nq │ ├── v016-in.jsonld │ ├── v016-out.nq │ ├── v017-in.jsonld │ ├── v017-out.nq │ ├── v018-in.jsonld │ ├── v018-out.nq │ ├── v019-in.jsonld │ ├── v019-out.nq │ ├── v020-in.jsonld │ ├── v020-out.nq │ ├── v021-in.jsonld │ ├── v021-out.nq │ ├── v022-in.jsonld │ ├── v022-out.nq │ ├── wf01-in.jsonld │ ├── wf01-out.nq │ ├── wf02-in.jsonld │ ├── wf02-out.nq │ ├── wf03-in.jsonld │ ├── wf03-out.nq │ ├── wf04-in.jsonld │ ├── wf04-out.nq │ ├── wf05-in.jsonld │ ├── wf05-out.nq │ ├── wf07-in.jsonld │ └── wf07-out.nq └── template.haml └── w3c.json /.gitignore: -------------------------------------------------------------------------------- 1 | examples 2 | yaml 3 | -------------------------------------------------------------------------------- /.pr-preview.json: -------------------------------------------------------------------------------- 1 | { 2 | "src_file": "index.html", 3 | "type": "respec" 4 | } 5 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Code of Conduct 2 | 3 | All documentation, code and communication under this repository are covered by the [W3C Code of Ethics and Professional Conduct](https://www.w3.org/Consortium/cepc/). 4 | -------------------------------------------------------------------------------- /ECHIDNA: -------------------------------------------------------------------------------- 1 | # ECHIDNA configuration 2 | index.html?specStatus=WG-NOTE&shortName=json-ld11-streaming respec 3 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | gem 'json-ld', github: 'ruby-rdf/json-ld', branch: 'develop' 4 | gem 'nokogiri' 5 | gem 'htmlbeautifier' 6 | gem 'linkeddata' 7 | gem 'colorize' 8 | gem 'rake' 9 | gem 'haml' 10 | gem 'redcarpet' -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | All documents in this Repository are licensed by contributors 2 | under the 3 | [W3C Software and Document License](https://www.w3.org/Consortium/Legal/copyright-software). 4 | 5 | -------------------------------------------------------------------------------- /common/README.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/json-ld-streaming/eec663c780904d292606b341831f462128972bb9/common/README.rb -------------------------------------------------------------------------------- /tests/LICENSE.md: -------------------------------------------------------------------------------- 1 | The JSON-LD Test Suite is covered by the dual-licensing approach described in 2 | [LICENSES FOR W3C TEST SUITES](https://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html). 3 | -------------------------------------------------------------------------------- /tests/index.html: -------------------------------------------------------------------------------- 1 | manifest.html -------------------------------------------------------------------------------- /tests/manifest.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": ["https://w3c.github.io/json-ld-api/tests/context.jsonld", {"@base": "manifest"}], 3 | "@id": "", 4 | "@type": "mf:Manifest", 5 | "name": "JSON-LD Test Suite", 6 | "description": "This manifest loads additional manifests for specific behavior tests", 7 | "sequence": [ 8 | "stream-toRdf-manifest.jsonld" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0001-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://greggkellogg.net/foaf#me", 3 | "http://xmlns.com/foaf/0.1/name": "Gregg Kellogg" 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/0001-out.nq: -------------------------------------------------------------------------------- 1 | "Gregg Kellogg" . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0002-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"foaf": "http://xmlns.com/foaf/0.1/"}, 3 | "@id": "http://greggkellogg.net/foaf#me", 4 | "foaf:name": "Gregg Kellogg" 5 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/0002-out.nq: -------------------------------------------------------------------------------- 1 | "Gregg Kellogg" . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0003-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"foaf": "http://xmlns.com/foaf/0.1/"}, 3 | "@type": "foaf:Person" 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/0003-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0004-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://www.w3.org/2000/01/rdf-schema#label": { 3 | "@value": "A plain literal with a lang tag.", 4 | "@language": "en-us" 5 | } 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/0004-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "A plain literal with a lang tag."@en-us . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0005-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://greggkellogg.net/foaf#me", 3 | "http://xmlns.com/foaf/0.1/knows": { 4 | "http://xmlns.com/foaf/0.1/name": {"@value": "Herman Iván", "@language": "hu"} 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0005-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 "Herman Iván"@hu . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0006-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://greggkellogg.net/foaf#me", 3 | "http://purl.org/dc/terms/created": { 4 | "@type": "http://www.w3.org/2001/XMLSchema#date", 5 | "@value": "1957-02-27" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0006-out.nq: -------------------------------------------------------------------------------- 1 | "1957-02-27"^^ . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0007-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@type": "http://xmlns.com/foaf/0.1/Person", 3 | "@id": "http://greggkellogg.net/foaf#me" 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/0007-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0008-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"d": "http://example.com/default#"}, 3 | "d:foo": "bar" 4 | } 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0008-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "bar" . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0009-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"foo": "http://example.com/default#"}, 3 | "foo:": "bar" 4 | } 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0009-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "bar" . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0010-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"foaf": "http://xmlns.com/foaf/0.1/"}, 3 | "@id": "http://greggkellogg.net/foaf#me", 4 | "foaf:knows": { 5 | "@id": "http://manu.sporny.org/#me", 6 | "foaf:name": "Manu Sporny" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0010-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | "Manu Sporny" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0011-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "foaf": "http://xmlns.com/foaf/0.1/" 4 | }, 5 | "@id": "http://greggkellogg.net/foaf#me", 6 | "foaf:knows": { 7 | "foaf:name": "Dave Longley" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0011-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 "Dave Longley" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0012-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "foaf": "http://xmlns.com/foaf/0.1/" 4 | }, 5 | "@id": "http://greggkellogg.net/foaf#me", 6 | "foaf:knows": ["Manu Sporny", "Dave Longley"] 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/0012-out.nq: -------------------------------------------------------------------------------- 1 | "Dave Longley" . 2 | "Manu Sporny" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0013-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "foaf": "http://xmlns.com/foaf/0.1/" 4 | }, 5 | "@id": "http://greggkellogg.net/foaf#me", 6 | "foaf:knows": {"@list": []} 7 | } 8 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0013-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0014-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "foaf": "http://xmlns.com/foaf/0.1/" 4 | }, 5 | "@id": "http://greggkellogg.net/foaf#me", 6 | "foaf:knows": {"@list": ["Manu Sporny"]} 7 | } 8 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0014-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 "Manu Sporny" . 3 | _:b0 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0015-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "foaf": "http://xmlns.com/foaf/0.1/" 4 | }, 5 | "@id": "http://greggkellogg.net/foaf#me", 6 | "foaf:knows": {"@list": ["Manu Sporny", "Dave Longley"]} 7 | } 8 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0016-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@type": "http://www.w3.org/2000/01/rdf-schema#Resource", 3 | "@id": "" 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/0016-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0017-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@type": "http://www.w3.org/2000/01/rdf-schema#Resource", 3 | "@id": "a/b" 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/0017-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0018-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@type": "http://www.w3.org/2000/01/rdf-schema#Resource", 3 | "@id": "#frag" 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/0018-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0019-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "foaf": "http://xmlns.com/foaf/0.1/", 4 | "knows": {"@id": "http://xmlns.com/foaf/0.1/knows", "@type": "@id"} 5 | }, 6 | "@id": "http://greggkellogg.net/foaf#me", 7 | "knows": "http://manu.sporny.org/#me" 8 | } 9 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0019-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0020-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "xsd": "http://www.w3.org/2001/XMLSchema#", 4 | "created": {"@id": "http://purl.org/dc/terms/created", "@type": "xsd:date"} 5 | }, 6 | "@id": "http://greggkellogg.net/foaf#me", 7 | "created": "1957-02-27" 8 | } 9 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0020-out.nq: -------------------------------------------------------------------------------- 1 | "1957-02-27"^^ . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0022-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { "measure": "http://example/measure#"}, 3 | "measure:cups": 5.3 4 | } 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0022-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "5.3E0"^^ . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0023-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { "chem": "http://example/chem#"}, 3 | "chem:protons": 12 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/0023-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "12"^^ . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0024-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { "sensor": "http://example/sensor#"}, 3 | "sensor:active": true 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/0024-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "true"^^ . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0025-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "knows": {"@id": "http://xmlns.com/foaf/0.1/knows", "@container": "@list"} 4 | }, 5 | "@id": "http://greggkellogg.net/foaf#me", 6 | "knows": ["Manu Sporny"] 7 | } 8 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0025-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 "Manu Sporny" . 3 | _:b0 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0026-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"rdfs": "http://www.w3.org/2000/01/rdf-schema#"}, 3 | "@type": ["rdfs:Resource", "rdfs:Class"] 4 | } 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0026-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0031-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | "A property" . 3 | "My vocabulary" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0032-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | "Node 2" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0033-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | "Node 2" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0034-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | "Node 2" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0035-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "1.0E0"^^ . 2 | _:b0 "2.2E0"^^ . 3 | _:b0 "8"^^ . 4 | _:b0 "9.9E0"^^ . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0036-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://example.com/", 3 | "ex:prop1": { 4 | "@list": [ { "@id": "_:x1" }, { "@id": "_:x2" } ] 5 | }, 6 | "ex:prop2": { "@id": "_:x3" } 7 | } 8 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0113-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://example/g", 3 | "@graph": { 4 | "@id": "http://example/s", 5 | "http://example/p": {"@id": "http://example/o"} 6 | } 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/0113-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0114-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "_:g", 3 | "@graph": { 4 | "@id": "http://example/s", 5 | "http://example/p": {"@id": "http://example/o"} 6 | } 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/0114-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0115-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | _:b0 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0116-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://example/s0", 3 | "http://example/p0": {"@id": "http://example/o0"}, 4 | "@graph": { 5 | "@id": "http://example/s1", 6 | "http://example/p1": {"@id": "http://example/o1"} 7 | } 8 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/0116-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0117-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example/p0": {"@id": "http://example/o0"}, 3 | "@graph": { 4 | "@id": "http://example/s1", 5 | "http://example/p1": {"@id": "http://example/o1"} 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0117-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0118-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b0 . 2 | _:b0 _:b0 "plain value" . 3 | _:b0 _:b0 . 4 | _:b0 _:b0 _:b0 . 5 | _:b0 _:b0 _:b1 . 6 | _:b0 _:b0 _:b2 . 7 | _:b0 _:b0 _:b3 . 8 | _:b1 _:b0 "term" . 9 | _:b2 _:b0 "termId" . 10 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0119-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "foo": "http://example.org/foo", 4 | "bar": { "@reverse": "http://example.org/bar", "@type": "@id" } 5 | }, 6 | "foo": "Foo", 7 | "bar": [ "http://example.org/origin", "_:b0" ] 8 | } 9 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0119-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 "Foo" . 3 | _:b1 _:b0 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0127-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | . 4 | . 5 | . 6 | . 7 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0128-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"@base": "http://ab//de//ghi", "urn:ex:p": {"@type": "@id"}}, 3 | "@graph": [ 4 | {"@id": "urn:ex:s301", "urn:ex:p": "xyz"}, 5 | {"@id": "urn:ex:s302", "urn:ex:p": "./xyz"}, 6 | {"@id": "urn:ex:s303", "urn:ex:p": "../xyz"} 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0128-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0129-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"@base": "http://abc/d:f/ghi", "urn:ex:p": {"@type": "@id"}}, 3 | "@graph": [ 4 | {"@id": "urn:ex:s304", "urn:ex:p": "xyz"}, 5 | {"@id": "urn:ex:s305", "urn:ex:p": "./xyz"}, 6 | {"@id": "urn:ex:s306", "urn:ex:p": "../xyz"} 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0129-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0130-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"@base": "tag:example", "urn:ex:p": {"@type": "@id"}}, 3 | "@graph": [ 4 | {"@id": "urn:ex:s307", "urn:ex:p": "a"} 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0130-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0131-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"@base": "tag:example/foo", "urn:ex:p": {"@type": "@id"}}, 3 | "@graph": [ 4 | {"@id": "urn:ex:s308", "urn:ex:p": "a"} 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0131-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0132-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"@base": "tag:example/foo/", "urn:ex:p": {"@type": "@id"}}, 3 | "@graph": [ 4 | {"@id": "urn:ex:s309", "urn:ex:p": "a"} 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /tests/stream-toRdf/0132-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c001-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "foo": {"@context": {"bar": "http://example.org/bar"}} 5 | }, 6 | "foo": { 7 | "bar": "baz" 8 | } 9 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/c001-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b1 "baz" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c002-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "foo": {"@context": {"bar": {"@type": "@id"}}}, 5 | "bar": {"@type": "http://www.w3.org/2001/XMLSchema#string"} 6 | }, 7 | "foo": { 8 | "bar": "http://example/baz" 9 | } 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/c002-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b1 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c003-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "foo": {"@context": {"Bar": {"@id": "bar"}}} 5 | }, 6 | "foo": { 7 | "Bar": "baz" 8 | } 9 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/c003-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b1 "baz" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c004-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "foo": {"@context": {"baz": {"@type": "@vocab"}}} 5 | }, 6 | "foo": { 7 | "bar": { 8 | "baz": "buzz" 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/c004-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b1 _:b2 . 3 | _:b2 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c005-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "b": {"@context": {"c": "http://example.org/c"}} 5 | }, 6 | "a": { 7 | "@context": {"@vocab": "http://example.com/"}, 8 | "b": { 9 | "a": "A in example.com", 10 | "c": "C in example.org" 11 | }, 12 | "c": "C in example.com" 13 | }, 14 | "c": "C in example" 15 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/c005-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b0 "C in example" . 3 | _:b1 "C in example.com" . 4 | _:b1 _:b2 . 5 | _:b2 "A in example.com" . 6 | _:b2 "C in example.org" . 7 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c006-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "Foo": {"@context": {"bar": "http://example.org/bar"}} 5 | }, 6 | "a": {"@type": "Foo", "bar": "baz"} 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/c006-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b1 "baz" . 3 | _:b1 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c007-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "Foo": {"@context": {"bar": {"@type": "@id"}}}, 5 | "bar": {"@type": "http://www.w3.org/2001/XMLSchema#string"} 6 | }, 7 | "a": {"@type": "Foo", "bar": "http://example/baz"} 8 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/c007-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b1 . 3 | _:b1 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c008-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "type": "@type", 5 | "Foo": {"@context": {"bar": "http://example.org/bar"}} 6 | }, 7 | "a": {"type": "Foo", "bar": "baz"} 8 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/c008-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b1 "baz" . 3 | _:b1 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c009-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "Foo": {"@context": {"baz": {"@type": "@vocab"}}} 5 | }, 6 | "@type": "Foo", 7 | "bar": {"baz": "buzz"} 8 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/c009-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b0 . 3 | _:b1 "buzz" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c010-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "B": {"@context": {"c": "http://example.org/c"}} 5 | }, 6 | "a": { 7 | "@context": {"@vocab": "http://example.com/"}, 8 | "@type": "B", 9 | "a": "A in example.com", 10 | "c": "C in example.org" 11 | }, 12 | "c": "C in example" 13 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/c010-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b0 "C in example" . 3 | _:b1 "C in example.org" . 4 | _:b1 "A in example.com" . 5 | _:b1 . 6 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c011-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "t1": {"@context": {"foo": {"@id": "http://example.com/foo"}}}, 5 | "t2": {"@context": {"foo": {"@id": "http://example.org/foo", "@type": "@id"}}} 6 | }, 7 | "@type": ["t2", "t1"], 8 | "foo": "urn:bar" 9 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/c011-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 . 3 | _:b0 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c012-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "Foo": { 5 | "@context": { 6 | "bar": { 7 | "@context": { 8 | "baz": {"@type": "@vocab"} 9 | } 10 | } 11 | } 12 | } 13 | }, 14 | "@type": "Foo", 15 | "bar": {"baz": "buzz"} 16 | } 17 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c012-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b0 . 3 | _:b1 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c014-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "foo": "http://example/foo", 5 | "Type": { 6 | "@context": [ 7 | null 8 | ] 9 | } 10 | }, 11 | "foo": "will-exist", 12 | "p": { 13 | "@type": "Type", 14 | "foo": "will-not-exist" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c014-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "will-exist" . 2 | _:b0 _:b1 . 3 | _:b1 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c016-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "Type": { 5 | "@context": { 6 | "@vocab": "http://example.com/" 7 | } 8 | } 9 | }, 10 | "foo": "org", 11 | "p": { 12 | "@type": "Type", 13 | "foo": "com", 14 | "nested": { 15 | "nested-prop": "org" 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c016-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b0 "org" . 3 | _:b1 "com" . 4 | _:b1 _:b2 . 5 | _:b1 . 6 | _:b2 "org" . 7 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c017-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "foo" . 2 | _:b0 _:b1 . 3 | _:b0 . 4 | _:b0 . 5 | _:b1 "vocab" . 6 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c018-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "foo" . 2 | _:b0 . 3 | _:b0 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c019-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b2 . 2 | _:b0 _:b3 . 3 | _:b0 _:b1 . 4 | _:b0 . 5 | _:b1 "foo" . 6 | _:b2 "bar" . 7 | _:b3 "baz" . 8 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c020-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "type": "@type", 5 | "Type": { 6 | "@context": { 7 | "value": "@value" 8 | } 9 | } 10 | }, 11 | "type": "Type", 12 | "v": { 13 | "type": "value-type", 14 | "value": "value" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c020-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 "value"^^ . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c021-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b2 "v4" . 3 | _:b2 _:b3 . 4 | _:b1 _:b2 . 5 | _:b1 "v1" . 6 | _:b1 "v2" . 7 | _:b1 "v3" . 8 | _:b1 . 9 | _:b3 "v5" . 10 | _:b3 . 11 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c022-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c023-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b0 . 3 | _:b1 . 4 | _:b1 . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c024-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b0 . 3 | _:b1 "2"^^ . 4 | _:b1 "1" . 5 | _:b1 . 6 | _:b1 . 7 | _:b1 . 8 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c025-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b0 . 3 | _:b2 "bar" _:b1 . 4 | _:b2 _:b1 . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c026-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@vocab": "http://example/", 5 | "Foo": { 6 | "@context": { 7 | "@propagate": true, 8 | "baz": {"@type": "@vocab"} 9 | } 10 | } 11 | }, 12 | "@type": "Foo", 13 | "bar": {"baz": "buzz"} 14 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/c026-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b0 . 3 | _:b1 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c027-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@vocab": "http://example/", 5 | "bar": { 6 | "@context": { 7 | "@propagate": false, 8 | "baz": {"@type": "@id"} 9 | } 10 | } 11 | }, 12 | "bar": {"baz": {"baz": "buzz"}} 13 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/c027-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b1 _:b2 . 3 | _:b2 "buzz" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c028-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@vocab": "http://example/" 5 | }, 6 | "bar": { 7 | "@context": { 8 | "@propagate": false, 9 | "baz": {"@type": "@vocab"} 10 | }, 11 | "baz": { 12 | "baz": "buzz" 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/c028-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b1 _:b2 . 3 | _:b2 "buzz" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c029-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@propagate": true 4 | } 5 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/c030-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@propagate": "not boolean" 5 | } 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/c031-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@base": "http://example.org/c/", 5 | "inner": { 6 | "@id": "http://a.example/in" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c031-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [ 3 | {"@base": "http://example.org/a/"}, 4 | "c031/c031-context.jsonld" 5 | ], 6 | "outer": { 7 | "inner": "ab" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c031-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b1 "ab" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c031/c031-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@base": "http://example.org/b/", 5 | "outer": { 6 | "@id": "http://a.example/out", 7 | "@context": "../c031-context.jsonld" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c032-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "t1": { 5 | "@context": { 6 | "t2": { 7 | "@context": {"type": null} 8 | } 9 | }, 10 | "@id": "ex:t1" 11 | } 12 | }, 13 | "t1": "something" 14 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/c033-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "t1": { 5 | "@id": "ex:t1", 6 | "@context": { 7 | "t2": { 8 | "@context": {"type": null} 9 | } 10 | } 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c034-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "bar": "http://example.org/bar" 4 | } 5 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/c034-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "foo": {"@context": "c034-context.jsonld"} 5 | }, 6 | "foo": { 7 | "bar": "baz" 8 | } 9 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/c034-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b1 "baz" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c035-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://vocab.org/", 4 | "prop1": {} 5 | }, 6 | "@id": "ex:outer", 7 | "foo": { 8 | "@context": { 9 | "@vocab": "http://vocab.override.org/" 10 | }, 11 | "@id": "ex:inner", 12 | "prop1": "baz1", 13 | "prop2": "baz2" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /tests/stream-toRdf/c035-out.nq: -------------------------------------------------------------------------------- 1 | "baz1" . 2 | "baz2" . 3 | . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/di01-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@direction": "rtl", 5 | "ex": "http://example.org/vocab#", 6 | "ex:ltr": { "@direction": "ltr" }, 7 | "ex:none": { "@direction": null } 8 | }, 9 | "ex:rtl": "rtl", 10 | "ex:ltr": "ltr", 11 | "ex:none": "no direction" 12 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/di01-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "ltr" . 2 | _:b0 "rtl" . 3 | _:b0 "no direction" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/di03-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "foo_ltr": {"@id": "http://example.com/foo", "@container": "@list", "@direction": "ltr"}, 5 | "foo_rtl": {"@id": "http://example.com/foo", "@container": "@list", "@direction": "rtl"} 6 | }, 7 | "foo_ltr": ["en"], 8 | "foo_rtl": ["ar"] 9 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/di04-out.nq: -------------------------------------------------------------------------------- 1 | "The Queen"@en . 2 | "Die Königin"@de . 3 | "Ihre Majestät"@de . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/di05-out.nq: -------------------------------------------------------------------------------- 1 | "The Queen"@en . 2 | "Die Königin"@de . 3 | "Ihre Majestät"@de . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/di06-out.nq: -------------------------------------------------------------------------------- 1 | "The Queen"@en . 2 | "Die Königin"@de . 3 | "Ihre Majestät"@de . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/di07-out.nq: -------------------------------------------------------------------------------- 1 | "The Queen"@en . 2 | "Die Königin"@de . 3 | "Ihre Majestät"@de . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/di08-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@direction": "foo" 5 | }, 6 | "vocab:term": "bar" 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/di09-in.jsonld: -------------------------------------------------------------------------------- 1 | {"http://example.org/label": {"@value": "no language", "@direction": "rtl"}} -------------------------------------------------------------------------------- /tests/stream-toRdf/di09-out.nq: -------------------------------------------------------------------------------- 1 | _:a "no language"^^ . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/di10-in.jsonld: -------------------------------------------------------------------------------- 1 | {"http://example.org/label": {"@value": "en-US", "@language": "en-US", "@direction": "rtl"}} -------------------------------------------------------------------------------- /tests/stream-toRdf/di10-out.nq: -------------------------------------------------------------------------------- 1 | _:a "en-US"^^ . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/di11-in.jsonld: -------------------------------------------------------------------------------- 1 | {"http://example.org/label": {"@value": "no language", "@direction": "rtl"}} -------------------------------------------------------------------------------- /tests/stream-toRdf/di11-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b2 . 2 | _:b2 "rtl" . 3 | _:b2 "no language" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/di12-in.jsonld: -------------------------------------------------------------------------------- 1 | {"http://example.org/label": {"@value": "en-US", "@language": "en-US", "@direction": "rtl"}} -------------------------------------------------------------------------------- /tests/stream-toRdf/di12-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b2 . 2 | _:b2 "rtl" . 3 | _:b2 "en-us" . 4 | _:b2 "en-US" . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e001-in.jsonld: -------------------------------------------------------------------------------- 1 | {"@id": "http://example.org/test#example"} -------------------------------------------------------------------------------- /tests/stream-toRdf/e001-out.nq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/json-ld-streaming/eec663c780904d292606b341831f462128972bb9/tests/stream-toRdf/e001-out.nq -------------------------------------------------------------------------------- /tests/stream-toRdf/e003-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://example.org/id", 3 | "http://example.org/property": null, 4 | "regularJson": { 5 | "nonJsonLd": "property", 6 | "deep": [{ 7 | "foo": "bar" 8 | }, { 9 | "bar": "foo" 10 | }] 11 | } 12 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e003-out.nq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/json-ld-streaming/eec663c780904d292606b341831f462128972bb9/tests/stream-toRdf/e003-out.nq -------------------------------------------------------------------------------- /tests/stream-toRdf/e007-out.nq: -------------------------------------------------------------------------------- 1 | "2011-01-25T00:00:00Z"^^ . 2 | . 3 | . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e008-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/vocab#" 4 | }, 5 | "@id": "http://example.org/test", 6 | "ex:test": { "@value": "test", "@language": "en" }, 7 | "ex:drop-lang-only": { "@language": "en" }, 8 | "ex:keep-full-value": { "@value": "only value" } 9 | } 10 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e008-out.nq: -------------------------------------------------------------------------------- 1 | "only value" . 2 | "test"@en . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e010-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "d": "http://purl.org/dc/elements/1.1/", 4 | "e": "http://example.org/vocab#", 5 | "f": "http://xmlns.com/foaf/0.1/", 6 | "xsd": "http://www.w3.org/2001/XMLSchema#" 7 | }, 8 | "@id": "http://example.org/test", 9 | "e:bool": true, 10 | "e:int": 123 11 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e010-out.nq: -------------------------------------------------------------------------------- 1 | "true"^^ . 2 | "123"^^ . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e011-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | "Title" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e019-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "myproperty": "http://example.com/myproperty" 4 | }, 5 | "myproperty": { "@value" : null } 6 | } 7 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e019-out.nq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/json-ld-streaming/eec663c780904d292606b341831f462128972bb9/tests/stream-toRdf/e019-out.nq -------------------------------------------------------------------------------- /tests/stream-toRdf/e022-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": "http://example.com/term", 4 | "@language": "en" 5 | }, 6 | "term": "v" 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e022-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "v"@en . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e025-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "foo": "http://example.com/foo/", 4 | "foo:bar": "http://example.com/foo/bar", 5 | "bar": {"@id": "foo:bar", "@type": "@id"}, 6 | "_": "http://example.com/underscore/" 7 | }, 8 | "@type": [ "foo", "foo:bar", "_" ] 9 | } 10 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e025-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 . 3 | _:b0 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e027-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "mylist": {"@id": "http://example.com/mylist", "@container": "@list"}, 4 | "myset": {"@id": "http://example.com/myset", "@container": "@set"} 5 | }, 6 | "@id": "http://example.org/id", 7 | "mylist": [1, 2, 2, 3], 8 | "myset": [1, 2, 2, 3] 9 | } 10 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e028-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/vocab#", 4 | "date": { "@type": "dateTime" } 5 | }, 6 | "@type": "test", 7 | "@id": "example1", 8 | "date": "2011-01-25T00:00:00Z", 9 | "embed": { 10 | "@id": "example2", 11 | "expandedDate": { "@type": "dateTime", "@value": "2012-08-01T00:00:00Z" } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e030-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "vocab": "http://example.com/vocab/", 4 | "label": { 5 | "@id": "vocab:label", 6 | "@container": "@language" 7 | } 8 | }, 9 | "@id": "http://example.com/queen", 10 | "label": { 11 | "en": "The Queen", 12 | "de": [ "Die Königin", "Ihre Majestät" ] 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e030-out.nq: -------------------------------------------------------------------------------- 1 | "Die Königin"@de . 2 | "Ihre Majestät"@de . 3 | "The Queen"@en . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e032-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://xmlns.com/foaf/0.1/", 4 | "from": null, 5 | "university": { "@id": null } 6 | }, 7 | "@id": "http://me.markus-lanthaler.com/", 8 | "name": "Markus Lanthaler", 9 | "from": "Italy", 10 | "university": "TU Graz" 11 | } 12 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e032-out.nq: -------------------------------------------------------------------------------- 1 | "Markus Lanthaler" . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e033-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "2012-10-28"^^ . 2 | _:b0 . 3 | _:b0 "Markus Lanthaler" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e037-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://xmlns.com/foaf/0.1/name" 4 | }, 5 | "@id": "http://example.com/people/markus", 6 | "name": "Markus Lanthaler", 7 | "@reverse": { 8 | "http://xmlns.com/foaf/0.1/knows": { 9 | "@id": "http://example.com/people/dave", 10 | "name": "Dave Longley" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e037-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | "Dave Longley" . 3 | "Markus Lanthaler" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e038-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b0 . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e039-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | "Dave Longley" . 3 | "Markus Lanthaler" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e041-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "property": "http://example.com/property", 4 | "nested": "http://example.com/nested", 5 | "@language": "en" 6 | }, 7 | "property": "this is English", 8 | "nested": { 9 | "@context": { 10 | "@language": null 11 | }, 12 | "property": "and this is a plain string" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e041-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b0 "this is English"@en . 3 | _:b1 "and this is a plain string" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e042-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://xmlns.com/foaf/0.1/name", 4 | "isKnownBy": { "@reverse": "http://xmlns.com/foaf/0.1/knows" } 5 | }, 6 | "@id": "http://example.com/people/markus", 7 | "name": "Markus Lanthaler", 8 | "isKnownBy": { 9 | "@id": "http://example.com/people/dave", 10 | "name": "Dave Longley" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e042-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | "Dave Longley" . 3 | "Markus Lanthaler" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e044-out.nq: -------------------------------------------------------------------------------- 1 | "einfacher String"@de . 2 | . 3 | "simple string"@en . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e045-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@value": "free-floating value" 3 | } 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e045-out.nq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/json-ld-streaming/eec663c780904d292606b341831f462128972bb9/tests/stream-toRdf/e045-out.nq -------------------------------------------------------------------------------- /tests/stream-toRdf/e046-out.nq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/json-ld-streaming/eec663c780904d292606b341831f462128972bb9/tests/stream-toRdf/e046-out.nq -------------------------------------------------------------------------------- /tests/stream-toRdf/e047-out.nq: -------------------------------------------------------------------------------- 1 | "nodes with properties are not removed" . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e049-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | "Markus Lanthaler" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e050-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "issue": { "@id": "http://example.com/issue/", "@type": "@id" }, 4 | "issue:raisedBy": { "@container": "@set" } 5 | }, 6 | "issue": "/issue/1", 7 | "issue:raisedBy": "Markus" 8 | } 9 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e050-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 "Markus" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e051-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [ 3 | { "id": "@id" }, 4 | { "url": "id" } 5 | ], 6 | "url": "/issue/1", 7 | "http://example.com/property": "ok" 8 | } 9 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e051-out.nq: -------------------------------------------------------------------------------- 1 | "ok" . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e052-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "property": "vocabRelativeProperty" 5 | }, 6 | "property": "must expand to http://example.org/vocabRelativeProperty", 7 | "http://example.org/property": "ok" 8 | } 9 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e052-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "ok" . 2 | _:b0 "must expand to http://example.org/vocabRelativeProperty" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e053-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example.org/term", "@type": "@vocab"} 4 | }, 5 | "term": "http://example.org/enum" 6 | } 7 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e053-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e054-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example.org/term", "@type": "@vocab"}, 4 | "enum": {"@id": "http://example.org/enum"} 5 | }, 6 | "term": "enum" 7 | } 8 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e054-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e055-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "term": {"@id": "http://example.org/term", "@type": "@vocab"} 5 | }, 6 | "term": "enum" 7 | } 8 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e055-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e056-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | "Markus Lanthaler" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e057-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": { "@id": "http://example.org/term", "@type": "@vocab" } 4 | }, 5 | "term": "not-a-term-thus-a-relative-IRI" 6 | } 7 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e057-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e058-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": { "@id": "http://example.org/term", "@type": "@vocab" }, 4 | "prefix": "http://example.com/vocab#" 5 | }, 6 | "term": "prefix:suffix" 7 | } 8 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e058-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e061-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "property": { 4 | "@id": "http://example.com/property", 5 | "@type": "http://example.com/datatype" 6 | } 7 | }, 8 | "property": [ 1, true, false, 5.1 ] 9 | } 10 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e061-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "1"^^ . 2 | _:b0 "5.1E0"^^ . 3 | _:b0 "false"^^ . 4 | _:b0 "true"^^ . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e064-out.nq: -------------------------------------------------------------------------------- 1 | "Markus Lanthaler" . 2 | _:b0 . 3 | _:b0 "Dave Longley" . 4 | _:b1 . 5 | _:b1 "Gregg Kellogg" . 6 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e065-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | "Dave Longley" . 3 | "Markus Lanthaler" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e067-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "http": "http://example.com/this-prefix-would-overwrite-all-http-iris" 4 | }, 5 | "@type": "http://example.org/type", 6 | "@id": "http://example.org/node1", 7 | "http://example.org/property": "all these IRIs remain unchanged because they are interpreted as absolute IRIs" 8 | } 9 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e067-out.nq: -------------------------------------------------------------------------------- 1 | "all these IRIs remain unchanged because they are interpreted as absolute IRIs" . 2 | . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e068-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "_": "http://example.com/this-prefix-would-overwrite-all-blank-node-identifiers" 4 | }, 5 | "@type": "_:type", 6 | "@id": "_:node1", 7 | "_:property": "all these IRIs remain unchanged because they are interpreted as blank node identifiers" 8 | } 9 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e068-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 _:b0 . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e069-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "rdfs": "http://www.w3.org/2000/01/rdf-schema#", 4 | "rdfs:subClassOf": { "@id": "rdfs:subClassOf", "@type": "@id" } 5 | }, 6 | "@type": "rdfs:Class", 7 | "@id": "http://example.com/vocab#class", 8 | "rdfs:subClassOf": "http://example.com/vocab#someOtherClass" 9 | } 10 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e069-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e070-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "prefix": "http://www.example.org/vocab#", 4 | "prefix:foo": "prefix:foo" 5 | }, 6 | "@type": "prefix:Class", 7 | "@id": "http://example.com/vocab#id", 8 | "prefix:foo": "bar" 9 | } 10 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e070-out.nq: -------------------------------------------------------------------------------- 1 | "bar" . 2 | . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e071-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "value of v:term" . 2 | _:b0 "value of v:termId" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e072-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [ 3 | { 4 | "v": "http://example.com/vocab#", 5 | "term": "v:somethingElse" 6 | }, 7 | { 8 | "@vocab": "http://example.com/anotherVocab#", 9 | "term": "term" 10 | } 11 | ], 12 | "term": "value of term" 13 | } 14 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e072-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "value of term" . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e073-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | "Node 2" . 3 | . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e074-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | "Node 2" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e075-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "_:" 4 | }, 5 | "@id": "ex:node1", 6 | "b1": "blank node property 1", 7 | "b2": "blank node property 1" 8 | } 9 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e075-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 "blank node property 1" . 2 | _:b2 "blank node property 1" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e076-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "relative-iri", 3 | "http://prop": "value" 4 | } 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e076-out.nq: -------------------------------------------------------------------------------- 1 | "value" . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e077-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "t1": "http://example.com/t1", 4 | "t2": "http://example.com/t2", 5 | "term1": "http://example.com/term1", 6 | "term2": "http://example.com/term2", 7 | "term3": "http://example.com/term3", 8 | "term4": "http://example.com/term4", 9 | "term5": "http://example.com/term5" 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e077-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@type": "t1", 3 | "@id": "http://example.com/id1", 4 | "term1": "v1", 5 | "term2": {"@type": "t2", "@value": "v2"}, 6 | "term3": {"@value": "v3", "@language": "en"}, 7 | "term4": 4, 8 | "term5": [50, 51] 9 | } 10 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e079-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "input": {"@id": "foo:input", "@container": "@graph"}, 5 | "value": "foo:value" 6 | }, 7 | "input": { 8 | "value": "x" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e079-out.nq: -------------------------------------------------------------------------------- 1 | _:b2 "x" _:b1 . 2 | _:b0 _:b1 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e080-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "input": {"@id": "foo:input", "@container": ["@graph", "@set"]}, 5 | "value": "foo:value" 6 | }, 7 | "input": [{ 8 | "value": "x" 9 | }] 10 | } 11 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e080-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b2 "x" _:b1 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e081-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": "@graph"} 5 | }, 6 | "input": { 7 | "@graph": { 8 | "value": "x" 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e081-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b3 "x" _:b2 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e082-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": ["@graph", "@index"]} 5 | }, 6 | "input": { 7 | "g1": {"value": "x"} 8 | } 9 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e082-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b2 "x" _:b1 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e083-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": ["@graph", "@index", "@set"]} 5 | }, 6 | "input": { 7 | "g1": {"value": "x"} 8 | } 9 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e083-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b2 "x" _:b1 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e084-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": ["@graph", "@index"]} 5 | }, 6 | "input": { 7 | "g1": { 8 | "@graph": { 9 | "value": "x" 10 | } 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e084-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b2 "x" _:b1 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e085-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": ["@graph", "@id"]} 5 | }, 6 | "input": { 7 | "http://example.com/g1": {"value": "x"} 8 | } 9 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e085-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "x" . 2 | _:b1 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e086-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": ["@graph", "@id", "@set"]} 5 | }, 6 | "input": { 7 | "http://example.com/g1": {"value": "x"} 8 | } 9 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e086-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "x" . 2 | _:b1 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e087-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": ["@graph", "@id"]} 5 | }, 6 | "input": { 7 | "http://example.com/g1": { 8 | "@graph": { 9 | "value": "x" 10 | } 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e087-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "x" . 2 | _:b1 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e088-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "@base": "http://example.com/", 5 | "coerceId": {"@type": "@id"}, 6 | "coerceVocab": {"@type": "@vocab"} 7 | }, 8 | "coerceDefault": ["string", true, false, 0, 1], 9 | "coerceId": ["string", true, false, 0, 1], 10 | "coerceVocab": ["string", true, false, 0, 1] 11 | } 12 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e089-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@base": "" 4 | }, 5 | "@id": "relative-iri", 6 | "http://prop": "value" 7 | } 8 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e089-out.nq: -------------------------------------------------------------------------------- 1 | "value" . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e090-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@base": ".." 4 | }, 5 | "@id": "relative-iri", 6 | "http://prop": "value" 7 | } 8 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e090-out.nq: -------------------------------------------------------------------------------- 1 | "value" . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e091-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [{ 3 | "@base": "http://foo.bar/./baz/" 4 | }, { 5 | "@base": "example/" 6 | }], 7 | "@id": "relative-iri", 8 | "http://prop": "value" 9 | } 10 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e091-out.nq: -------------------------------------------------------------------------------- 1 | "value" . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e093-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "input": {"@id": "foo:input", "@container": "@graph"}, 5 | "value": "foo:value" 6 | }, 7 | "input": [{ 8 | "value": "x" 9 | }, { 10 | "value": "y" 11 | }] 12 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e093-out.nq: -------------------------------------------------------------------------------- 1 | _:b4 "y" _:b3 . 2 | _:b0 _:b3 . 3 | _:b0 _:b1 . 4 | _:b2 "x" _:b1 . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e094-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "input": {"@id": "foo:input", "@container": ["@graph", "@set"]}, 5 | "value": "foo:value" 6 | }, 7 | "input": [{ 8 | "value": "x" 9 | }, { 10 | "value": "y" 11 | }] 12 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e094-out.nq: -------------------------------------------------------------------------------- 1 | _:b4 "y" _:b3 . 2 | _:b0 _:b3 . 3 | _:b0 _:b1 . 4 | _:b2 "x" _:b1 . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e095-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": "@graph"} 5 | }, 6 | "input": [{ 7 | "@graph": { 8 | "value": "x" 9 | } 10 | }, { 11 | "@graph": { 12 | "value": "y" 13 | } 14 | }] 15 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e095-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b0 _:b4 . 3 | _:b3 "x" _:b2 . 4 | _:b6 "y" _:b5 . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e096-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": ["@graph", "@index"]} 5 | }, 6 | "input": { 7 | "g1": {"value": "x"}, 8 | "g2": {"value": "y"} 9 | } 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e096-out.nq: -------------------------------------------------------------------------------- 1 | _:b4 "y" _:b3 . 2 | _:b0 _:b3 . 3 | _:b0 _:b1 . 4 | _:b2 "x" _:b1 . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e097-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": ["@graph", "@index", "@set"]} 5 | }, 6 | "input": { 7 | "g1": {"value": "x"}, 8 | "g2": {"value": "y"} 9 | } 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e097-out.nq: -------------------------------------------------------------------------------- 1 | _:b4 "y" _:b3 . 2 | _:b0 _:b3 . 3 | _:b0 _:b1 . 4 | _:b2 "x" _:b1 . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e098-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": ["@graph", "@index"]} 5 | }, 6 | "input": { 7 | "g1": {"@graph": {"value": "x"}}, 8 | "g2": {"@graph": {"value": "y"}} 9 | } 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e098-out.nq: -------------------------------------------------------------------------------- 1 | _:b4 "y" _:b3 . 2 | _:b0 _:b3 . 3 | _:b0 _:b1 . 4 | _:b2 "x" _:b1 . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e099-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": ["@graph", "@id"]} 5 | }, 6 | "input": { 7 | "http://example.com/g1": {"value": "x"}, 8 | "http://example.com/g2": {"value": "y"} 9 | } 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e099-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 "x" . 2 | _:b2 "y" . 3 | _:b0 . 4 | _:b0 . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e100-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": ["@graph", "@id", "@set"]} 5 | }, 6 | "input": { 7 | "http://example.com/g1": {"value": "x"}, 8 | "http://example.com/g2": {"value": "y"} 9 | } 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e100-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 "x" . 2 | _:b2 "y" . 3 | _:b0 . 4 | _:b0 . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e101-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 "x" . 2 | _:b2 "y" . 3 | _:b0 . 4 | _:b0 . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e102-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": "@graph"} 5 | }, 6 | "input": { 7 | "@graph": [{ 8 | "value": "x" 9 | }, { 10 | "value": "y" 11 | }] 12 | } 13 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e102-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b3 "x" _:b2 . 3 | _:b4 "y" _:b2 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e103-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": "@graph"} 5 | }, 6 | "input": [{ 7 | "@graph": { 8 | "value": "x" 9 | } 10 | }, { 11 | "@graph": { 12 | "value": "y" 13 | } 14 | }] 15 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e103-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b0 _:b4 . 3 | _:b3 "x" _:b2 . 4 | _:b6 "y" _:b5 . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e104-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": "@graph"} 5 | }, 6 | "input": [ 7 | {"@graph": {"value": "x"}}, 8 | {"value": "y"} 9 | ] 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e104-out.nq: -------------------------------------------------------------------------------- 1 | _:b3 "x" _:b2 . 2 | _:b5 "y" _:b4 . 3 | _:b0 _:b4 . 4 | _:b0 _:b1 . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e105-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": ["@graph", "@index"]} 5 | }, 6 | "input": { 7 | "g1": [{"@graph": {"value": "x"}}, {"value": "y"}], 8 | "g2": [{"@graph": {"value": "a"}}, {"value": "b"}] 9 | } 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e105-out.nq: -------------------------------------------------------------------------------- 1 | _:b6 "a" _:b5 . 2 | _:b8 "b" _:b7 . 3 | _:b4 "y" _:b3 . 4 | _:b0 _:b5 . 5 | _:b0 _:b7 . 6 | _:b0 _:b3 . 7 | _:b0 _:b1 . 8 | _:b2 "x" _:b1 . 9 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e106-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 "x" . 2 | _:b2 "y" . 3 | _:b0 . 4 | _:b0 . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e107-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": ["@graph", "@index"]} 5 | }, 6 | "input": { 7 | "g1": [{"value": "x"}, {"value": "y"}], 8 | "g2": [{"value": "a"}, {"value": "b"}] 9 | } 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e107-out.nq: -------------------------------------------------------------------------------- 1 | _:b6 "a" _:b5 . 2 | _:b8 "b" _:b7 . 3 | _:b4 "y" _:b3 . 4 | _:b0 _:b5 . 5 | _:b0 _:b7 . 6 | _:b0 _:b3 . 7 | _:b0 _:b1 . 8 | _:b2 "x" _:b1 . 9 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e108-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": ["@graph", "@id"]} 5 | }, 6 | "input": { 7 | "http://example.com/g1": [{"value": "x"}, {"value": "y"}], 8 | "http://example.com/g2": [{"value": "a"}, {"value": "b"}] 9 | } 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e109-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@base": "https://ex.org/", 4 | "u": {"@id": "urn:u:", "@type": "@id"} 5 | }, 6 | "u": ["#Test", "#Test:2"] 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e109-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e113-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "valueOf": "http://example.org/valueOf", 4 | "toString": "http://example.org/toString" 5 | }, 6 | "valueOf": "first", 7 | "toString": "second" 8 | } 9 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e113-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "second" . 2 | _:b0 "first" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e114-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "type1": "@type", 5 | "type2": "@type" 6 | }, 7 | "type1": "Type1", 8 | "type2": "Type2" 9 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e114-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e115-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@base": "http://example.com/some/deep/directory/and/file/", 4 | "@vocab": "" 5 | }, 6 | "@id": "relativePropertyIris", 7 | "link": "link" 8 | } 9 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e116-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@base": "http://example.com/some/deep/directory/and/file/", 4 | "@vocab": "/relative" 5 | }, 6 | "@id": "relativePropertyIris", 7 | "link": "link" 8 | } 9 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e117-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/vocab", 4 | ":term": {"@type": "@id"} 5 | }, 6 | ":term": "http://example.org/base" 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e117-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e118-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"@vocab": "http://schema.org/"}, 3 | "@type": "foo:bar-type", 4 | "@id": "foo:bar-id", 5 | "foo:bar": "is an absolute iri property", 6 | "term": "is schema.org/term", 7 | ":fish": "is schema.org/:fish" 8 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e118-out.nq: -------------------------------------------------------------------------------- 1 | "is schema.org/term" . 2 | "is an absolute iri property" . 3 | "is schema.org/:fish" . 4 | . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e119-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@": "http://example.org/vocab/at", 4 | "@foo.bar": "http://example.org/vocab/foo.bar", 5 | "@ignoreMe": "http://example.org/vocab/ignoreMe" 6 | }, 7 | "@": "allowed", 8 | "@foo.bar": "allowed", 9 | "@ignoreMe": "ignored" 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e119-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "allowed" . 2 | _:b0 "allowed" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e120-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.orb/vocab/", 4 | "at": {"@id": "@"}, 5 | "foo.bar": {"@id": "@foo.bar"}, 6 | "ignoreMe": {"@id": "@ignoreMe"} 7 | }, 8 | "at": "allowed", 9 | "foo.bar": "allowed", 10 | "ignoreMe": "resolves to @vocab" 11 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e120-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "allowed" . 2 | _:b0 "allowed" . 3 | _:b0 "resolves to @vocab" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e121-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@base": "http://example.org/", 4 | "@vocab": "http://example.org/vocab/", 5 | "at": {"@reverse": "@"}, 6 | "foo.bar": {"@reverse": "@foo.bar"} 7 | }, 8 | "@id": "foo", 9 | "at": {"@id": "allowed"}, 10 | "foo.bar": {"@id": "allowed"} 11 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e121-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e122-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@base": "http://example.org/" 4 | }, 5 | "http://example.org/vocab/at": {"@id": "@"}, 6 | "http://example.org/vocab/foo.bar": {"@id": "@foo.bar"}, 7 | "http://example.org/vocab/ignoreme": {"@id": "@ignoreMe"} 8 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e122-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e123-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://example.com/foo", 3 | "http://example.com/bar": {"@type": "http://example.com/baz z", "@value": "bar"} 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/e124-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "prop": { 5 | "@id": "ex:prop", 6 | "@context": "e124-context.jsonld" 7 | }, 8 | "value": { 9 | "@id": "ex:value" 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e124-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [ 3 | { 4 | "@version": 1.1, 5 | "ex": { 6 | "@id": "http://example.org/", 7 | "@prefix": true 8 | } 9 | }, 10 | { 11 | "@vocab": "ex:ns/" 12 | } 13 | ], 14 | "foo": "bar" 15 | } 16 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e124-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "bar" . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e125-context-1.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "prop": { 5 | "@id": "ex:prop", 6 | "@context": "e125-context-2.jsonld" 7 | }, 8 | "value": { 9 | "@id": "ex:value" 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e125-context-2.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": "e125-context-1.jsonld" 3 | } 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e125-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [ 3 | { 4 | "@version": 1.1, 5 | "ex": { 6 | "@id": "http://example.org/", 7 | "@prefix": true 8 | } 9 | }, 10 | { 11 | "@vocab": "ex" 12 | } 13 | ], 14 | "foo": "bar" 15 | } 16 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e125-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "bar" . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e126-context-1.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": "e126-context-3.jsonld" 3 | } 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e126-context-2.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": "e126-context-3.jsonld" 3 | } 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e126-context-3.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "prop": { 5 | "@id": "ex:prop", 6 | "@context": "e126-context-3.jsonld" 7 | }, 8 | "value": { 9 | "@id": "ex:value" 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e126-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "prop": { 5 | "@id": "ex:prop", 6 | "@context": "e126-context.jsonld" 7 | }, 8 | "value": { 9 | "@id": "ex:value" 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e126-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": "e126-context.jsonld", 3 | "@id": "ex:id", 4 | "prop": { 5 | "value": "v" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e126-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 "v" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e127-context-1.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "prop": { 5 | "@id": "ex:prop", 6 | "@context": "e127-context-2.jsonld" 7 | }, 8 | "value": { 9 | "@id": "ex:value" 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e127-context-2.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": "e127-context-1.jsonld" 3 | } 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e127-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": "e127-context-1.jsonld", 3 | "@id": "ex:id", 4 | "prop": { 5 | "value": "v" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e127-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 "v" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e128-context-1.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": "e128-context-3.jsonld" 3 | } 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e128-context-2.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": "e128-context-3.jsonld" 3 | } 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e128-context-3.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "prop": { 5 | "@id": "ex:prop", 6 | "@context": "e128-context-3.jsonld" 7 | }, 8 | "value": { 9 | "@id": "ex:value" 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e128-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [ 3 | "e128-context-1.jsonld", 4 | "e128-context-2.jsonld" 5 | ], 6 | "@id": "ex:id", 7 | "prop": { 8 | "value": "v" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e128-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 "v" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e129-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { "@base": "http://example" }, 3 | "@id": "relative-iri", 4 | "http://prop": "value" 5 | } 6 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e129-out.nq: -------------------------------------------------------------------------------- 1 | "value" . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e130-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { "@base": "http://example/base" }, 3 | "@id": "relative-iri", 4 | "http://prop": "value" 5 | } 6 | -------------------------------------------------------------------------------- /tests/stream-toRdf/e130-out.nq: -------------------------------------------------------------------------------- 1 | "value" . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/ec01-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example/", "@index": true} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/ec02-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@type": {} 4 | } 5 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/em01-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example/term", "@container": "@context"} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/en01-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"@vocab": "http://example.org/"}, 3 | "@nest": "This should generate an error" 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/en02-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"@vocab": "http://example.org/"}, 3 | "@nest": true 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/en03-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"@vocab": "http://example.org/"}, 3 | "@nest": 1 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/en04-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"@vocab": "http://example.org/"}, 3 | "@nest": {"@value": "This should generate an error"} 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/en05-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example/term", "@nest": "@id"} 4 | } 5 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/en06-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@reverse": "http://example/term", "@nest": "@nest"} 4 | } 5 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/ep02-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1 4 | } 5 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/ep03-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.0 4 | } 5 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er01-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@type": "@id" 4 | }, 5 | "@type": "http://example.org/type" 6 | } 7 | -------------------------------------------------------------------------------- /tests/stream-toRdf/er02-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": "er02-in.jsonld", 3 | "@id": "http://example/test#example" 4 | } 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/er03-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": "er03-in.jsonld", 3 | "@id": "http://example/test#example" 4 | } 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/er04-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": "tag:non-dereferencable-iri", 3 | "@id": "http://example/test#example" 4 | } 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/er05-in.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@context": "er05-in.jsonld", 3 | "@id": "http://example/test#example" 4 | }] 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/er06-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": true, 3 | "@id": "http://example/test#example" 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er07-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"@base": true}, 3 | "@id": "http://example/test#example" 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er08-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"@vocab": true}, 3 | "@id": "http://example/test#example" 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er09-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"@language": true}, 3 | "@id": "http://example/test#example" 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er10-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "term:term"} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er11-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": true 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er12-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example/term", "@type": true} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er13-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example/term", "@type": "_:not-an-iri"} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er14-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example/term", "@reverse": "http://example/reverse"} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er15-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@reverse": true} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er17-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@reverse": "http://example/reverse", "@container": "@list"} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er18-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": true} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er19-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "@context"} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er20-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@container": "@set"} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er21-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example/term", "@container": "@id"} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er22-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example/term", "@language": true} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er23-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example/term", "@type": "relative/iri"} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er24-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, 3 | "foo": [{"@list": ["baz"]}] 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er25-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://example/foo", 3 | "@reverse": { 4 | "@id": "http://example/bar" 5 | } 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er26-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "id": "@id", 4 | "ID": "@id" 5 | }, 6 | "id": "http://example/foo", 7 | "ID": "http://example/bar" 8 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er27-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": true 3 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er28-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@type": true 3 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er29-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example/prop": {"@value": ["foo"]} 3 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er30-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example/prop": {"@value": "foo", "@language": true} 3 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er31-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example.com/vocab/indexMap": { 3 | "@value": "simple string", 4 | "@language": "en", 5 | "@index": true 6 | } 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er32-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example.com/foo": {"@list": [{"@list": ["baz"]}]} 3 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er33-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example/prop": { 3 | "@reverse": true 4 | } 5 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er34-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://xmlns.com/foaf/0.1/name" 4 | }, 5 | "@id": "http://example.com/people/markus", 6 | "name": "Markus Lanthaler", 7 | "@reverse": { 8 | "http://xmlns.com/foaf/0.1/knows": "Dave Longley" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /tests/stream-toRdf/er35-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "vocab": "http://example.com/vocab/", 4 | "label": { 5 | "@id": "vocab:label", 6 | "@container": "@language" 7 | } 8 | }, 9 | "@id": "http://example.com/queen", 10 | "label": { 11 | "en": true 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/stream-toRdf/er36-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@reverse": "http://example/reverse"} 4 | }, 5 | "@id": "http://example/foo", 6 | "term": {"@list": ["http://example/bar"]} 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er37-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example/foo": {"@value": "bar", "@id": "http://example/baz"} 3 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er38-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example/foo": {"@type": "http://example/type", "@value": "bar", "@language": "en"} 3 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er39-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example/foo": {"@value": true, "@language": "en"} 3 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er40-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example/foo": {"@type": "_:dt", "@value": "bar"} 3 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er41-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example/prop": {"@list": ["foo"], "@id": "http://example/bar"} 3 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er42-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@type": {"@container": "@set"} 4 | }, 5 | "@type": "http://example.org/type" 6 | } 7 | -------------------------------------------------------------------------------- /tests/stream-toRdf/er44-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [ 3 | { 4 | "v": "http://example.com/vocab#", 5 | "v:term": "v:somethingElse", 6 | "v:termId": { "@id": "v:somethingElseId" } 7 | } 8 | ], 9 | "v:term": "value of v:term", 10 | "v:termId": "value of v:termId" 11 | } 12 | -------------------------------------------------------------------------------- /tests/stream-toRdf/er48-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "./something": "http://example.com/vocab#somethingElse" 4 | }, 5 | "./something": "something" 6 | } 7 | -------------------------------------------------------------------------------- /tests/stream-toRdf/er49-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http:/example.org", 4 | "./something": {"@type": "@id", "@prefix": true} 5 | }, 6 | "./something": "something" 7 | } 8 | -------------------------------------------------------------------------------- /tests/stream-toRdf/er50-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "rev": {"@reverse": "not an IRI"} 4 | }, 5 | "@id": "http://example.org/foo", 6 | "rev": {"@id": "http://example.org/bar"} 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er51-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"value": "@value"}, 3 | "http://example/prop": {"value": ["foo"]} 4 | } 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/er52-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example.org/term"}, 4 | "": {"@id": "http://example.org/empty"} 5 | }, 6 | "@id": "http://example/test#example" 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/er53-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example.org/term", "@prefix": 10} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/in01-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@vocab": "http://example.org/" 5 | }, 6 | "prop": "value", 7 | "@included": [{ 8 | "prop": "value2" 9 | }] 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/in01-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "value" . 2 | _:b1 "value2" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/in02-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@vocab": "http://example.org/" 5 | }, 6 | "prop": "value", 7 | "@included": { 8 | "prop": "value2" 9 | } 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/in02-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "value" . 2 | _:b1 "value2" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/in03-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@vocab": "http://example.org/", 5 | "included1": "@included", 6 | "included2": "@included" 7 | }, 8 | "included1": {"prop": "value1"}, 9 | "included2": {"prop": "value2"} 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/in03-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 "value1" . 2 | _:b2 "value2" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/in04-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@vocab": "http://example.org/" 5 | }, 6 | "prop": "value", 7 | "@included": { 8 | "prop": "value2", 9 | "@included": { 10 | "prop": "value3" 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/in04-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "value" . 2 | _:b1 "value2" . 3 | _:b2 "value3" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/in05-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@vocab": "http://example.org/" 5 | }, 6 | "prop": { 7 | "@type": "Foo", 8 | "@included": { 9 | "@type": "Bar" 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/in05-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b1 . 3 | _:b2 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/in07-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@vocab": "http://example.org/" 5 | }, 6 | "@included": "string" 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/in08-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@vocab": "http://example.org/" 5 | }, 6 | "@included": {"@value": "value"} 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/in09-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@vocab": "http://example.org/" 5 | }, 6 | "@included": {"@list": ["value"]} 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/js01-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "e": {"@id": "http://example.org/vocab#bool", "@type": "@json"} 5 | }, 6 | "e": true 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/js01-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "true"^^ . -------------------------------------------------------------------------------- /tests/stream-toRdf/js02-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "e": {"@id": "http://example.org/vocab#bool", "@type": "@json"} 5 | }, 6 | "e": false 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/js02-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "false"^^ . -------------------------------------------------------------------------------- /tests/stream-toRdf/js03-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "e": {"@id": "http://example.org/vocab#double", "@type": "@json"} 5 | }, 6 | "e": 1.23 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/js03-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "1.23"^^ . -------------------------------------------------------------------------------- /tests/stream-toRdf/js04-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "e": {"@id": "http://example.org/vocab#double", "@type": "@json"} 5 | }, 6 | "e": 0.0e0 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/js04-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "0"^^ . -------------------------------------------------------------------------------- /tests/stream-toRdf/js05-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "e": {"@id": "http://example.org/vocab#integer", "@type": "@json"} 5 | }, 6 | "e": 123 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/js05-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "123"^^ . -------------------------------------------------------------------------------- /tests/stream-toRdf/js06-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "e": {"@id": "http://example.org/vocab#object", "@type": "@json"} 5 | }, 6 | "e": {"foo": "bar"} 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/js06-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "{\"foo\":\"bar\"}"^^ . -------------------------------------------------------------------------------- /tests/stream-toRdf/js07-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "e": {"@id": "http://example.org/vocab#array", "@type": "@json"} 5 | }, 6 | "e": [{"foo": "bar"}] 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/js07-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "[{\"foo\":\"bar\"}]"^^ . -------------------------------------------------------------------------------- /tests/stream-toRdf/js08-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "e": {"@id": "http://example.org/vocab#c14n", "@type": "@json"} 5 | }, 6 | "e": [ 7 | 56, 8 | { 9 | "d": true, 10 | "10": null, 11 | "1": [ ] 12 | } 13 | ] 14 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/js08-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "[56,{\"1\":[],\"10\":null,\"d\":true}]"^^ . -------------------------------------------------------------------------------- /tests/stream-toRdf/js09-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "e": {"@id": "http://example.org/vocab#c14n", "@type": "@json"} 5 | }, 6 | "e": { 7 | "peach": "This sorting order", 8 | "péché": "is wrong according to French", 9 | "pêche": "but canonicalization MUST", 10 | "sin": "ignore locale" 11 | } 12 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/js09-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "{\"peach\":\"This sorting order\",\"péché\":\"is wrong according to French\",\"pêche\":\"but canonicalization MUST\",\"sin\":\"ignore locale\"}"^^ . -------------------------------------------------------------------------------- /tests/stream-toRdf/js10-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "e": {"@id": "http://example.org/vocab#c14n", "@type": "@json"} 5 | }, 6 | "e": { 7 | "1": {"f": {"f": "hi","F": 5} ," ": 56.0}, 8 | "10": { }, 9 | "": "empty", 10 | "a": { }, 11 | "111": [ {"e": "yes","E": "no" } ], 12 | "A": { } 13 | } 14 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/js10-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "{\"\":\"empty\",\"1\":{\" \":56,\"f\":{\"F\":5,\"f\":\"hi\"}},\"10\":{},\"111\":[{\"E\":\"no\",\"e\":\"yes\"}],\"A\":{},\"a\":{}}"^^ . -------------------------------------------------------------------------------- /tests/stream-toRdf/js11-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "e": {"@id": "http://example.org/vocab#c14n", "@type": "@json"} 5 | }, 6 | "e": { 7 | "Unnormalized Unicode":"A\u030a" 8 | } 9 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/js11-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "{\"Unnormalized Unicode\":\"Å\"}"^^ . -------------------------------------------------------------------------------- /tests/stream-toRdf/js12-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "e": {"@id": "http://example.org/vocab#c14n", "@type": "@json"} 5 | }, 6 | "e": { 7 | "numbers": [333333333.33333329, 1E30, 4.50, 2e-3, 0.000000000000000000000000001], 8 | "string": "\u20ac$\u000F\u000aA'\u0042\u0022\u005c\\\"\/", 9 | "literals": [null, true, false] 10 | } 11 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/js12-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "{\"literals\":[null,true,false],\"numbers\":[333333333.3333333,1e+30,4.5,0.002,1e-27],\"string\":\"€$\\u000f\\nA'B\\\"\\\\\\\\\\\"/\"}"^^ . -------------------------------------------------------------------------------- /tests/stream-toRdf/js13-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "{\"\\n\":\"Newline\",\"\\r\":\"Carriage Return\",\"1\":\"One\",\"\":\"Browser Challenge\",\"€\":\"Control\",\"ö\":\"Latin Small Letter O With Diaeresis\",\"€\":\"Euro Sign\",\"😂\":\"Smiley\"}"^^ . -------------------------------------------------------------------------------- /tests/stream-toRdf/js14-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "e": {"@id": "http://example.org/vocab#array", "@type": "@json"} 5 | }, 6 | "e": [{"e": "bar"}] 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/js14-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 "[{\"e\":\"bar\"}]"^^ . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/js15-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example.org/vocab#object": [{"@type": "@json", "@value": {"foo": "bar"}}] 3 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/js15-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 "{\"foo\":\"bar\"}"^^ . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/js16-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"@version": 1.1, "value": "@value", "type": "@type", "json": "@json"}, 3 | "http://example.org/vocab#object": [{"type": "json", "value": {"foo": "bar"}}] 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/js16-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 "{\"foo\":\"bar\"}"^^ . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/js17-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "e": {"@id": "http://example.org/vocab#string", "@type": "@json"} 5 | }, 6 | "e": "string" 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/js17-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 "\"string\""^^ . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/js18-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "e": {"@id": "http://example.org/vocab#null", "@type": "@json"} 5 | }, 6 | "e": null 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/js18-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "null"^^ . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/js19-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "type": "@type" 5 | }, 6 | "ex:foo": { 7 | "type": "@json", 8 | "@value": { 9 | "test": 1 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /tests/stream-toRdf/js19-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "{\"test\":1}"^^ . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/js20-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "value": "@value" 5 | }, 6 | "ex:foo": { 7 | "@type": "@json", 8 | "value": { 9 | "test": 1 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /tests/stream-toRdf/js20-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "{\"test\":1}"^^ . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/js21-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "ex:foo": { 5 | "@type": "@json" 6 | } 7 | }, 8 | "ex:foo": { 9 | "@context": "ex:not:a:context", 10 | "test": 1 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /tests/stream-toRdf/js21-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 "{\"@context\":\"ex:not:a:context\",\"test\":1}"^^ . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/js22-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example.org/vocab#null": {"@type": "@json", "@value": null} 3 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/js22-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "null"^^ . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/js23-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example.org/vocab#null": {"@type": "@json", "@value": []} 3 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/js23-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "[]"^^ . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/li01-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://example/A", 3 | "http://example.com/foo": {"@list": [{"@list": ["baz"]}]} 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/li02-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://example/A", 3 | "http://example.com/foo": {"@list": [{"@list": []}]} 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/li02-out.nq: -------------------------------------------------------------------------------- 1 | _:l1 . 2 | _:l1 . 3 | _:l1 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/li03-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, 3 | "foo": [{"@list": ["baz"]}] 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/li04-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, 3 | "foo": [{"@list": []}] 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/li04-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b1 . 3 | _:b1 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/li05-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, 3 | "foo": [["baz"]] 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/li06-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, 3 | "foo": [[]] 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/li06-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b1 . 3 | _:b1 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/li07-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, 3 | "foo": [[["baz"]]] 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/li08-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, 3 | "foo": [[[]]] 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/li09-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, 3 | "foo": [["a"], ["b"]] 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/li10-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, 3 | "foo": [["a"], "b"] 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/m001-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "idmap": {"@container": "@id"} 5 | }, 6 | "idmap": { 7 | "http://example.org/foo": {"label": "Object with @id "}, 8 | "_:bar": {"label": "Object with @id _:bar"} 9 | } 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/m001-out.nq: -------------------------------------------------------------------------------- 1 | "Object with @id " . 2 | _:b1 "Object with @id _:bar" . 3 | _:b0 . 4 | _:b0 _:b1 . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/m002-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "idmap": {"@container": "@id"} 5 | }, 6 | "idmap": { 7 | "http://example.org/foo": {"@id": "http://example.org/bar", "label": "Object with @id "}, 8 | "_:bar": {"@id": "_:foo", "label": "Object with @id _:bar"} 9 | } 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/m002-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 "Object with @id _:bar" . 2 | "Object with @id " . 3 | _:b0 _:b1 . 4 | _:b0 . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/m003-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "typemap": {"@container": "@type"} 5 | }, 6 | "typemap": { 7 | "http://example.org/foo": {"label": "Object with @type "}, 8 | "_:bar": {"label": "Object with @type _:bar"} 9 | } 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/m003-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 "Object with @type " . 2 | _:b1 . 3 | _:b2 "Object with @type _:bar" . 4 | _:b2 _:b3 . 5 | _:b0 _:b1 . 6 | _:b0 _:b2 . 7 | -------------------------------------------------------------------------------- /tests/stream-toRdf/m004-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "typemap": {"@container": "@type"} 5 | }, 6 | "typemap": { 7 | "http://example.org/foo": {"@type": "http://example.org/bar", "label": "Object with @type "}, 8 | "_:bar": {"@type": "_:foo", "label": "Object with @type _:bar"} 9 | } 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/m005-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "idmap": {"@container": "@id"} 5 | }, 6 | "idmap": { 7 | "foo": {"label": "Object with @id "} 8 | } 9 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/m005-out.nq: -------------------------------------------------------------------------------- 1 | "Object with @id " . 2 | _:b0 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/m006-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "typemap": {"@container": "@type"} 5 | }, 6 | "typemap": { 7 | "Foo": {"label": "Object with @type "} 8 | } 9 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/m006-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 "Object with @type " . 2 | _:b1 . 3 | _:b0 _:b1 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/m007-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "typemap": {"@container": "@type"}, 5 | "label": "http://example/label" 6 | }, 7 | "typemap": { 8 | "Foo": {"label": "Object with @type "} 9 | } 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/m007-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 "Object with @type " . 2 | _:b1 . 3 | _:b0 _:b1 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/m008-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "typemap": {"@container": "@type"}, 5 | "Type": {"@context": {"a": "http://example.org/a"}} 6 | }, 7 | "typemap": { 8 | "Type": {"a": "Object with @type "} 9 | } 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/m008-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 . 2 | _:b1 "Object with @type " . 3 | _:b0 _:b1 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/m009-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "vocab": "http://example.com/vocab/", 4 | "label": { 5 | "@id": "vocab:label", 6 | "@container": "@language" 7 | } 8 | }, 9 | "@id": "http://example.com/queen", 10 | "label": { 11 | "en": "The Queen", 12 | "de": [ "Die Königin", "Ihre Majestät" ], 13 | "@none": "The Queen" 14 | } 15 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/m009-out.nq: -------------------------------------------------------------------------------- 1 | "Ihre Majestät"@de . 2 | "Die Königin"@de . 3 | "The Queen"@en . 4 | "The Queen" . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/m010-out.nq: -------------------------------------------------------------------------------- 1 | "Ihre Majestät"@de . 2 | "Die Königin"@de . 3 | "The Queen"@en . 4 | "The Queen" . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/m011-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "idmap": {"@container": "@id"}, 5 | "none": "@none" 6 | }, 7 | "idmap": { 8 | "@none": {"label": "Object with no @id"}, 9 | "none": {"label": "Another object with no @id"} 10 | } 11 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/m011-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 "Object with no @id" . 2 | _:b2 "Another object with no @id" . 3 | _:b0 _:b1 . 4 | _:b0 _:b2 . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/m012-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/", 4 | "typemap": {"@container": "@type"}, 5 | "none": "@none" 6 | }, 7 | "typemap": { 8 | "@none": {"label": "Object with no @type"}, 9 | "none": {"label": "Another object with no @type"} 10 | } 11 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/m012-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 "Object with no @type" . 2 | _:b2 "Another object with no @type" . 3 | _:b0 _:b1 . 4 | _:b0 _:b2 . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/m013-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": ["@graph", "@index"]} 5 | }, 6 | "input": { 7 | "@none": {"value": "x"} 8 | } 9 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/m013-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b2 "x" _:b1 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/m014-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": ["@graph", "@index"]}, 5 | "none": "@none" 6 | }, 7 | "input": { 8 | "none": {"value": "x"} 9 | } 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/m014-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b2 "x" _:b1 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/m015-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": ["@graph", "@id"]} 5 | }, 6 | "input": { 7 | "@none": {"value": "x"} 8 | } 9 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/m015-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b2 "x" _:b1 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/m016-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "input": {"@container": ["@graph", "@id"]}, 5 | "none": "@none" 6 | }, 7 | "input": { 8 | "none": {"value": "x"} 9 | } 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/m016-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b2 "x" _:b1 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/m017-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@vocab": "http://example.org/ns/", 5 | "@base": "http://example.org/base/", 6 | "foo": { "@container": "@type" } 7 | }, 8 | "foo": {"bar": "baz"} 9 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/m017-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | _:b0 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/m018-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@vocab": "http://example.org/ns/", 5 | "@base": "http://example.org/base/", 6 | "foo": { "@type": "@id", "@container": "@type" } 7 | }, 8 | "foo": {"bar": "baz"} 9 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/m018-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | _:b0 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/m019-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@vocab": "http://example.org/ns/", 5 | "@base": "http://example.org/base/", 6 | "foo": { "@type": "@vocab", "@container": "@type" } 7 | }, 8 | "foo": {"bar": "baz"} 9 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/m019-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | _:b0 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/m020-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@vocab": "http://example.org/ns/", 5 | "@base": "http://example.org/base/", 6 | "foo": { "@type": "literal", "@container": "@type" } 7 | }, 8 | "foo": {"bar": "baz"} 9 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/n001-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"@vocab": "http://example.org/"}, 3 | "p1": "v1", 4 | "@nest": { 5 | "p2": "v2" 6 | } 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/n001-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "v2" . 2 | _:b0 "v1" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/n002-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "nest": "@nest" 5 | }, 6 | "p1": "v1", 7 | "nest": { 8 | "p2": "v2" 9 | } 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/n002-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "v2" . 2 | _:b0 "v1" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/n003-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "nest": "@nest" 5 | }, 6 | "p1": "v1", 7 | "nest": { 8 | "p2": "v3" 9 | }, 10 | "p2": "v2" 11 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/n003-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "v3" . 2 | _:b0 "v2" . 3 | _:b0 "v1" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/n004-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "nest1": "@nest", 5 | "nest2": "@nest" 6 | }, 7 | "p1": "v1", 8 | "nest2": { 9 | "p2": "v4" 10 | }, 11 | "p2": "v2", 12 | "nest1": { 13 | "p2": "v3" 14 | } 15 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/n004-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "v3" . 2 | _:b0 "v2" . 3 | _:b0 "v4" . 4 | _:b0 "v1" . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/n005-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/" 4 | }, 5 | "p1": "v1", 6 | "@nest": { 7 | "p2": "v3", 8 | "@nest": { 9 | "p2": "v4" 10 | } 11 | }, 12 | "p2": "v2" 13 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/n005-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "v3" . 2 | _:b0 "v2" . 3 | _:b0 "v4" . 4 | _:b0 "v1" . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/n006-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "nest": "@nest" 5 | }, 6 | "p1": "v1", 7 | "nest": { 8 | "p2": ["v4", "v5"] 9 | }, 10 | "p2": ["v2", "v3"] 11 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/n006-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "v3" . 2 | _:b0 "v5" . 3 | _:b0 "v2" . 4 | _:b0 "v4" . 5 | _:b0 "v1" . 6 | -------------------------------------------------------------------------------- /tests/stream-toRdf/n007-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "nest": "@nest" 5 | }, 6 | "p1": "v1", 7 | "nest": [{ 8 | "p2": "v4" 9 | }, { 10 | "p2": "v5" 11 | }], 12 | "p2": ["v2", "v3"] 13 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/n007-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "v3" . 2 | _:b0 "v5" . 3 | _:b0 "v2" . 4 | _:b0 "v4" . 5 | _:b0 "v1" . 6 | -------------------------------------------------------------------------------- /tests/stream-toRdf/n008-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "nest": "@nest" 5 | }, 6 | "p1": "v1", 7 | "nest": [ 8 | {"@type": "T1"}, 9 | {"@type": "T2"} 10 | ] 11 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/n008-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "v1" . 2 | _:b0 . 3 | _:b0 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/nt01-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://a.example/s", 4 | "http://a.example/p": [ 5 | { 6 | "@value": "\u0000\t\u000B\f\u000e&([]\u007F" 7 | } 8 | ] 9 | } 10 | ] -------------------------------------------------------------------------------- /tests/stream-toRdf/nt02-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://a.example/s", 4 | "http://a.example/p": [ 5 | { 6 | "@value": "€߿ࠀ࿿က쿿퀀퟿�𐀀𿿽񀀀󿿽􀀀􏿽" 7 | } 8 | ] 9 | } 10 | ] -------------------------------------------------------------------------------- /tests/stream-toRdf/nt03-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://a.example/s", 4 | "http://a.example/p": [ 5 | { 6 | "@value": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\u000b\f\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" 7 | } 8 | ] 9 | } 10 | ] -------------------------------------------------------------------------------- /tests/stream-toRdf/nt04-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://a.example/s", 4 | "http://a.example/p": [ 5 | { 6 | "@value": " !\"#$%&():;<=>?@[]^_`{|}~" 7 | } 8 | ] 9 | } 10 | ] -------------------------------------------------------------------------------- /tests/stream-toRdf/nt05-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://a.example/s", 4 | "http://a.example/p": [ 5 | { 6 | "@value": "x'y" 7 | } 8 | ] 9 | } 10 | ] -------------------------------------------------------------------------------- /tests/stream-toRdf/nt06-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://a.example/s", 4 | "http://a.example/p": [ 5 | { 6 | "@value": "x''y" 7 | } 8 | ] 9 | } 10 | ] -------------------------------------------------------------------------------- /tests/stream-toRdf/nt07-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://a.example/s", 4 | "http://a.example/p": [ 5 | { 6 | "@value": "x\"y" 7 | } 8 | ] 9 | } 10 | ] -------------------------------------------------------------------------------- /tests/stream-toRdf/nt08-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://a.example/s", 4 | "http://a.example/p": [ 5 | { 6 | "@value": "x\"\"y" 7 | } 8 | ] 9 | } 10 | ] -------------------------------------------------------------------------------- /tests/stream-toRdf/nt09-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.org/ns#s", 4 | "http://example.org/ns#p1": [ 5 | { 6 | "@value": "test-\\" 7 | } 8 | ] 9 | } 10 | ] -------------------------------------------------------------------------------- /tests/stream-toRdf/nt10-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://a.example/s", 4 | "http://a.example/p": [ 5 | { 6 | "@value": "\t" 7 | } 8 | ] 9 | } 10 | ] -------------------------------------------------------------------------------- /tests/stream-toRdf/nt11-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://a.example/s", 4 | "http://a.example/p": [ 5 | { 6 | "@value": "\b" 7 | } 8 | ] 9 | } 10 | ] -------------------------------------------------------------------------------- /tests/stream-toRdf/nt12-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://a.example/s", 4 | "http://a.example/p": [ 5 | { 6 | "@value": "\n" 7 | } 8 | ] 9 | } 10 | ] -------------------------------------------------------------------------------- /tests/stream-toRdf/nt13-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://a.example/s", 4 | "http://a.example/p": [ 5 | { 6 | "@value": "\r" 7 | } 8 | ] 9 | } 10 | ] -------------------------------------------------------------------------------- /tests/stream-toRdf/nt14-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://a.example/s", 4 | "http://a.example/p": [ 5 | { 6 | "@value": "\f" 7 | } 8 | ] 9 | } 10 | ] -------------------------------------------------------------------------------- /tests/stream-toRdf/nt15-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://a.example/s", 4 | "http://a.example/p": [ 5 | { 6 | "@value": "\\" 7 | } 8 | ] 9 | } 10 | ] -------------------------------------------------------------------------------- /tests/stream-toRdf/nt16-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://a.example/s", 4 | "http://a.example/p": [ 5 | { 6 | "@value": "\u000F" 7 | } 8 | ] 9 | } 10 | ] -------------------------------------------------------------------------------- /tests/stream-toRdf/p001-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [ 3 | {"@vocab": "http://example/"}, 4 | {"@version": 1.1, "a": {"@type": "@id"}} 5 | ], 6 | "a": "http://example.org/foo" 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/p001-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/p002-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [ 3 | {"@vocab": "http://example/"}, 4 | {"@version": 1.1, "a": {"@type": "@id"}}, 5 | {"b": {"@type": "@id"}} 6 | ], 7 | "a": "http://example.org/foo", 8 | "b": "http://example.org/bar" 9 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/p002-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/p003-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [ 3 | {"@version": 1.1, "a": {"@id": "http://example/a", "@type": "@id"}}, 4 | {"@vocab": "http://example/", "b": {"@type": "@id"}} 5 | ], 6 | "a": "http://example.org/foo", 7 | "b": "http://example.org/bar" 8 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/p003-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/p004-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [ 3 | {"@version": 1.1, "a": {"@id": "http://example/a", "@type": "@id"}}, 4 | {"@vocab": "http://example/"}, 5 | {"@version": 1.1, "b": {"@type": "@id"}} 6 | ], 7 | "a": "http://example.org/foo", 8 | "b": "http://example.org/bar" 9 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/p004-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pi01-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.com/", 4 | "container": {"@container": "@index", "@index": "prop"} 5 | }, 6 | "@id": "http://example.com/annotationsTest", 7 | "container": { 8 | "en": "The Queen", 9 | "de": [ "Die Königin", "Ihre Majestät" ] 10 | } 11 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/pi02-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@vocab": "http://example.com/", 5 | "container": {"@index": "prop"} 6 | }, 7 | "@id": "http://example.com/annotationsTest", 8 | "container": { 9 | "en": "The Queen", 10 | "de": [ "Die Königin", "Ihre Majestät" ] 11 | } 12 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/pi06-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@base": "http://example.com/", 5 | "@vocab": "http://example.com/", 6 | "author": {"@type": "@id", "@container": "@index", "@index": "prop"} 7 | }, 8 | "@id": "article", 9 | "author": { 10 | "regular": "person/1", 11 | "guest": ["person/2", "person/3"] 12 | } 13 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/pi11-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@vocab": "http://example.org/", 5 | "input": {"@container": ["@graph", "@index"], "@index": "prop"} 6 | }, 7 | "input": { 8 | "g1": {"value": "x"} 9 | } 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/pi11-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 "g1" . 2 | _:b0 _:b1 . 3 | _:b2 "x" _:b1 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr02-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 "property http://example.com/something-else" . 2 | _:b0 _:b1 . 3 | _:b0 "true"^^ . 4 | _:b0 "true"^^ . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr06-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr10-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "protected": { 5 | "@id": "ex:protected", 6 | "@protected": true 7 | }, 8 | "unprotected": "ex:unprotected" 9 | }, 10 | "protected": "p === ex:protected", 11 | "unprotected": { 12 | "protected": "p === ex:protected" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr10-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 "p === ex:protected" . 2 | _:b0 "p === ex:protected" . 3 | _:b0 _:b1 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr13-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 "p === ex:unprotected2" . 2 | _:b0 _:b1 . 3 | _:b0 "p === ex:unprotected1" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr14-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 "p === ex:protected3" . 2 | _:b0 _:b1 . 3 | _:b0 "p === ex:protected1" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr15-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 "p === ex:protected3" . 2 | _:b0 _:b1 . 3 | _:b0 "p === ex:protected1" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr16-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 "p === ex:unprotected2" . 2 | _:b1 "p === ex:protected3" . 3 | _:b0 _:b1 . 4 | _:b0 "p === ex:protected1" . 5 | _:b0 "p === ex:unprotected1" . 6 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr19-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 "p === ex:protected3" . 2 | _:b0 _:b1 . 3 | _:b0 "p === ex:protected1" . 4 | _:b0 "p === ex:unprotected1" . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr22-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 . 2 | _:b1 . 3 | _:b0 . 4 | _:b0 _:b1 . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr23-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [{ 3 | "@version": 1.1, 4 | "@protected": true, 5 | "id": "@id", 6 | "type": "@type" 7 | }, { 8 | "@version": 1.1, 9 | "@protected": true, 10 | "id": "@id", 11 | "type": "@type" 12 | }], 13 | "type": "http://example/type", 14 | "id": "http://example/id" 15 | } 16 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr23-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr24-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [{ 3 | "@version": 1.1, 4 | "@protected": true, 5 | "foo": "http://example/foo#" 6 | }, { 7 | "@version": 1.1, 8 | "@protected": true, 9 | "foo": "http://example/foo#" 10 | }], 11 | "foo:bar": "foobar" 12 | } 13 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr24-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "foobar" . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr27-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [{ 3 | "@version": 1.1, 4 | "@protected": true, 5 | "id": "@id", 6 | "type": "@type" 7 | }, { 8 | "@version": 1.1, 9 | "id": "@id", 10 | "type": "@type" 11 | }], 12 | "type": "http://example/type", 13 | "id": "http://example/id" 14 | } 15 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr27-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr28-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [{ 3 | "@version": 1.1, 4 | "@protected": true, 5 | "term": null 6 | }, { 7 | "@version": 1.1, 8 | "term": {"@id": "http://example.com/term"} 9 | }], 10 | "term": "undefined" 11 | } 12 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr29-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "tag": {"@id": "http://example.org/ns/tag/", "@prefix": false} 5 | }, 6 | "tag:champin.net,2019:prop": "This is not treated as a Compact IRI", 7 | "tag": "tricky" 8 | } 9 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr29-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "tricky" . 2 | _:b0 "This is not treated as a Compact IRI" . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr30-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr33-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "foo": { 5 | "@id": "@type", 6 | "@prefix": true 7 | } 8 | }, 9 | "foo:bar": "http://example.org/baz" 10 | } 11 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr34-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@ignoreMe": "http://example.org/should-ignore" 4 | }, 5 | "@type": "http://example.com/IgnoreTest", 6 | "@ignoreMe": "should not be here" 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/pr34-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr35-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "@ignoreMe": "http://example.org/should-ignore" 5 | }, 6 | "@type": "http://example.com/IgnoreTest", 7 | "@ignoreMe": "should not be here" 8 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/pr35-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr36-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ignoreMe": "@ignoreMe" 4 | }, 5 | "@type": "http://example.com/IgnoreTest", 6 | "ignoreMe": "should not be here" 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/pr36-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr37-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "ignoreMe": "@ignoreMe" 5 | }, 6 | "@type": "http://example.com/IgnoreTest", 7 | "ignoreMe": "vocabulary relative" 8 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/pr37-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "vocabulary relative" . 2 | _:b0 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr38-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ignoreMe": {"@reverse": "@ignoreMe"} 4 | }, 5 | "@type": "http://example.com/IgnoreTest", 6 | "ignoreMe": {"http://example.org/text": "should not be here"} 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/pr38-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr39-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/", 4 | "ignoreMe": {"@reverse": "@ignoreMe"} 5 | }, 6 | "@type": "http://example.com/IgnoreTest", 7 | "ignoreMe": {"text": "not reversed"} 8 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/pr39-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 _:b1 . 3 | _:b1 "not reversed" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/pr40-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://vocab.org/", 4 | "@protected": true, 5 | "bar": "http://ignored.org/bar", 6 | "foo": { 7 | "@context": { 8 | "bar": "http://example.org/other" 9 | } 10 | } 11 | }, 12 | "@id": "ex:outer", 13 | "foo": { 14 | "@id": "ex:inner", 15 | "bar": "baz" 16 | } 17 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/pr40-out.nq: -------------------------------------------------------------------------------- 1 | "baz" . 2 | . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/rt01-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "number": {"@id": "http://example.com/number"} 4 | }, 5 | "number": [-0e0, 8, 9.9, 1e21 ] 6 | } 7 | -------------------------------------------------------------------------------- /tests/stream-toRdf/rt01-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "0"^^ . 2 | _:b0 "8"^^ . 3 | _:b0 "9.9E0"^^ . 4 | _:b0 "1.0E21"^^ . 5 | -------------------------------------------------------------------------------- /tests/stream-toRdf/se01-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "https://www.rubensworks.net/#me", 3 | "@context": { 4 | "name": "http://schema.org/name", 5 | "url": "http://schema.org/url", 6 | "image": "http://schema.org/image" 7 | }, 8 | "name": "Ruben Taelman", 9 | "url": "https://www.rubensworks.net/", 10 | "image": "https://www.rubensworks.net/img/ruben.jpg" 11 | } 12 | -------------------------------------------------------------------------------- /tests/stream-toRdf/se02-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Ruben Taelman", 3 | "@context": { 4 | "name": "http://schema.org/name", 5 | "url": "http://schema.org/url", 6 | "image": "http://schema.org/image" 7 | }, 8 | "url": "https://www.rubensworks.net/", 9 | "image": "https://www.rubensworks.net/img/ruben.jpg" 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/se09-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://schema.org/name", 4 | "url": "http://schema.org/url", 5 | "image": "http://schema.org/image" 6 | }, 7 | "name": "Ruben Taelman", 8 | "@type": "http://schema.org/Person", 9 | "url": "https://www.rubensworks.net/", 10 | "image": "https://www.rubensworks.net/img/ruben.jpg" 11 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/so01-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@import": "so01-in.jsonld" 4 | } 5 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/so02-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@import": {} 5 | } 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/so03-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@import": "so03-in.jsonld" 5 | } 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/so05-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "baz": {"@id": "http://example.org/baz", "@type": "@vocab"} 4 | } 5 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/so05-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@vocab": "http://example/", 5 | "Foo": { 6 | "@context": { 7 | "@import": "so05-context.jsonld", 8 | "@propagate": true 9 | } 10 | } 11 | }, 12 | "@type": "Foo", 13 | "bar": {"baz": "buzz"} 14 | } 15 | -------------------------------------------------------------------------------- /tests/stream-toRdf/so05-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 . 2 | _:b0 . 3 | _:b0 _:b1 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/so06-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "baz": {"@id": "http://example.com/baz", "@type": "@id"} 4 | } 5 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/so06-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@vocab": "http://example/", 5 | "bar": { 6 | "@context": { 7 | "@import": "so06-context.jsonld", 8 | "@propagate": false 9 | } 10 | } 11 | }, 12 | "bar": {"baz": {"baz": "buzz"}} 13 | } 14 | -------------------------------------------------------------------------------- /tests/stream-toRdf/so06-out.nq: -------------------------------------------------------------------------------- 1 | _:b2 "buzz" . 2 | _:b1 _:b2 . 3 | _:b0 _:b1 . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/so07-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "protected1": { 4 | "@id": "http://example.com/protected1" 5 | }, 6 | "protected2": { 7 | "@id": "http://example.com/protected2" 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/so08-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": "http://example.org/sourced" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /tests/stream-toRdf/so08-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@import": "so08-context.jsonld", 5 | "term": "http://example.org/redefined" 6 | }, 7 | "term": "value" 8 | } 9 | -------------------------------------------------------------------------------- /tests/stream-toRdf/so08-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "value" . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/so09-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/source/", 4 | "term": {"@id": "term"} 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /tests/stream-toRdf/so09-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@import": "so09-context.jsonld", 5 | "@vocab": "http://example.org/redefined/" 6 | }, 7 | "term": "value" 8 | } 9 | -------------------------------------------------------------------------------- /tests/stream-toRdf/so09-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "value" . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/so10-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": "http://example.org/protected" 4 | } 5 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/so10-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [{ 3 | "@version": 1.1, 4 | "@protected": true, 5 | "@import": "so10-context.jsonld" 6 | }, { 7 | "term": "http://example.org/unprotected" 8 | }], 9 | "term": "value" 10 | } 11 | -------------------------------------------------------------------------------- /tests/stream-toRdf/so11-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": "http://example.org/sourced" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /tests/stream-toRdf/so11-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@protected": true, 5 | "@import": "so08-context.jsonld", 6 | "term": "http://example.org/redefined" 7 | }, 8 | "term": "value" 9 | } 10 | -------------------------------------------------------------------------------- /tests/stream-toRdf/so11-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "value" . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/so12-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@import": "so12-in.jsonld" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /tests/stream-toRdf/so13-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [{ 3 | "term": "http://example.org/term" 4 | }, { 5 | "term2": "http://example.org/term2" 6 | }] 7 | } 8 | -------------------------------------------------------------------------------- /tests/stream-toRdf/so13-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@version": 1.1, 4 | "@import": "so13-context.jsonld" 5 | }, 6 | "term": "value" 7 | } 8 | -------------------------------------------------------------------------------- /tests/stream-toRdf/v001-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://schema.org/name", 4 | "url": "http://schema.org/url", 5 | "image": "http://schema.org/image" 6 | }, 7 | "@id": "https://www.rubensworks.net/#me", 8 | "name": "Ruben Taelman", 9 | "url": "https://www.rubensworks.net/", 10 | "image": "https://www.rubensworks.net/img/ruben.jpg" 11 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/v001-out.nq: -------------------------------------------------------------------------------- 1 | "https://www.rubensworks.net/img/ruben.jpg" . 2 | "Ruben Taelman" . 3 | "https://www.rubensworks.net/" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/v002-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://schema.org/name", 4 | "url": "http://schema.org/url", 5 | "image": "http://schema.org/image" 6 | }, 7 | "@id": "_:blank_node", 8 | "name": "Ruben Taelman", 9 | "url": "https://www.rubensworks.net/", 10 | "image": "https://www.rubensworks.net/img/ruben.jpg" 11 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/v002-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "https://www.rubensworks.net/img/ruben.jpg" . 2 | _:b0 "Ruben Taelman" . 3 | _:b0 "https://www.rubensworks.net/" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/v003-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://schema.org/name", 4 | "url": "http://schema.org/url", 5 | "image": "http://schema.org/image" 6 | }, 7 | "name": "Ruben Taelman", 8 | "url": "https://www.rubensworks.net/", 9 | "image": "https://www.rubensworks.net/img/ruben.jpg" 10 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/v003-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "https://www.rubensworks.net/img/ruben.jpg" . 2 | _:b0 "Ruben Taelman" . 3 | _:b0 "https://www.rubensworks.net/" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/v008-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://schema.org/name": "Ruben Taelman", 3 | "http://schema.org/url": "https://www.rubensworks.net/", 4 | "http://schema.org/image": "https://www.rubensworks.net/img/ruben.jpg" 5 | } 6 | -------------------------------------------------------------------------------- /tests/stream-toRdf/v008-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "https://www.rubensworks.net/img/ruben.jpg" . 2 | _:b0 "Ruben Taelman" . 3 | _:b0 "https://www.rubensworks.net/" . 4 | -------------------------------------------------------------------------------- /tests/stream-toRdf/v010-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b0 "Ruben Taelman" . 3 | _:b1 _:b2 . 4 | _:b1 "Gregg Kellogg" . 5 | _:b2 _:b3 . 6 | _:b2 "Manu Sporny" . 7 | _:b3 "Markus Lanthaler" . 8 | -------------------------------------------------------------------------------- /tests/stream-toRdf/v011-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "ex:bar": "baz", 3 | "@id": "ex:foo" 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/v011-out.nq: -------------------------------------------------------------------------------- 1 | "baz" . -------------------------------------------------------------------------------- /tests/stream-toRdf/v012-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "ex:bar": "baz" 3 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/v012-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "baz" . -------------------------------------------------------------------------------- /tests/stream-toRdf/v013-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "ex:foo", 3 | "ex:bar": { 4 | "ex:bar2": "baz", 5 | "@id": "ex:foo2" 6 | } 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/v013-out.nq: -------------------------------------------------------------------------------- 1 | "baz" . 2 | . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/v014-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "ex:foo", 3 | "ex:bar": { 4 | "ex:bar2": "baz" 5 | } 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/v014-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "baz" . 2 | _:b0 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/v015-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "ex:bar": { 3 | "ex:bar2": "baz", 4 | "@id": "ex:foo2" 5 | }, 6 | "@id": "ex:foo" 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/v015-out.nq: -------------------------------------------------------------------------------- 1 | "baz" . 2 | . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/v016-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "ex:bar": { 3 | "ex:bar2": "baz" 4 | } 5 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/v016-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 "baz" . 2 | _:b0 _:b1 . 3 | -------------------------------------------------------------------------------- /tests/stream-toRdf/v017-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@graph": { 3 | "@id": "ex:foo", 4 | "ex:bar": "baz" 5 | }, 6 | "@id": "ex:graph" 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/v017-out.nq: -------------------------------------------------------------------------------- 1 | "baz" . -------------------------------------------------------------------------------- /tests/stream-toRdf/v018-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@graph": { 3 | "@id": "ex:foo", 4 | "ex:bar": "baz" 5 | } 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/v018-out.nq: -------------------------------------------------------------------------------- 1 | "baz" . -------------------------------------------------------------------------------- /tests/stream-toRdf/v019-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@graph": { 3 | "ex:bar": "baz", 4 | "@id": "ex:foo" 5 | }, 6 | "@id": "ex:graph" 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/v019-out.nq: -------------------------------------------------------------------------------- 1 | "baz" . -------------------------------------------------------------------------------- /tests/stream-toRdf/v020-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@graph": { 3 | "ex:bar": "baz", 4 | "@id": "ex:foo" 5 | } 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/v020-out.nq: -------------------------------------------------------------------------------- 1 | "baz" . -------------------------------------------------------------------------------- /tests/stream-toRdf/v021-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@graph": { 3 | "ex:bar": "baz" 4 | }, 5 | "@id": "ex:graph" 6 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/v021-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "baz" . -------------------------------------------------------------------------------- /tests/stream-toRdf/v022-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@graph": { 3 | "ex:bar": "baz" 4 | } 5 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/v022-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "baz" . -------------------------------------------------------------------------------- /tests/stream-toRdf/wf01-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://example.com/a b", 3 | "http://example.com/foo": "bar" 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/wf01-out.nq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/json-ld-streaming/eec663c780904d292606b341831f462128972bb9/tests/stream-toRdf/wf01-out.nq -------------------------------------------------------------------------------- /tests/stream-toRdf/wf02-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://example.com/foo", 3 | "http://example.com/a b": "bar" 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/wf02-out.nq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/json-ld-streaming/eec663c780904d292606b341831f462128972bb9/tests/stream-toRdf/wf02-out.nq -------------------------------------------------------------------------------- /tests/stream-toRdf/wf03-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://example.com/foo", 3 | "http://example.com/bar": {"@id": "http://example.com/baz z"} 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/wf03-out.nq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/json-ld-streaming/eec663c780904d292606b341831f462128972bb9/tests/stream-toRdf/wf03-out.nq -------------------------------------------------------------------------------- /tests/stream-toRdf/wf04-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@type": ["http://example.com/bar", "http://in valid"], 3 | "@id": "http://example.com/foo" 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/wf04-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /tests/stream-toRdf/wf05-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://example.com/foo", 3 | "http://example.com/bar": {"@value": "bar", "@language": "a b"} 4 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/wf05-out.nq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/json-ld-streaming/eec663c780904d292606b341831f462128972bb9/tests/stream-toRdf/wf05-out.nq -------------------------------------------------------------------------------- /tests/stream-toRdf/wf07-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://example.com/invalid gn", 3 | "@graph": { 4 | "@id": "http://example.com/foo", 5 | "http://example.com/bar": "baz" 6 | } 7 | } -------------------------------------------------------------------------------- /tests/stream-toRdf/wf07-out.nq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/w3c/json-ld-streaming/eec663c780904d292606b341831f462128972bb9/tests/stream-toRdf/wf07-out.nq -------------------------------------------------------------------------------- /w3c.json: -------------------------------------------------------------------------------- 1 | { 2 | "group": ["wg/json-ld"] 3 | , "contacts": ["plehegar"] 4 | , "repo-type": "note" 5 | , "short-name": "json-ld-streaming" 6 | } 7 | --------------------------------------------------------------------------------