├── .gitignore ├── test_files ├── toRdf-0041-out.nq ├── toRdf-0043-out.nq ├── toRdf-0059-out.nq ├── toRdf-0085-out.nq ├── toRdf-0086-out.nq ├── normalize-0001-out.nq ├── normalize-0015-out.nq ├── normalize-0049-out.nq ├── compact-0001-out.jsonld ├── compact-0003-out.jsonld ├── frame-0020-frame.jsonld ├── remote-doc-0004-in.jldte ├── expand-0001-out.jsonld ├── expand-0003-out.jsonld ├── expand-0019-out.jsonld ├── expand-0045-out.jsonld ├── expand-0046-out.jsonld ├── flatten-0001-out.jsonld ├── flatten-0003-out.jsonld ├── flatten-0019-out.jsonld ├── error-0027-in.jsonld ├── error-0028-in.jsonld ├── compact-0001-context.jsonld ├── compact-0003-context.jsonld ├── compact-0039-context.jsonld ├── compact-0040-context.jsonld ├── compact-0046-context.jsonld ├── compact-0051-context.jsonld ├── toRdf-0041-in.jsonld ├── toRdf-0062-out.nq ├── compact-0001-in.jsonld ├── expand-0001-in.jsonld ├── flatten-0001-in.jsonld ├── toRdf-0008-out.nq ├── toRdf-0009-out.nq ├── remote-doc-0010-in.json ├── remote-doc-0011-in.jldt ├── remote-doc-0012-in.json ├── toRdf-0085-in.jsonld ├── error-0003-ctx.jsonld ├── error-0029-in.jsonld ├── expand-0045-in.jsonld ├── normalize-0018-out.nq ├── compact-0072-in.jsonld ├── normalize-0001-in.jsonld ├── toRdf-0093-out.nq ├── toRdf-0094-out.nq ├── toRdf-0095-out.nq ├── toRdf-0078-out.nq ├── toRdf-0091-out.nq ├── toRdf-0108-out.nq ├── toRdf-0112-out.nq ├── toRdf-0114-out.nq ├── error-0032-in.jsonld ├── error-0033-in.jsonld ├── error-0039-in.jsonld ├── error-0040-in.jsonld ├── expand-0076-in.jsonld ├── toRdf-0098-out.nq ├── compact-0072-context.jsonld ├── error-0006-in.jsonld ├── error-0030-in.jsonld ├── error-0042-in.jsonld ├── frame-0013-frame.jsonld ├── normalize-0043-out.nq ├── compact-0051-in.jsonld ├── compact-0051-out.jsonld ├── compact-0070-context.jsonld ├── error-0037-in.jsonld ├── expand-0022-out.jsonld ├── flatten-0044-context.jsonld ├── toRdf-0113-out.nq ├── compact-0012-context.jsonld ├── compact-0013-context.jsonld ├── compact-0053-in.jsonld ├── compact-0054-in.jsonld ├── compact-0056-in.jsonld ├── compact-0058-in.jsonld ├── compact-0071-context.jsonld ├── error-0007-in.jsonld ├── error-0008-in.jsonld ├── error-0041-in.jsonld ├── expand-0053-out.jsonld ├── expand-0054-out.jsonld ├── expand-0055-out.jsonld ├── toRdf-0001-out.nq ├── toRdf-0002-out.nq ├── toRdf-0016-in.jsonld ├── toRdf-0023-in.jsonld ├── toRdf-0023-out.nq ├── error-0009-in.jsonld ├── remote-doc-0009-context.jsonld ├── remote-doc-0010-context.jsonld ├── remote-doc-0011-context.jsonld ├── toRdf-0008-in.jsonld ├── toRdf-0009-in.jsonld ├── toRdf-0017-in.jsonld ├── toRdf-0018-in.jsonld ├── toRdf-0022-out.nq ├── toRdf-0024-in.jsonld ├── toRdf-0024-out.nq ├── toRdf-0072-out.nq ├── compact-0031-context.jsonld ├── compact-0048-in.jsonld ├── error-0002-in.jsonld ├── normalize-0003-out.nq ├── normalize-0031-out.nq ├── normalize-0032-out.nq ├── remote-doc-0012-context1.jsonld ├── remote-doc-0012-context2.jsonld ├── toRdf-0003-in.jsonld ├── toRdf-0003-out.nq ├── toRdf-0004-out.nq ├── toRdf-0022-in.jsonld ├── compact-0070-in.jsonld ├── error-0003-in.jsonld ├── error-0005-in.jsonld ├── error-0011-in.jsonld ├── flatten-0044-in.jsonld ├── remote-doc-0009-in.jsonld ├── toRdf-0019-out.nq ├── toRdf-0087-out.nq ├── error-0001-in.jsonld ├── error-0004-in.jsonld ├── error-0025-in.jsonld ├── error-0038-in.jsonld ├── frame-0014-frame.jsonld ├── frame-0019-frame.jsonld ├── normalize-0002-out.nq ├── normalize-0003-in.jsonld ├── toRdf-0007-in.jsonld ├── toRdf-0097-out.nq ├── error-0018-in.jsonld ├── error-0042-context.jsonld ├── expand-0076-out.jsonld ├── frame-0018-frame.jsonld ├── normalize-0019-out.nq ├── normalize-0021-out.nq ├── normalize-0033-out.nq ├── normalize-0034-out.nq ├── toRdf-0001-in.jsonld ├── compact-0042-context.jsonld ├── compact-0049-context.jsonld ├── compact-0052-context.jsonld ├── compact-0053-context.jsonld ├── error-0010-in.jsonld ├── error-0015-in.jsonld ├── error-0019-in.jsonld ├── expand-0058-out.jsonld ├── compact-0062-context.jsonld ├── error-0016-in.jsonld ├── error-0020-in.jsonld ├── toRdf-0007-out.nq ├── toRdf-0013-out.nq ├── toRdf-0090-out.nq ├── toRdf-0117-out.nq ├── compact-0013-in.jsonld ├── error-0024-in.jsonld ├── expand-0022-in.jsonld ├── flatten-0022-in.jsonld ├── normalize-0031-in.jsonld ├── normalize-0032-in.jsonld ├── remote-doc-0002-in.json ├── remote-doc-0003-in.jldt ├── toRdf-0006-out.nq ├── toRdf-0020-out.nq ├── toRdf-0062-in.jsonld ├── toRdf-0111-out.nq ├── compact-0020-context.jsonld ├── compact-0041-context.jsonld ├── compact-0064-context.jsonld ├── expand-0072-out.jsonld ├── remote-doc-0001-in.jsonld ├── toRdf-0026-in.jsonld ├── compact-0012-in.jsonld ├── compact-0029-context.jsonld ├── compact-0043-context.jsonld ├── compact-0065-context.jsonld ├── expand-0019-in.jsonld ├── expand-0051-out.jsonld ├── flatten-0019-in.jsonld ├── toRdf-0005-out.nq ├── toRdf-0011-out.nq ├── toRdf-0059-in.jsonld ├── compact-0072-out.jsonld ├── error-0012-in.jsonld ├── normalize-0012-out.nq ├── normalize-0017-out.nq ├── compact-0066-context.jsonld ├── error-0021-in.jsonld ├── error-0022-in.jsonld ├── error-0026-in.jsonld ├── error-0031-in.jsonld ├── normalize-0011-out.nq ├── toRdf-0017-out.nq ├── toRdf-0114-in.jsonld ├── toRdf-0119-out.nq ├── compact-0032-context.jsonld ├── error-0013-in.jsonld ├── error-0023-in.jsonld ├── expand-0025-out.jsonld ├── expand-0053-in.jsonld ├── expand-0057-out.jsonld ├── frame-0003-out.jsonld ├── normalize-0010-out.nq ├── remote-doc-0009-out.jsonld ├── toRdf-0002-in.jsonld ├── toRdf-0004-in.jsonld ├── toRdf-0093-in.jsonld ├── toRdf-0116-out.nq ├── compact-0021-context.jsonld ├── compact-0047-context.jsonld ├── compact-0053-out.jsonld ├── compact-0071-out.jsonld ├── error-0017-in.jsonld ├── normalize-0038-out.nq ├── normalize-0039-out.nq ├── normalize-0057-out.nq ├── remote-doc-0001-out.jsonld ├── remote-doc-0002-out.jsonld ├── remote-doc-0003-out.jsonld ├── remote-doc-0010-out.jsonld ├── remote-doc-0011-out.jsonld ├── toRdf-0091-in.jsonld ├── toRdf-0092-out.nq ├── toRdf-0113-in.jsonld ├── compact-0020-in.jsonld ├── compact-0027-context.jsonld ├── compact-0043-in.jsonld ├── compact-0062-in.jsonld ├── expand-0051-in.jsonld ├── expand-0057-in.jsonld ├── normalize-0018-in.jsonld ├── toRdf-0016-out.nq ├── toRdf-0048-out.nq ├── toRdf-0097-in.jsonld ├── compact-0012-out.jsonld ├── compact-0063-context.jsonld ├── error-0014-in.jsonld ├── expand-0010-out.jsonld ├── expand-0075-in.jsonld ├── frame-0003-frame.jsonld ├── normalize-0023-out.nq ├── toRdf-0018-out.nq ├── compact-0033-context.jsonld ├── compact-0034-context.jsonld ├── compact-0050-context.jsonld ├── compact-0054-context.jsonld ├── compact-0055-context.jsonld ├── compact-0067-context.jsonld ├── error-0043-in.jsonld ├── toRdf-0013-in.jsonld ├── toRdf-0036-in.jsonld ├── compact-0006-context.jsonld ├── compact-0009-context.jsonld ├── compact-0010-context.jsonld ├── compact-0013-out.jsonld ├── compact-0040-out.jsonld ├── error-0036-in.jsonld ├── expand-0055-in.jsonld ├── expand-0075-out.jsonld ├── frame-0016-frame.jsonld ├── frame-0021-frame.jsonld ├── normalize-0004-out.nq ├── toRdf-0012-out.nq ├── toRdf-0081-out.nq ├── toRdf-0095-in.jsonld ├── compact-0047-in.jsonld ├── compact-0047-out.jsonld ├── normalize-0055-out.nq ├── normalize-0056-out.nq ├── toRdf-0010-out.nq ├── toRdf-0012-in.jsonld ├── toRdf-0014-in.jsonld ├── compact-0028-context.jsonld ├── compact-0035-context.jsonld ├── compact-0054-out.jsonld ├── compact-0055-in.jsonld ├── compact-0055-out.jsonld ├── compact-0070-out.jsonld ├── expand-0050-out.jsonld ├── expand-0054-in.jsonld ├── flatten-0044-out.jsonld ├── normalize-0004-in.jsonld ├── normalize-0014-in.jsonld ├── normalize-0049-in.jsonld ├── toRdf-0094-in.jsonld ├── compact-0030-context.jsonld ├── compact-0036-context.jsonld ├── compact-0058-context.jsonld ├── compact-0059-in.jsonld ├── compact-0060-in.jsonld ├── compact-0061-in.jsonld ├── compact-0063-in.jsonld ├── compact-0068-context.jsonld ├── compact-0069-context.jsonld ├── expand-0058-in.jsonld ├── fromRdf-0015-in.nq ├── normalize-0050-out.nq ├── toRdf-0051-out.nq ├── toRdf-0098-in.jsonld ├── toRdf-0117-in.jsonld ├── compact-0005-context.jsonld ├── compact-0016-context.jsonld ├── compact-0019-context.jsonld ├── compact-0023-context.jsonld ├── compact-0037-context.jsonld ├── compact-0063-out.jsonld ├── compact-0071-in.jsonld ├── toRdf-0015-in.jsonld ├── toRdf-0110-out.nq ├── compact-0025-context.jsonld ├── compact-0062-out.jsonld ├── frame-0004-frame.jsonld ├── normalize-0006-in.jsonld ├── toRdf-0005-in.jsonld ├── compact-0014-context.jsonld ├── compact-0060-context.jsonld ├── normalize-0015-in.jsonld ├── normalize-0035-out.nq ├── normalize-0036-out.nq ├── normalize-0037-out.nq ├── toRdf-0006-in.jsonld ├── toRdf-0025-in.jsonld ├── compact-0009-in.jsonld ├── compact-0017-in.jsonld ├── compact-0020-out.jsonld ├── compact-0059-context.jsonld ├── normalize-0016-out.nq ├── normalize-0040-out.nq ├── normalize-0041-out.nq ├── normalize-0042-out.nq ├── normalize-0043-in.jsonld ├── toRdf-0011-in.jsonld ├── toRdf-0026-out.nq ├── normalize-0007-in.jsonld ├── normalize-0022-out.nq ├── compact-0011-context.jsonld ├── compact-0039-out.jsonld ├── expand-0052-out.jsonld ├── normalize-0005-in.jsonld ├── toRdf-0101-in.jsonld ├── toRdf-0115-out.nq ├── toRdf-0116-in.jsonld ├── compact-0043-out.jsonld ├── expand-0050-in.jsonld ├── expand-0061-in.jsonld ├── flatten-0042-in.jsonld ├── frame-0011-frame.jsonld ├── frame-0018-out.jsonld ├── normalize-0007-out.nq ├── toRdf-0050-out.nq ├── toRdf-0090-in.jsonld ├── toRdf-0119-in.jsonld ├── compact-0040-in.jsonld ├── compact-0049-in.jsonld ├── compact-0056-context.jsonld ├── compact-0058-out.jsonld ├── expand-0011-out.jsonld ├── expand-0032-out.jsonld ├── expand-0070-out.jsonld ├── flatten-0045-in.jsonld ├── toRdf-0010-in.jsonld ├── compact-0049-out.jsonld ├── expand-0071-out.jsonld ├── expand-0008-out.jsonld ├── expand-0070-in.jsonld ├── flatten-0022-out.jsonld ├── flatten-0032-out.jsonld ├── toRdf-0110-in.jsonld ├── compact-0056-out.jsonld ├── expand-0052-in.jsonld ├── expand-0068-out.jsonld ├── expand-0077-in.jsonld ├── flatten-0025-out.jsonld ├── normalize-0006-out.nq ├── toRdf-0070-out.nq ├── toRdf-0073-out.nq ├── toRdf-0092-in.jsonld ├── compact-0026-context.jsonld ├── normalize-0053-in.jsonld ├── toRdf-0107-out.nq ├── compact-0003-in.jsonld ├── compact-0008-context.jsonld ├── expand-0003-in.jsonld ├── expand-0047-out.jsonld ├── flatten-0003-in.jsonld ├── flatten-0041-out.jsonld ├── normalize-0051-out.nq ├── toRdf-0020-in.jsonld ├── toRdf-0043-in.jsonld ├── compact-0007-context.jsonld ├── normalize-0020-out.nq ├── toRdf-0014-out.nq ├── toRdf-0019-in.jsonld ├── toRdf-0025-out.nq ├── toRdf-0109-out.nq ├── toRdf-0065-out.nq ├── compact-0039-in.jsonld ├── error-0034-in.jsonld ├── toRdf-0032-out.nq ├── toRdf-0033-out.nq ├── toRdf-0034-out.nq ├── expand-0025-in.jsonld ├── flatten-0025-in.jsonld ├── frame-0012-frame.jsonld ├── toRdf-0065-in.jsonld ├── compact-0004-context.jsonld ├── compact-0005-in.jsonld ├── compact-0059-out.jsonld ├── error-0035-in.jsonld ├── expand-0067-out.jsonld ├── toRdf-0077-out.nq ├── toRdf-0079-out.nq ├── toRdf-0082-out.nq ├── toRdf-0105-out.nq ├── toRdf-0112-in.jsonld ├── expand-0068-in.jsonld ├── expand-0069-out.jsonld ├── expand-0072-in.jsonld ├── toRdf-0108-in.jsonld ├── compact-0006-in.jsonld ├── compact-0046-in.jsonld ├── expand-0032-in.jsonld ├── flatten-0043-in.jsonld ├── toRdf-0048-in.jsonld ├── toRdf-0072-in.jsonld ├── toRdf-0084-out.nq ├── compact-0029-in.jsonld ├── expand-0008-in.jsonld ├── expand-0027-in.jsonld ├── expand-0041-out.jsonld ├── flatten-0008-in.jsonld ├── flatten-0032-in.jsonld ├── frame-0001-frame.jsonld ├── frame-0002-frame.jsonld ├── frame-0006-frame.jsonld ├── frame-0007-frame.jsonld ├── frame-0017-frame.jsonld ├── normalize-0005-out.nq ├── toRdf-0067-in.jsonld ├── toRdf-0118-out.nq ├── compact-0019-out.jsonld ├── compact-0022-context.jsonld ├── flatten-0027-in.jsonld ├── frame-0014-in.jsonld ├── normalize-0019-in.jsonld ├── normalize-0021-in.jsonld ├── normalize-0050-in.jsonld ├── toRdf-0089-out.nq ├── compact-0005-out.jsonld ├── compact-0009-out.jsonld ├── compact-0042-in.jsonld ├── compact-0052-in.jsonld ├── compact-0052-out.jsonld ├── compact-0060-out.jsonld ├── normalize-0011-in.jsonld ├── normalize-0016-in.jsonld ├── toRdf-0031-out.nq ├── toRdf-0101-out.nq ├── compact-0061-context.jsonld ├── expand-0010-in.jsonld ├── flatten-0010-in.jsonld ├── normalize-0002-in.jsonld ├── normalize-0010-in.jsonld ├── toRdf-0050-in.jsonld ├── compact-0028-in.jsonld ├── compact-0028-out.jsonld ├── compact-0041-out.jsonld ├── compact-0046-out.jsonld ├── expand-0067-in.jsonld ├── toRdf-0096-out.nq ├── toRdf-0107-in.jsonld ├── compact-0017-context.jsonld ├── compact-0044-context.jsonld ├── expand-0069-in.jsonld ├── normalize-0024-out.nq ├── normalize-0025-out.nq ├── normalize-0026-out.nq ├── normalize-0027-out.nq ├── normalize-0028-out.nq ├── normalize-0029-out.nq ├── toRdf-0109-in.jsonld ├── compact-0042-out.jsonld ├── compact-0048-context.jsonld ├── frame-0010-frame.jsonld ├── frame-0011-in.jsonld ├── fromRdf-0018-out.jsonld ├── expand-0030-in.jsonld ├── flatten-0042-out.jsonld ├── flatten-0045-out.jsonld ├── flatten-0046-in.jsonld ├── normalize-0033-in.jsonld ├── normalize-0034-in.jsonld ├── normalize-0055-in.jsonld ├── normalize-0056-in.jsonld ├── toRdf-0070-in.jsonld ├── compact-0025-out.jsonld ├── flatten-0030-in.jsonld ├── frame-0011-out.jsonld ├── fromRdf-0015-out.jsonld ├── normalize-0014-out.nq ├── normalize-0057-in.jsonld ├── compact-0010-in.jsonld ├── compact-0014-in.jsonld ├── compact-0041-in.jsonld ├── compact-0068-in.jsonld ├── compact-0069-in.jsonld ├── normalize-0012-in.jsonld ├── toRdf-0080-out.nq ├── compact-0031-out.jsonld ├── expand-0037-in.jsonld ├── expand-0041-in.jsonld ├── flatten-0010-out.jsonld ├── toRdf-0035-out.nq ├── toRdf-0047-out.nq ├── toRdf-0077-in.jsonld ├── toRdf-0081-in.jsonld ├── compact-0002-context.jsonld ├── expand-0056-out.jsonld ├── expand-0077-context.jsonld ├── normalize-0013-out.nq ├── toRdf-0068-in.jsonld ├── compact-0068-out.jsonld ├── compact-0069-out.jsonld ├── expand-0028-in.jsonld ├── flatten-0028-in.jsonld ├── normalize-0039-in.jsonld ├── toRdf-0082-in.jsonld ├── compact-0033-out.jsonld ├── expand-0042-in.jsonld ├── expand-0061-out.jsonld ├── toRdf-0104-out.nq ├── compact-0002-in.jsonld ├── expand-0013-in.jsonld ├── expand-0033-in.jsonld ├── expand-0034-out.jsonld ├── flatten-0013-in.jsonld ├── flatten-0033-in.jsonld ├── frame-0010-in.jsonld ├── toRdf-0053-in.jsonld ├── toRdf-0071-out.nq ├── toRdf-0073-in.jsonld ├── compact-0015-in.jsonld ├── compact-0061-out.jsonld ├── expand-0011-in.jsonld ├── expand-0039-in.jsonld ├── expand-0071-in.jsonld ├── fromRdf-0010-in.nq ├── fromRdf-0017-out.jsonld ├── normalize-0023-in.jsonld ├── toRdf-0051-in.jsonld ├── toRdf-0079-in.jsonld ├── toRdf-0111-in.jsonld ├── compact-0006-out.jsonld ├── compact-0019-in.jsonld ├── compact-0032-out.jsonld ├── expand-0027-out.jsonld ├── expand-0033-out.jsonld ├── expand-0034-in.jsonld ├── flatten-0011-in.jsonld ├── flatten-0046-out.jsonld ├── frame-0013-in.jsonld ├── frame-0013-out.jsonld ├── fromRdf-0016-out.jsonld ├── normalize-0051-in.jsonld ├── toRdf-0074-in.jsonld ├── toRdf-0089-in.jsonld ├── compact-0035-out.jsonld ├── compact-0048-out.jsonld ├── expand-0024-out.jsonld ├── expand-0049-in.jsonld ├── flatten-0034-in.jsonld ├── frame-0018-in.jsonld ├── normalize-0030-out.nq ├── toRdf-0035-in.jsonld ├── compact-0050-out.jsonld ├── toRdf-0036-out.nq ├── compact-0067-out.jsonld ├── expand-0064-in.jsonld ├── normalize-0022-in.jsonld ├── toRdf-0104-in.jsonld ├── normalize-0047-out.nq ├── normalize-0048-out.nq ├── toRdf-0015-out.nq ├── toRdf-0031-in.jsonld ├── toRdf-0066-out.nq ├── toRdf-0075-out.nq ├── compact-0025-in.jsonld ├── expand-0030-out.jsonld ├── expand-0073-out.jsonld ├── expand-0074-out.jsonld ├── flatten-0011-out.jsonld ├── frame-0016-out.jsonld ├── toRdf-0064-out.nq ├── expand-0026-out.jsonld ├── flatten-0008-out.jsonld ├── frame-0008-frame.jsonld ├── normalize-0017-in.jsonld └── toRdf-0046-out.nq ├── main.go └── gojsonld.test /.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | -------------------------------------------------------------------------------- /test_files/toRdf-0041-out.nq: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/toRdf-0043-out.nq: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/toRdf-0059-out.nq: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/toRdf-0085-out.nq: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/toRdf-0086-out.nq: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/normalize-0001-out.nq: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/normalize-0015-out.nq: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/normalize-0049-out.nq: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/compact-0001-out.jsonld: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /test_files/compact-0003-out.jsonld: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /test_files/frame-0020-frame.jsonld: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /test_files/remote-doc-0004-in.jldte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/expand-0001-out.jsonld: -------------------------------------------------------------------------------- 1 | [ ] 2 | -------------------------------------------------------------------------------- /test_files/expand-0003-out.jsonld: -------------------------------------------------------------------------------- 1 | [ ] 2 | -------------------------------------------------------------------------------- /test_files/expand-0019-out.jsonld: -------------------------------------------------------------------------------- 1 | [ ] 2 | -------------------------------------------------------------------------------- /test_files/expand-0045-out.jsonld: -------------------------------------------------------------------------------- 1 | [ ] 2 | -------------------------------------------------------------------------------- /test_files/expand-0046-out.jsonld: -------------------------------------------------------------------------------- 1 | [ ] 2 | -------------------------------------------------------------------------------- /test_files/flatten-0001-out.jsonld: -------------------------------------------------------------------------------- 1 | [ ] 2 | -------------------------------------------------------------------------------- /test_files/flatten-0003-out.jsonld: -------------------------------------------------------------------------------- 1 | [ ] 2 | -------------------------------------------------------------------------------- /test_files/flatten-0019-out.jsonld: -------------------------------------------------------------------------------- 1 | [ ] 2 | -------------------------------------------------------------------------------- /test_files/error-0027-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": true 3 | } -------------------------------------------------------------------------------- /test_files/error-0028-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@type": true 3 | } -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | package gojsonld 2 | 3 | func main() { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /test_files/compact-0001-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {} 3 | } 4 | -------------------------------------------------------------------------------- /test_files/compact-0003-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {} 3 | } 4 | -------------------------------------------------------------------------------- /test_files/compact-0039-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {} 3 | } 4 | -------------------------------------------------------------------------------- /test_files/compact-0040-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {} 3 | } 4 | -------------------------------------------------------------------------------- /test_files/compact-0046-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {} 3 | } 4 | -------------------------------------------------------------------------------- /test_files/compact-0051-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {} 3 | } 4 | -------------------------------------------------------------------------------- /test_files/toRdf-0041-in.jsonld: -------------------------------------------------------------------------------- 1 | {"@id": "http://example.org/test#example"} -------------------------------------------------------------------------------- /test_files/toRdf-0062-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "v"@en . 2 | -------------------------------------------------------------------------------- /test_files/compact-0001-in.jsonld: -------------------------------------------------------------------------------- 1 | {"@id": "http://example.org/test#example"} -------------------------------------------------------------------------------- /test_files/expand-0001-in.jsonld: -------------------------------------------------------------------------------- 1 | {"@id": "http://example.org/test#example"} -------------------------------------------------------------------------------- /test_files/flatten-0001-in.jsonld: -------------------------------------------------------------------------------- 1 | {"@id": "http://example.org/test#example"} -------------------------------------------------------------------------------- /test_files/toRdf-0008-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "bar" . 2 | -------------------------------------------------------------------------------- /test_files/toRdf-0009-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "bar" . 2 | -------------------------------------------------------------------------------- /gojsonld.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/linkeddata/gojsonld/HEAD/gojsonld.test -------------------------------------------------------------------------------- /test_files/remote-doc-0010-in.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "", 3 | "term": "value" 4 | }] -------------------------------------------------------------------------------- /test_files/remote-doc-0011-in.jldt: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "", 3 | "term": "value" 4 | }] -------------------------------------------------------------------------------- /test_files/remote-doc-0012-in.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "", 3 | "term": "value" 4 | }] -------------------------------------------------------------------------------- /test_files/toRdf-0085-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@value": "free-floating value" 3 | } 4 | -------------------------------------------------------------------------------- /test_files/error-0003-ctx.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": "error-0003-in.jsonld" 3 | } 4 | -------------------------------------------------------------------------------- /test_files/error-0029-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example/prop": {"@value": ["foo"]} 3 | } -------------------------------------------------------------------------------- /test_files/expand-0045-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@value": "free-floating value" 3 | } 4 | -------------------------------------------------------------------------------- /test_files/normalize-0018-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 _:c14n0 . 2 | -------------------------------------------------------------------------------- /test_files/compact-0072-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example.com/foo": "foo-value" 3 | } 4 | -------------------------------------------------------------------------------- /test_files/normalize-0001-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://example.org/test#example" 3 | } -------------------------------------------------------------------------------- /test_files/toRdf-0093-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | -------------------------------------------------------------------------------- /test_files/toRdf-0094-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | -------------------------------------------------------------------------------- /test_files/toRdf-0095-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | -------------------------------------------------------------------------------- /test_files/toRdf-0078-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b0 . 2 | -------------------------------------------------------------------------------- /test_files/toRdf-0091-out.nq: -------------------------------------------------------------------------------- 1 | "ok" . 2 | -------------------------------------------------------------------------------- /test_files/toRdf-0108-out.nq: -------------------------------------------------------------------------------- 1 | _:b1 _:b0 . 2 | -------------------------------------------------------------------------------- /test_files/toRdf-0112-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "value of term" . 2 | -------------------------------------------------------------------------------- /test_files/toRdf-0114-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | -------------------------------------------------------------------------------- /test_files/error-0032-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example.com/foo": {"@list": [{"@list": ["baz"]}]} 3 | } -------------------------------------------------------------------------------- /test_files/error-0033-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example/prop": { 3 | "@reverse": true 4 | } 5 | } -------------------------------------------------------------------------------- /test_files/error-0039-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example/foo": {"@value": true, "@language": "en"} 3 | } -------------------------------------------------------------------------------- /test_files/error-0040-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example/foo": {"@value": "bar", "@type": "_:dt"} 3 | } -------------------------------------------------------------------------------- /test_files/expand-0076-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "relative-iri", 3 | "http://prop": "value" 4 | } 5 | -------------------------------------------------------------------------------- /test_files/toRdf-0098-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | -------------------------------------------------------------------------------- /test_files/compact-0072-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@language": "en" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /test_files/error-0006-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": true, 3 | "@id": "http://example/test#example" 4 | } -------------------------------------------------------------------------------- /test_files/error-0030-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example/prop": {"@value": "foo", "@language": true} 3 | } -------------------------------------------------------------------------------- /test_files/error-0042-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example/list": [{"@list": ["foo"]}, {"@list": ["bar"]}] 3 | } -------------------------------------------------------------------------------- /test_files/frame-0013-frame.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/" 4 | } 5 | } -------------------------------------------------------------------------------- /test_files/normalize-0043-out.nq: -------------------------------------------------------------------------------- 1 | "test"@en . 2 | -------------------------------------------------------------------------------- /test_files/compact-0051-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example.org/term": { 3 | "@list": [1] 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /test_files/compact-0051-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example.org/term": { 3 | "@list": [1] 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /test_files/compact-0070-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": "http://example/term" 4 | } 5 | } -------------------------------------------------------------------------------- /test_files/error-0037-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example/foo": {"@value": "bar", "@id": "http://example/baz"} 3 | } -------------------------------------------------------------------------------- /test_files/expand-0022-out.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "http://example.com/term": [{"@value": "v", "@language": "en"}] 3 | }] -------------------------------------------------------------------------------- /test_files/flatten-0044-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": "http://example/term" 4 | } 5 | } -------------------------------------------------------------------------------- /test_files/toRdf-0113-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /test_files/compact-0012-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/vocab#" 4 | } 5 | } -------------------------------------------------------------------------------- /test_files/compact-0013-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/vocab#" 4 | } 5 | } -------------------------------------------------------------------------------- /test_files/compact-0053-in.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "http://example.org/term": [{"@id": "http://example.org/enum"}] 3 | }] 4 | -------------------------------------------------------------------------------- /test_files/compact-0054-in.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "http://example.org/term": [{"@id": "http://example.org/enum"}] 3 | }] 4 | -------------------------------------------------------------------------------- /test_files/compact-0056-in.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "http://example.org/term": [{"@id": "http://example.org/enum"}] 3 | }] 4 | -------------------------------------------------------------------------------- /test_files/compact-0058-in.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "http://example.org/term": [{"@id": "http://example.org/enum"}] 3 | }] 4 | -------------------------------------------------------------------------------- /test_files/compact-0071-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "foo": "http://example.com/foo" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /test_files/error-0007-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"@base": true}, 3 | "@id": "http://example/test#example" 4 | } -------------------------------------------------------------------------------- /test_files/error-0008-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"@vocab": true}, 3 | "@id": "http://example/test#example" 4 | } -------------------------------------------------------------------------------- /test_files/error-0041-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example/prop": {"@list": ["foo"], "@id": "http://example/bar"} 3 | } -------------------------------------------------------------------------------- /test_files/expand-0053-out.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "http://example.org/term": [{"@id": "http://example.org/enum"}] 3 | }] 4 | -------------------------------------------------------------------------------- /test_files/expand-0054-out.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "http://example.org/term": [{"@id": "http://example.org/enum"}] 3 | }] 4 | -------------------------------------------------------------------------------- /test_files/expand-0055-out.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "http://example.org/term": [{"@id": "http://example.org/enum"}] 3 | }] 4 | -------------------------------------------------------------------------------- /test_files/toRdf-0001-out.nq: -------------------------------------------------------------------------------- 1 | "Gregg Kellogg" . 2 | -------------------------------------------------------------------------------- /test_files/toRdf-0002-out.nq: -------------------------------------------------------------------------------- 1 | "Gregg Kellogg" . 2 | -------------------------------------------------------------------------------- /test_files/toRdf-0016-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "", 3 | "@type": "http://www.w3.org/2000/01/rdf-schema#Resource" 4 | } -------------------------------------------------------------------------------- /test_files/toRdf-0023-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { "chem": "http://example/chem#"}, 3 | "chem:protons": 12 4 | } -------------------------------------------------------------------------------- /test_files/toRdf-0023-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "12"^^ . 2 | -------------------------------------------------------------------------------- /test_files/error-0009-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"@language": true}, 3 | "@id": "http://example/test#example" 4 | } -------------------------------------------------------------------------------- /test_files/remote-doc-0009-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/vocab#" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /test_files/remote-doc-0010-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/vocab#" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /test_files/remote-doc-0011-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/vocab#" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /test_files/toRdf-0008-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"d": "http://example.com/default#"}, 3 | "d:foo": "bar" 4 | } 5 | -------------------------------------------------------------------------------- /test_files/toRdf-0009-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"foo": "http://example.com/default#"}, 3 | "foo:": "bar" 4 | } 5 | -------------------------------------------------------------------------------- /test_files/toRdf-0017-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "a/b", 3 | "@type": "http://www.w3.org/2000/01/rdf-schema#Resource" 4 | } -------------------------------------------------------------------------------- /test_files/toRdf-0018-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "#frag", 3 | "@type": "http://www.w3.org/2000/01/rdf-schema#Resource" 4 | } -------------------------------------------------------------------------------- /test_files/toRdf-0022-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "5.3E0"^^ . 2 | -------------------------------------------------------------------------------- /test_files/toRdf-0024-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { "sensor": "http://example/sensor#"}, 3 | "sensor:active": true 4 | } -------------------------------------------------------------------------------- /test_files/toRdf-0024-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "true"^^ . 2 | -------------------------------------------------------------------------------- /test_files/toRdf-0072-out.nq: -------------------------------------------------------------------------------- 1 | "Markus Lanthaler" . 2 | -------------------------------------------------------------------------------- /test_files/compact-0031-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://xmlns.com/foaf/0.1/name" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /test_files/compact-0048-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example.com/propertyA": 5, 3 | "http://example.com/propertyB": 5 4 | } 5 | -------------------------------------------------------------------------------- /test_files/error-0002-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": "error-0002-in.jsonld", 3 | "@id": "http://example/test#example" 4 | } 5 | -------------------------------------------------------------------------------- /test_files/normalize-0003-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 . 2 | -------------------------------------------------------------------------------- /test_files/normalize-0031-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 . 2 | -------------------------------------------------------------------------------- /test_files/normalize-0032-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 . 2 | -------------------------------------------------------------------------------- /test_files/remote-doc-0012-context1.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/vocab#" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /test_files/remote-doc-0012-context2.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/vocab#" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /test_files/toRdf-0003-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"foaf": "http://xmlns.com/foaf/0.1/"}, 3 | "@type": "foaf:Person" 4 | } -------------------------------------------------------------------------------- /test_files/toRdf-0003-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | -------------------------------------------------------------------------------- /test_files/toRdf-0004-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "A plain literal with a lang tag."@en-us . 2 | -------------------------------------------------------------------------------- /test_files/toRdf-0022-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { "measure": "http://example/measure#"}, 3 | "measure:cups": 5.3 4 | } 5 | -------------------------------------------------------------------------------- /test_files/compact-0070-in.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "http://example/foo", 3 | "http://example/term": [{"@value": "value"}] 4 | }] 5 | -------------------------------------------------------------------------------- /test_files/error-0003-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": "error-0003-ctx.jsonld", 3 | "@id": "http://example/test#example" 4 | } 5 | -------------------------------------------------------------------------------- /test_files/error-0005-in.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@context": "error-0005-in.jsonld", 3 | "@id": "http://example/test#example" 4 | }] 5 | -------------------------------------------------------------------------------- /test_files/error-0011-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": true 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /test_files/flatten-0044-in.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "http://example/foo", 3 | "http://example/term": [{"@value": "value"}] 4 | }] 5 | -------------------------------------------------------------------------------- /test_files/remote-doc-0009-in.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "", 3 | "http://example/0009/term": "value1", 4 | "term": "value2" 5 | }] -------------------------------------------------------------------------------- /test_files/toRdf-0019-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /test_files/toRdf-0087-out.nq: -------------------------------------------------------------------------------- 1 | "nodes with properties are not removed" . 2 | -------------------------------------------------------------------------------- /test_files/error-0001-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@type": "@id" 4 | }, 5 | "@type": "http://example.org/type" 6 | } 7 | -------------------------------------------------------------------------------- /test_files/error-0004-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": "tag:non-dereferencable-iri", 3 | "@id": "http://example/test#example" 4 | } 5 | -------------------------------------------------------------------------------- /test_files/error-0025-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://example/foo", 3 | "@reverse": { 4 | "@id": "http://example/bar" 5 | } 6 | } -------------------------------------------------------------------------------- /test_files/error-0038-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example/foo": {"@value": "bar", "@language": "en", "@type": "http://example/type"} 3 | } -------------------------------------------------------------------------------- /test_files/frame-0014-frame.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/" 4 | }, 5 | "@type": ["ex:Node"] 6 | } 7 | -------------------------------------------------------------------------------- /test_files/frame-0019-frame.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/terms#" 4 | }, 5 | "@type": "ex:Node" 6 | } -------------------------------------------------------------------------------- /test_files/normalize-0002-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /test_files/normalize-0003-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/vocab#" 4 | }, 5 | "@type": "ex:Foo" 6 | } -------------------------------------------------------------------------------- /test_files/toRdf-0007-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://greggkellogg.net/foaf#me", 3 | "@type": "http://xmlns.com/foaf/0.1/Person" 4 | } -------------------------------------------------------------------------------- /test_files/toRdf-0097-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | -------------------------------------------------------------------------------- /test_files/error-0018-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": true} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /test_files/error-0042-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "list": {"@id": "http://example/list", "@container": "@list"} 4 | } 5 | } -------------------------------------------------------------------------------- /test_files/expand-0076-out.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "http://example/base/relative-iri", 3 | "http://prop": [{"@value": "value"}] 4 | }] 5 | -------------------------------------------------------------------------------- /test_files/frame-0018-frame.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@type": ["http://example.org/vocab#Library"], 3 | "http://example.org/vocab#contains": [{}] 4 | } -------------------------------------------------------------------------------- /test_files/normalize-0019-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 _:c14n0 . 2 | _:c14n1 _:c14n1 . 3 | -------------------------------------------------------------------------------- /test_files/normalize-0021-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 _:c14n1 . 2 | _:c14n1 _:c14n0 . 3 | -------------------------------------------------------------------------------- /test_files/normalize-0033-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n1 _:c14n0 . 2 | _:c14n3 _:c14n2 . 3 | -------------------------------------------------------------------------------- /test_files/normalize-0034-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n1 _:c14n0 . 2 | _:c14n3 _:c14n2 . 3 | -------------------------------------------------------------------------------- /test_files/toRdf-0001-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://greggkellogg.net/foaf#me", 3 | "http://xmlns.com/foaf/0.1/name": "Gregg Kellogg" 4 | } -------------------------------------------------------------------------------- /test_files/compact-0042-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "listAlias": "@list", 4 | "indexAlias": "@index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test_files/compact-0049-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "property": { "@id": "http://example.org", "@type": "@id" } 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /test_files/compact-0052-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "graph": "@graph", 4 | "term": "http://example.org/term" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test_files/compact-0053-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example.org/term", "@type": "@vocab"} 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /test_files/error-0010-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "term:term"} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /test_files/error-0015-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@reverse": true} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /test_files/error-0019-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "@context"} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /test_files/expand-0058-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "http://example.org/term": [ { "@id": "http://example.com/vocab#suffix" } ] 4 | } 5 | ] 6 | -------------------------------------------------------------------------------- /test_files/compact-0062-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": { "@id": "http://example.org/term", "@type": "@vocab" } 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /test_files/error-0016-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@reverse": "@reverse"} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /test_files/error-0020-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@container": "@set"} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /test_files/toRdf-0007-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /test_files/toRdf-0013-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /test_files/toRdf-0090-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 "Markus" . 3 | -------------------------------------------------------------------------------- /test_files/toRdf-0117-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 . 3 | -------------------------------------------------------------------------------- /test_files/compact-0013-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://example.org/test", 3 | "http://example.org/vocab#test": {"@value": "test", "@language": "en"} 4 | } -------------------------------------------------------------------------------- /test_files/error-0024-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, 3 | "foo": [{"@list": ["baz"]}] 4 | } -------------------------------------------------------------------------------- /test_files/expand-0022-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": "http://example.com/term", 4 | "@language": "en" 5 | }, 6 | "term": "v" 7 | } -------------------------------------------------------------------------------- /test_files/flatten-0022-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": "http://example.com/term", 4 | "@language": "en" 5 | }, 6 | "term": "v" 7 | } -------------------------------------------------------------------------------- /test_files/normalize-0031-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/vocab#" 4 | }, 5 | "@id": "_:a", 6 | "@type": "ex:Foo" 7 | } -------------------------------------------------------------------------------- /test_files/normalize-0032-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/vocab#" 4 | }, 5 | "@id": "_:b", 6 | "@type": "ex:Foo" 7 | } -------------------------------------------------------------------------------- /test_files/remote-doc-0002-in.json: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/vocab#" 4 | }, 5 | "@id": "", 6 | "term": "object" 7 | } 8 | -------------------------------------------------------------------------------- /test_files/remote-doc-0003-in.jldt: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/vocab#" 4 | }, 5 | "@id": "", 6 | "term": "object" 7 | } 8 | -------------------------------------------------------------------------------- /test_files/toRdf-0006-out.nq: -------------------------------------------------------------------------------- 1 | "1957-02-27"^^ . 2 | -------------------------------------------------------------------------------- /test_files/toRdf-0020-out.nq: -------------------------------------------------------------------------------- 1 | "1957-02-27"^^ . 2 | -------------------------------------------------------------------------------- /test_files/toRdf-0062-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": "http://example.com/term", 4 | "@language": "en" 5 | }, 6 | "term": "v" 7 | } -------------------------------------------------------------------------------- /test_files/toRdf-0111-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "value of v:term" . 2 | _:b0 "value of v:termId" . 3 | -------------------------------------------------------------------------------- /test_files/compact-0020-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/ns#", 4 | "ex:property": {"@container": "@list"} 5 | } 6 | } -------------------------------------------------------------------------------- /test_files/compact-0041-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": { "@id": "http://example.com/property", "@container": "@list" } 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /test_files/compact-0064-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "property": { "@id": "http://example.com/property", "@container": "@index" } 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /test_files/expand-0072-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "http://example.com/anotherVocab#term": [ 4 | { "@value": "value of term" } 5 | ] 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /test_files/remote-doc-0001-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example/vocab#" 4 | }, 5 | "@id": "", 6 | "term": "object" 7 | } 8 | -------------------------------------------------------------------------------- /test_files/toRdf-0026-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": {"rdfs": "http://www.w3.org/2000/01/rdf-schema#"}, 3 | "@type": ["rdfs:Resource", "rdfs:Class"] 4 | } 5 | -------------------------------------------------------------------------------- /test_files/compact-0012-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://example.org/test", 3 | "http://example.org/vocab#bool": true, 4 | "http://example.org/vocab#int": 123 5 | } -------------------------------------------------------------------------------- /test_files/compact-0029-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "author": {"@id": "http://example.com/vocab/author", "@container": "@index" } 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /test_files/compact-0043-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.com/", 4 | "name": "http://xmlns.com/foaf/0.1/name" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test_files/compact-0065-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "property": { "@id": "http://example.com/property", "@container": "@language" } 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /test_files/expand-0019-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "myproperty": "http://example.com/myproperty" 4 | }, 5 | "myproperty": { "@value" : null } 6 | } 7 | -------------------------------------------------------------------------------- /test_files/expand-0051-out.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "http://example.com/property": [{ 3 | "@value": "ok" 4 | }], 5 | "@id": "http://json-ld.org/issue/1" 6 | }] 7 | -------------------------------------------------------------------------------- /test_files/flatten-0019-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "myproperty": "http://example.com/myproperty" 4 | }, 5 | "myproperty": { "@value" : null } 6 | } 7 | -------------------------------------------------------------------------------- /test_files/toRdf-0005-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 "Herman Iván"@hu . 3 | -------------------------------------------------------------------------------- /test_files/toRdf-0011-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 "Dave Longley" . 3 | -------------------------------------------------------------------------------- /test_files/toRdf-0059-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "myproperty": "http://example.com/myproperty" 4 | }, 5 | "myproperty": { "@value" : null } 6 | } 7 | -------------------------------------------------------------------------------- /test_files/compact-0072-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example.com/foo": { 3 | "@value": "foo-value" 4 | }, 5 | "@context": { 6 | "@language": "en" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /test_files/error-0012-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example/term", "@type": true} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /test_files/normalize-0012-out.nq: -------------------------------------------------------------------------------- 1 | "2011-01-25T00:00:00Z"^^ . 2 | -------------------------------------------------------------------------------- /test_files/normalize-0017-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 . 2 | _:c14n0 . 3 | -------------------------------------------------------------------------------- /test_files/compact-0066-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "links": { "@id": "http://www.example.com/link", "@type": "@id", "@container": "@list" } 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /test_files/error-0021-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example/term", "@container": "@id"} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /test_files/error-0022-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example/term", "@language": true} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /test_files/error-0026-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "id": "@id", 4 | "ID": "@id" 5 | }, 6 | "id": "http://example/foo", 7 | "ID": "http://example/bar" 8 | } -------------------------------------------------------------------------------- /test_files/error-0031-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://example.com/vocab/indexMap": { 3 | "@value": "simple string", 4 | "@language": "en", 5 | "@index": true 6 | } 7 | } -------------------------------------------------------------------------------- /test_files/normalize-0011-out.nq: -------------------------------------------------------------------------------- 1 | "2011-01-25T00:00:00Z"^^ . 2 | -------------------------------------------------------------------------------- /test_files/toRdf-0017-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /test_files/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 | } -------------------------------------------------------------------------------- /test_files/toRdf-0119-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 "Foo" . 3 | _:b1 _:b0 . 4 | -------------------------------------------------------------------------------- /test_files/compact-0032-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://xmlns.com/foaf/0.1/name", 4 | "knows": "http://xmlns.com/foaf/0.1/knows" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test_files/error-0013-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example/term", "@type": "_:not-an-iri"} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /test_files/error-0023-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example/term", "@type": "relative/iri"} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /test_files/expand-0025-out.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@type": [ 3 | "http://example.com/foo/", 4 | "http://example.com/bar", 5 | "http://example.com/underscore/" 6 | ] 7 | }] 8 | -------------------------------------------------------------------------------- /test_files/expand-0053-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example.org/term", "@type": "@vocab"} 4 | }, 5 | "term": "http://example.org/enum" 6 | } 7 | -------------------------------------------------------------------------------- /test_files/expand-0057-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "http://example.org/term": [ { "@id": "http://json-ld.org/test-suite/tests/not-a-term-thus-a-relative-IRI" } ] 4 | } 5 | ] 6 | -------------------------------------------------------------------------------- /test_files/frame-0003-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "dc": "http://purl.org/dc/elements/1.1/", 4 | "ex": "http://example.org/vocab#" 5 | }, 6 | "@graph": [] 7 | } -------------------------------------------------------------------------------- /test_files/normalize-0010-out.nq: -------------------------------------------------------------------------------- 1 | "2011-01-25T00:00:00+0000"^^ . 2 | -------------------------------------------------------------------------------- /test_files/remote-doc-0009-out.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "http://json-ld.org/test-suite/tests/remote-doc-0009-in.jsonld", 3 | "http://example/0009/term": [{"@value": "value1"}] 4 | }] -------------------------------------------------------------------------------- /test_files/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 | } -------------------------------------------------------------------------------- /test_files/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 | } -------------------------------------------------------------------------------- /test_files/toRdf-0093-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example.org/term", "@type": "@vocab"} 4 | }, 5 | "term": "http://example.org/enum" 6 | } 7 | -------------------------------------------------------------------------------- /test_files/toRdf-0116-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | -------------------------------------------------------------------------------- /test_files/compact-0021-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.com/subdir/", 4 | "vocab/date": { "@type": "vocab/types/dateTime" } 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test_files/compact-0047-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@base": "http://example.com/", 4 | "link": { "@id": "http://example.com/link", "@type": "@id" } 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test_files/compact-0053-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example.org/term", "@type": "@vocab"} 4 | }, 5 | "term": "http://example.org/enum" 6 | } 7 | -------------------------------------------------------------------------------- /test_files/compact-0071-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "foo": "http://example.com/foo" 4 | }, 5 | "foo": "foo-value", 6 | "http://example.com/bar": "bar-value" 7 | } 8 | -------------------------------------------------------------------------------- /test_files/error-0017-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@reverse": "http://example/reverse", "@container": "@list"} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /test_files/normalize-0038-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 _:c14n1 . 2 | _:c14n0 _:c14n2 . 3 | _:c14n1 _:c14n3 . 4 | -------------------------------------------------------------------------------- /test_files/normalize-0039-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 _:c14n1 . 2 | _:c14n0 _:c14n2 . 3 | _:c14n1 _:c14n3 . 4 | -------------------------------------------------------------------------------- /test_files/normalize-0057-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n1 _:c14n0 . 2 | _:c14n1 "Manu Sporny" _:c14n0 . 3 | -------------------------------------------------------------------------------- /test_files/remote-doc-0001-out.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "http://json-ld.org/test-suite/tests/remote-doc-0001-in.jsonld", 3 | "http://example/vocab#term": [{"@value": "object"}] 4 | }] 5 | -------------------------------------------------------------------------------- /test_files/remote-doc-0002-out.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "http://json-ld.org/test-suite/tests/remote-doc-0002-in.json", 3 | "http://example/vocab#term": [{"@value": "object"}] 4 | }] 5 | -------------------------------------------------------------------------------- /test_files/remote-doc-0003-out.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "http://json-ld.org/test-suite/tests/remote-doc-0003-in.jldt", 3 | "http://example/vocab#term": [{"@value": "object"}] 4 | }] 5 | -------------------------------------------------------------------------------- /test_files/remote-doc-0010-out.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "http://json-ld.org/test-suite/tests/remote-doc-0010-in.json", 3 | "http://example/vocab#term": [{"@value": "value"}] 4 | }] 5 | -------------------------------------------------------------------------------- /test_files/remote-doc-0011-out.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "http://json-ld.org/test-suite/tests/remote-doc-0011-in.jldt", 3 | "http://example/vocab#term": [{"@value": "value"}] 4 | }] 5 | -------------------------------------------------------------------------------- /test_files/toRdf-0091-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [ 3 | { "id": "@id" }, 4 | { "url": "id" } 5 | ], 6 | "url": "/issue/1", 7 | "http://example.com/property": "ok" 8 | } 9 | -------------------------------------------------------------------------------- /test_files/toRdf-0092-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "ok" . 2 | _:b0 "must expand to http://example.org/vocabRelativeProperty" . 3 | -------------------------------------------------------------------------------- /test_files/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 | } -------------------------------------------------------------------------------- /test_files/compact-0020-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/ns#" 4 | }, 5 | "@id": "ex:property", 6 | "ex:property": { 7 | "@list": [1, 2] 8 | } 9 | } -------------------------------------------------------------------------------- /test_files/compact-0027-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "label": "http://example.com/vocab/label", 4 | "container": { "@id": "label", "@container": "@set" } 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test_files/compact-0043-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.com/node", 4 | "http://example.com/name": [ 5 | { "@value": "Markus Lanthaler" } 6 | ] 7 | } 8 | ] 9 | -------------------------------------------------------------------------------- /test_files/compact-0062-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 | -------------------------------------------------------------------------------- /test_files/expand-0051-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [ 3 | { "id": "@id" }, 4 | { "url": "id" } 5 | ], 6 | "url": "/issue/1", 7 | "http://example.com/property": "ok" 8 | } 9 | -------------------------------------------------------------------------------- /test_files/expand-0057-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 | -------------------------------------------------------------------------------- /test_files/normalize-0018-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "e": "http://example.org/vocab#", 4 | "e:self": {"@type": "@id"} 5 | }, 6 | "@id": "_:b0", 7 | "e:self": "_:b0" 8 | } -------------------------------------------------------------------------------- /test_files/toRdf-0016-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /test_files/toRdf-0048-out.nq: -------------------------------------------------------------------------------- 1 | "only value" . 2 | "test"@en . 3 | -------------------------------------------------------------------------------- /test_files/toRdf-0097-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 | -------------------------------------------------------------------------------- /test_files/compact-0012-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/vocab#" 4 | }, 5 | "@id": "http://example.org/test", 6 | "ex:bool": true, 7 | "ex:int": 123 8 | } -------------------------------------------------------------------------------- /test_files/compact-0063-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": { "@id": "http://example.org/term", "@type": "@vocab" }, 4 | "prefix": "http://example.com/vocab#" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test_files/error-0014-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example/term", "@reverse": "http://example/reverse"} 4 | }, 5 | "@id": "http://example/test#example" 6 | } -------------------------------------------------------------------------------- /test_files/expand-0010-out.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "http://example.org/test", 3 | "http://example.org/vocab#bool": [{"@value": true}], 4 | "http://example.org/vocab#int": [{"@value": 123}] 5 | }] -------------------------------------------------------------------------------- /test_files/expand-0075-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 | -------------------------------------------------------------------------------- /test_files/frame-0003-frame.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "dc": "http://purl.org/dc/elements/1.1/", 4 | "ex": "http://example.org/vocab#" 5 | }, 6 | "@type": "ex:DoesNotExist" 7 | } -------------------------------------------------------------------------------- /test_files/normalize-0023-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 _:c14n2 . 2 | _:c14n1 _:c14n0 . 3 | _:c14n2 _:c14n1 . 4 | -------------------------------------------------------------------------------- /test_files/toRdf-0018-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /test_files/compact-0033-context.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 | } 7 | -------------------------------------------------------------------------------- /test_files/compact-0034-context.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 | } 7 | -------------------------------------------------------------------------------- /test_files/compact-0050-context.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 | } 7 | -------------------------------------------------------------------------------- /test_files/compact-0054-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example.org/term", "@type": "@vocab"}, 4 | "enum": {"@id": "http://example.org/enum"} 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test_files/compact-0055-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example.org/term", "@type": "@vocab"}, 4 | "enum": {"@id": "http://example.org/enum"} 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test_files/compact-0067-context.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 | } 7 | -------------------------------------------------------------------------------- /test_files/error-0043-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example/foo", 4 | "@index": "bar" 5 | }, 6 | { 7 | "@id": "http://example/foo", 8 | "@index": "baz" 9 | } 10 | ] -------------------------------------------------------------------------------- /test_files/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 | -------------------------------------------------------------------------------- /test_files/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 | -------------------------------------------------------------------------------- /test_files/compact-0006-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/", 4 | "term1": { "@id": "ex:term1", "@type": "ex:datatype" }, 5 | "term2": "ex:term2" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /test_files/compact-0009-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "dc": "http://purl.org/dc/elements/1.1/", 4 | "ex": "http://example.org/vocab#", 5 | "ex:contains": {"@type": "@id"} 6 | } 7 | } -------------------------------------------------------------------------------- /test_files/compact-0010-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "homepage": {"@id": "http://xmlns.com/foaf/0.1/homepage", "@type": "@id"}, 4 | "name": "http://xmlns.com/foaf/0.1/name" 5 | } 6 | } -------------------------------------------------------------------------------- /test_files/compact-0013-out.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 | } -------------------------------------------------------------------------------- /test_files/compact-0040-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://me.markus-lanthaler.com/", 3 | "http://example.com/list": { 4 | "@list": [ 5 | "one item" 6 | ] 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /test_files/error-0036-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@reverse": "http://example/reverse"} 4 | }, 5 | "@id": "http://example/foo", 6 | "term": {"@list": ["http://example/bar"]} 7 | } -------------------------------------------------------------------------------- /test_files/expand-0055-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 | -------------------------------------------------------------------------------- /test_files/expand-0075-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "ex:node1", 4 | "_:b1": [ { "@value": "blank node property 1" } ], 5 | "_:b2": [ { "@value": "blank node property 1" } ] 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /test_files/frame-0016-frame.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "dc": "http://purl.org/dc/elements/1.1/", 4 | "ex": "http://example.org/vocab#" 5 | }, 6 | "@type": {}, 7 | "ex:contains": {} 8 | } -------------------------------------------------------------------------------- /test_files/frame-0021-frame.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "dc": "http://purl.org/dc/elements/1.1/", 4 | "ex": "http://example.org/vocab#", 5 | "dc:list": {"@container": "@list"} 6 | } 7 | } -------------------------------------------------------------------------------- /test_files/normalize-0004-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 . 2 | _:c14n0 . 3 | -------------------------------------------------------------------------------- /test_files/toRdf-0012-out.nq: -------------------------------------------------------------------------------- 1 | "Dave Longley" . 2 | "Manu Sporny" . 3 | -------------------------------------------------------------------------------- /test_files/toRdf-0081-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 _:b1 . 2 | _:b0 "this is English"@en . 3 | _:b1 "and this is a plain string" . 4 | -------------------------------------------------------------------------------- /test_files/toRdf-0095-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 | -------------------------------------------------------------------------------- /test_files/compact-0047-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@base": "http://example.com/", 4 | "link": { "@id": "http://example.com/link", "@type": "@id" } 5 | }, 6 | "link": "relative-url" 7 | } 8 | -------------------------------------------------------------------------------- /test_files/compact-0047-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@base": "http://example.com/", 4 | "link": { "@id": "http://example.com/link", "@type": "@id" } 5 | }, 6 | "link": "relative-url" 7 | } 8 | -------------------------------------------------------------------------------- /test_files/normalize-0055-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 . 2 | _:c14n0 _:c14n1 . 3 | _:c14n1 . 4 | -------------------------------------------------------------------------------- /test_files/normalize-0056-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 . 2 | _:c14n0 _:c14n1 . 3 | _:c14n1 . 4 | -------------------------------------------------------------------------------- /test_files/toRdf-0010-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | "Manu Sporny" . 3 | -------------------------------------------------------------------------------- /test_files/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 | } -------------------------------------------------------------------------------- /test_files/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 | -------------------------------------------------------------------------------- /test_files/compact-0028-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://xmlns.com/foaf/0.1/", 4 | "homepage": { 5 | "@type": "@id" 6 | }, 7 | "uri": "@id" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /test_files/compact-0035-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://xmlns.com/foaf/0.1/name", 4 | "isKnownBy": { "@reverse": "http://xmlns.com/foaf/0.1/knows", "@type": "@id" } 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test_files/compact-0054-out.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 | -------------------------------------------------------------------------------- /test_files/compact-0055-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 | -------------------------------------------------------------------------------- /test_files/compact-0055-out.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 | -------------------------------------------------------------------------------- /test_files/compact-0070-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": "http://example/term" 4 | }, 5 | "@graph": [{ 6 | "@id": "http://example/foo", 7 | "term": ["value"] 8 | }] 9 | } 10 | -------------------------------------------------------------------------------- /test_files/expand-0050-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "http://example.com/issue/": [ { "@id": "http://json-ld.org/issue/1" } ], 4 | "http://example.com/issue/raisedBy": [ { "@value": "Markus" } ] 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /test_files/expand-0054-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 | -------------------------------------------------------------------------------- /test_files/flatten-0044-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": "http://example/term" 4 | }, 5 | "@graph": [{ 6 | "@id": "http://example/foo", 7 | "term": ["value"] 8 | }] 9 | } 10 | -------------------------------------------------------------------------------- /test_files/normalize-0004-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/vocab#" 4 | }, 5 | "@type": "ex:Foo", 6 | "ex:embed": { 7 | "@id": "http://example.org/test#example" 8 | } 9 | } -------------------------------------------------------------------------------- /test_files/normalize-0014-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "e": "http://example.org/vocab#" 4 | }, 5 | "@id": "http://example.org/test", 6 | "e:bool": true, 7 | "e:double": 1.23, 8 | "e:int": 123 9 | } -------------------------------------------------------------------------------- /test_files/normalize-0049-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "eg": "http://example.org/vocab#", 4 | "eg:p": {"@type": "@id"} 5 | }, 6 | "@id": "http://example.org/test#example", 7 | "eg:p": null 8 | } -------------------------------------------------------------------------------- /test_files/toRdf-0094-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 | -------------------------------------------------------------------------------- /test_files/compact-0030-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "property": "http://example.com/property", 4 | "indexContainer": { "@id": "http://example.com/container", "@container": "@index" } 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test_files/compact-0036-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://xmlns.com/foaf/0.1/name", 4 | "isKnownBy": { "@reverse": "http://xmlns.com/foaf/0.1/knows", "@container": "@index" } 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test_files/compact-0058-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "notChosen": {"@id": "http://example.org/term", "@type": "@vocab"}, 4 | "chosen": {"@id": "http://example.org/term", "@type": "@id"} 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test_files/compact-0059-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "http://example.com/vocab#foo": [ 4 | { "@id": "http://example.com/vocab#Bar" }, 5 | { "@id": "http://example.com/vocab#Baz" } 6 | ] 7 | } 8 | ] 9 | -------------------------------------------------------------------------------- /test_files/compact-0060-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "http://example.com/vocab#foo": [ 4 | { "@id": "http://example.com/vocab#Bar" }, 5 | { "@id": "http://example.com/vocab#Baz" } 6 | ] 7 | } 8 | ] 9 | -------------------------------------------------------------------------------- /test_files/compact-0061-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "http://example.com/vocab#foo": [ 4 | { "@id": "http://example.com/vocab#Bar" }, 5 | { "@id": "http://example.com/vocab#Baz" } 6 | ] 7 | } 8 | ] 9 | -------------------------------------------------------------------------------- /test_files/compact-0063-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 | -------------------------------------------------------------------------------- /test_files/compact-0068-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://xmlns.com/foaf/0.1/name", 4 | "isKnownBy": { "@reverse": "http://xmlns.com/foaf/0.1/knows", "@container": "@set" } 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test_files/compact-0069-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://xmlns.com/foaf/0.1/name", 4 | "isKnownBy": { "@reverse": "http://xmlns.com/foaf/0.1/knows", "@container": "@set" } 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test_files/expand-0058-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 | -------------------------------------------------------------------------------- /test_files/fromRdf-0015-in.nq: -------------------------------------------------------------------------------- 1 | _:a . 2 | _:a "a" . 3 | _:a "b" . 4 | -------------------------------------------------------------------------------- /test_files/normalize-0050-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n1 "value" . 2 | _:c14n1 "Test 'null' in various locations" . 3 | _:c14n1 _:c14n0 . 4 | -------------------------------------------------------------------------------- /test_files/toRdf-0051-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | "Title" . 3 | -------------------------------------------------------------------------------- /test_files/toRdf-0098-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 | -------------------------------------------------------------------------------- /test_files/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 | -------------------------------------------------------------------------------- /test_files/compact-0005-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/", 4 | "term1": {"@id": "ex:term1", "@type": "ex:datatype"}, 5 | "term2": {"@id": "ex:term2", "@type": "@id"} 6 | } 7 | } -------------------------------------------------------------------------------- /test_files/compact-0016-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "wd": "http://data.wikipedia.org/vocab#", 4 | "ws": "http://data.wikipedia.org/snaks/", 5 | "wp": "http://en.wikipedia.org/wiki/" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /test_files/compact-0019-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "mylist": {"@id": "http://example.com/mylist", "@container": "@list"}, 4 | "myset": {"@id": "http://example.com/myset", "@container": "@set"} 5 | } 6 | } -------------------------------------------------------------------------------- /test_files/compact-0023-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.com/", 4 | "ex": "http://example.com/subdir/", 5 | "ex:vocab/date": { "@type": "ex:vocab/types/dateTime" } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /test_files/compact-0037-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://xmlns.com/foaf/0.1/name", 4 | "knows": "http://xmlns.com/foaf/0.1/knows", 5 | "@vocab": "http://example.com/vocab/" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /test_files/compact-0063-out.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 | -------------------------------------------------------------------------------- /test_files/compact-0071-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [{ 3 | "foo": "http://example.com/foo" 4 | }, { 5 | "bar": "http://example.com/bar" 6 | }], 7 | "foo": "foo-value", 8 | "bar": "bar-value" 9 | } 10 | -------------------------------------------------------------------------------- /test_files/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 | -------------------------------------------------------------------------------- /test_files/toRdf-0110-out.nq: -------------------------------------------------------------------------------- 1 | "bar" . 2 | . 3 | -------------------------------------------------------------------------------- /test_files/compact-0025-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "vocab": "http://example.com/vocab/", 4 | "label": { 5 | "@id": "vocab:label", 6 | "@container": "@language" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /test_files/compact-0062-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": { "@id": "http://example.org/term", "@type": "@vocab" } 4 | }, 5 | "term": "http://json-ld.org/test-suite/tests/not-a-term-thus-a-relative-IRI" 6 | } 7 | -------------------------------------------------------------------------------- /test_files/frame-0004-frame.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "dc": "http://purl.org/dc/elements/1.1/", 4 | "ex": "http://example.org/vocab#", 5 | "ex:contains": {"@type": "@id"} 6 | }, 7 | "@type": "ex:Library" 8 | } -------------------------------------------------------------------------------- /test_files/normalize-0006-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/vocab#" 4 | }, 5 | "@id": "http://example.org/test#example", 6 | "@type": [ 7 | "ex:Foo", 8 | "ex:Bar" 9 | ] 10 | } -------------------------------------------------------------------------------- /test_files/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 | -------------------------------------------------------------------------------- /test_files/compact-0014-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "homepage": {"@id": "http://xmlns.com/foaf/0.1/homepage", "@type": "@id"}, 4 | "name": "http://xmlns.com/foaf/0.1/name", 5 | "data": "@graph" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /test_files/compact-0060-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "Bar": "http://example.com/vocab#Bar", 4 | "foo": { 5 | "@id": "http://example.com/vocab#foo", 6 | "@type": "@id" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /test_files/normalize-0015-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "e": "http://example.org/vocab#" 4 | }, 5 | "@graph": [ 6 | { 7 | "@id": "e:A" 8 | }, 9 | { 10 | "@id": "e:B" 11 | } 12 | ] 13 | } -------------------------------------------------------------------------------- /test_files/normalize-0035-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 _:c14n1 . 2 | _:c14n1 "Foo" . 3 | _:c14n2 _:c14n3 . 4 | _:c14n3 "Foo" . 5 | -------------------------------------------------------------------------------- /test_files/normalize-0036-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 _:c14n1 . 2 | _:c14n1 "Foo" . 3 | _:c14n2 _:c14n3 . 4 | _:c14n3 "Foo" . 5 | -------------------------------------------------------------------------------- /test_files/normalize-0037-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 _:c14n1 . 2 | _:c14n1 "Foo" . 3 | _:c14n2 _:c14n3 . 4 | _:c14n3 "Foo" . 5 | -------------------------------------------------------------------------------- /test_files/toRdf-0006-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://greggkellogg.net/foaf#me", 3 | "http://purl.org/dc/terms/created": { 4 | "@value": "1957-02-27", 5 | "@type": "http://www.w3.org/2001/XMLSchema#date" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /test_files/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 | -------------------------------------------------------------------------------- /test_files/compact-0009-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://example.org/test#book", 3 | "http://example.org/vocab#contains": { 4 | "@id": "http://example.org/test#chapter" 5 | }, 6 | "http://purl.org/dc/elements/1.1/title": "Title" 7 | } -------------------------------------------------------------------------------- /test_files/compact-0017-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "http://www.w3.org/2000/01/rdf-schema#comment": [ 3 | { "@value": "Kommentar auf Deutsch.", "@language": "de" }, 4 | { "@value": "Comment in English.", "@language": "en" } 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /test_files/compact-0020-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/ns#", 4 | "ex:property": { 5 | "@container": "@list" 6 | } 7 | }, 8 | "@id": "ex:property", 9 | "ex:property": [1, 2] 10 | } -------------------------------------------------------------------------------- /test_files/compact-0059-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "Bar": "http://example.com/vocab#Bar", 4 | "foo": { 5 | "@id": "http://example.com/vocab#foo", 6 | "@type": "@vocab" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /test_files/normalize-0016-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 . 2 | _:c14n0 . 3 | _:c14n0 . 4 | -------------------------------------------------------------------------------- /test_files/normalize-0040-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n1 _:c14n0 . 2 | _:c14n2 _:c14n1 . 3 | _:c14n4 _:c14n3 . 4 | _:c14n5 _:c14n4 . 5 | -------------------------------------------------------------------------------- /test_files/normalize-0041-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n1 _:c14n0 . 2 | _:c14n2 _:c14n1 . 3 | _:c14n4 _:c14n3 . 4 | _:c14n5 _:c14n4 . 5 | -------------------------------------------------------------------------------- /test_files/normalize-0042-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n1 _:c14n0 . 2 | _:c14n2 _:c14n1 . 3 | _:c14n4 _:c14n3 . 4 | _:c14n5 _:c14n4 . 5 | -------------------------------------------------------------------------------- /test_files/normalize-0043-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/vocab#" 4 | }, 5 | "@id": "http://example.org/test", 6 | "ex:test": { 7 | "@language": "en", 8 | "@value": "test" 9 | } 10 | } -------------------------------------------------------------------------------- /test_files/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 | -------------------------------------------------------------------------------- /test_files/toRdf-0026-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 . 3 | -------------------------------------------------------------------------------- /test_files/normalize-0007-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/vocab#", 4 | "ex:foo": {"@type": "@id"} 5 | }, 6 | "@id": "http://example.org/test#example", 7 | "@type": "ex:Foo", 8 | "ex:foo": "ex:Bar" 9 | } -------------------------------------------------------------------------------- /test_files/normalize-0022-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 _:c14n1 . 2 | _:c14n0 _:c14n1 . 3 | _:c14n1 _:c14n0 . 4 | _:c14n1 _:c14n0 . 5 | -------------------------------------------------------------------------------- /test_files/compact-0011-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/vocab#", 4 | "ex:date": {"@type": "xsd:dateTime"}, 5 | "ex:parent": {"@type": "@id"}, 6 | "xsd": "http://www.w3.org/2001/XMLSchema#" 7 | } 8 | } -------------------------------------------------------------------------------- /test_files/compact-0039-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://example.com/graph/1", 3 | "@graph": [ 4 | { 5 | "@id": "http://example.com/node/1", 6 | "http://example.com/property": "property" 7 | } 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /test_files/expand-0052-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "http://example.org/property": [ { "@value": "ok" } ], 4 | "http://example.org/vocabRelativeProperty": [ { "@value": "must expand to http://example.org/vocabRelativeProperty" } ] 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /test_files/normalize-0005-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/vocab#" 4 | }, 5 | "@id": "http://example.org/test#example", 6 | "@type": "ex:Foo", 7 | "ex:embed": { 8 | "@type": "ex:Bar" 9 | } 10 | } -------------------------------------------------------------------------------- /test_files/toRdf-0101-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 | -------------------------------------------------------------------------------- /test_files/toRdf-0115-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | _:b0 . 4 | -------------------------------------------------------------------------------- /test_files/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 | } -------------------------------------------------------------------------------- /test_files/compact-0043-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.com/", 4 | "name": "http://xmlns.com/foaf/0.1/name" 5 | }, 6 | "@id": "http://example.com/node", 7 | "http://example.com/name": "Markus Lanthaler" 8 | } 9 | -------------------------------------------------------------------------------- /test_files/expand-0050-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 | -------------------------------------------------------------------------------- /test_files/expand-0061-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 | -------------------------------------------------------------------------------- /test_files/flatten-0042-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "test": "http://example.com/list" 4 | }, 5 | "@id": "list-equivalence-test", 6 | "test": [ 7 | { "@list": [ "1", "2" ] }, 8 | { "@list": [ "1", "2" ] } 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /test_files/frame-0011-frame.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://www.example.com/#" 4 | }, 5 | "@type": "ex:Thing", 6 | "ex:embed": { 7 | "@embed": true 8 | }, 9 | "ex:noembed": { 10 | "@embed": false 11 | } 12 | } -------------------------------------------------------------------------------- /test_files/frame-0018-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@graph": [{ 3 | "@id": "http://example.org/test/#library", 4 | "@type": "http://example.org/vocab#Library", 5 | "http://example.org/vocab#contains": {"@id": "http://example.org/test#book"} 6 | }] 7 | } -------------------------------------------------------------------------------- /test_files/normalize-0007-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | -------------------------------------------------------------------------------- /test_files/toRdf-0050-out.nq: -------------------------------------------------------------------------------- 1 | "true"^^ . 2 | "123"^^ . 3 | -------------------------------------------------------------------------------- /test_files/toRdf-0090-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 | -------------------------------------------------------------------------------- /test_files/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 | -------------------------------------------------------------------------------- /test_files/compact-0040-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://me.markus-lanthaler.com/", 4 | "http://example.com/list": { 5 | "@list": [ 6 | "one item" 7 | ] 8 | } 9 | } 10 | ] 11 | -------------------------------------------------------------------------------- /test_files/compact-0049-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "property": { "@id": "http://example.org", "@type": "@id" } 4 | }, 5 | "property": { "@list": [ "http://example.com/node/a", "http://example.com/node/b", "http://example.com/node/c" ] } 6 | } 7 | -------------------------------------------------------------------------------- /test_files/compact-0056-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example.org/term", "@type": "@vocab"}, 4 | "doNotSelect": {"@id": "http://example.org/term"}, 5 | "enum": {"@id": "http://example.org/enum"} 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /test_files/compact-0058-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "notChosen": {"@id": "http://example.org/term", "@type": "@vocab"}, 4 | "chosen": {"@id": "http://example.org/term", "@type": "@id"} 5 | }, 6 | "chosen": "http://example.org/enum" 7 | } 8 | -------------------------------------------------------------------------------- /test_files/expand-0011-out.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "http://example.org/test#book", 3 | "http://example.org/vocab#contains": [{ 4 | "@id": "http://example.org/test#chapter" 5 | }], 6 | "http://purl.org/dc/elements/1.1/title": [{"@value": "Title"}] 7 | }] -------------------------------------------------------------------------------- /test_files/expand-0032-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://me.markus-lanthaler.com/", 4 | "http://xmlns.com/foaf/0.1/name": [ 5 | { 6 | "@value": "Markus Lanthaler" 7 | } 8 | ] 9 | } 10 | ] 11 | -------------------------------------------------------------------------------- /test_files/expand-0070-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.com/vocab#id", 4 | "@type": [ "http://www.example.org/vocab#Class" ], 5 | "http://www.example.org/vocab#foo": [ 6 | { "@value": "bar"} 7 | ] 8 | } 9 | ] 10 | -------------------------------------------------------------------------------- /test_files/flatten-0045-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 | -------------------------------------------------------------------------------- /test_files/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 | -------------------------------------------------------------------------------- /test_files/compact-0049-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "property": { "@id": "http://example.org", "@type": "@id" } 4 | }, 5 | "property": { "@list": [ "http://example.com/node/a", "http://example.com/node/b", "http://example.com/node/c" ] } 6 | } 7 | -------------------------------------------------------------------------------- /test_files/expand-0071-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "http://example.com/vocab#term": [ 4 | { "@value": "value of v:term" } 5 | ], 6 | "http://example.com/vocab#termId": [ 7 | { "@value": "value of v:termId" } 8 | ] 9 | } 10 | ] 11 | -------------------------------------------------------------------------------- /test_files/expand-0008-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.org/test", 4 | "http://example.org/vocab#test": [ { "@value": "test", "@language": "en" } ], 5 | "http://example.org/vocab#keep-full-value": [ {"@value": "only value"} ] 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /test_files/expand-0070-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "prefix": "http://www.example.org/vocab#", 4 | "prefix:foo": "prefix:foo" 5 | }, 6 | "@id": "http://example.com/vocab#id", 7 | "@type": "prefix:Class", 8 | "prefix:foo": "bar" 9 | } 10 | -------------------------------------------------------------------------------- /test_files/flatten-0022-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "_:b0", 4 | "http://example.com/term": [ 5 | { 6 | "@value": "v", 7 | "@language": "en" 8 | } 9 | ] 10 | } 11 | ] 12 | -------------------------------------------------------------------------------- /test_files/flatten-0032-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://me.markus-lanthaler.com/", 4 | "http://xmlns.com/foaf/0.1/name": [ 5 | { 6 | "@value": "Markus Lanthaler" 7 | } 8 | ] 9 | } 10 | ] -------------------------------------------------------------------------------- /test_files/toRdf-0110-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "prefix": "http://www.example.org/vocab#", 4 | "prefix:foo": "prefix:foo" 5 | }, 6 | "@id": "http://example.com/vocab#id", 7 | "@type": "prefix:Class", 8 | "prefix:foo": "bar" 9 | } 10 | -------------------------------------------------------------------------------- /test_files/compact-0056-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "term": {"@id": "http://example.org/term", "@type": "@vocab"}, 4 | "doNotSelect": {"@id": "http://example.org/term"}, 5 | "enum": {"@id": "http://example.org/enum"} 6 | }, 7 | "term": "enum" 8 | } 9 | -------------------------------------------------------------------------------- /test_files/expand-0052-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 | -------------------------------------------------------------------------------- /test_files/expand-0068-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "_:node1", 4 | "@type": [ "_:type" ], 5 | "_:property": [ 6 | { "@value": "all these IRIs remain unchanged because they are interpreted as blank node identifiers" } 7 | ] 8 | } 9 | ] 10 | -------------------------------------------------------------------------------- /test_files/expand-0077-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://example.com/id1", 3 | "@type": "t1", 4 | "term1": "v1", 5 | "term2": {"@value": "v2", "@type": "t2"}, 6 | "term3": {"@value": "v3", "@language": "en"}, 7 | "term4": 4, 8 | "term5": [50, 51] 9 | } 10 | -------------------------------------------------------------------------------- /test_files/flatten-0025-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "_:b0", 4 | "@type": [ 5 | "http://example.com/foo/", 6 | "http://example.com/bar", 7 | "http://example.com/underscore/" 8 | ] 9 | } 10 | ] 11 | -------------------------------------------------------------------------------- /test_files/normalize-0006-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | -------------------------------------------------------------------------------- /test_files/toRdf-0070-out.nq: -------------------------------------------------------------------------------- 1 | "Die Königin"@de . 2 | "Ihre Majestät"@de . 3 | "The Queen"@en . 4 | -------------------------------------------------------------------------------- /test_files/toRdf-0073-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "2012-10-28"^^ . 2 | _:b0 . 3 | _:b0 "Markus Lanthaler" . 4 | -------------------------------------------------------------------------------- /test_files/toRdf-0092-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 | -------------------------------------------------------------------------------- /test_files/compact-0026-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.com/vocab/", 4 | "@language": "it", 5 | "s": { "@id": "label", "@language": "en" }, 6 | "label": { 7 | "@container": "@language" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /test_files/normalize-0053-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "prop1": "http://example.org/test#property1", 4 | "prop2": {"@id": "http://example.org/test#property2", "@container": "@list"} 5 | }, 6 | "prop1": {"@list": ["1","2","3"]}, 7 | "prop2": ["4","5","6"] 8 | } -------------------------------------------------------------------------------- /test_files/toRdf-0107-out.nq: -------------------------------------------------------------------------------- 1 | "all these IRIs remain unchanged because they are interpreted as absolute IRIs" . 2 | . 3 | -------------------------------------------------------------------------------- /test_files/compact-0003-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 | } -------------------------------------------------------------------------------- /test_files/compact-0008-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "http://example.org/test#property1": {"@type": "@id"}, 4 | "http://example.org/test#property2": {"@type": "@id"}, 5 | "http://example.org/test#property3": {"@type": "@id"}, 6 | "uri": "@id" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /test_files/expand-0003-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 | } -------------------------------------------------------------------------------- /test_files/expand-0047-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.com/node", 4 | "http://example.com/property": [ 5 | { 6 | "@value": "nodes with properties are not removed" 7 | } 8 | ] 9 | } 10 | ] 11 | -------------------------------------------------------------------------------- /test_files/flatten-0003-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 | } -------------------------------------------------------------------------------- /test_files/flatten-0041-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.com/node", 4 | "http://example.com/property": [ 5 | { 6 | "@value": "nodes with properties are not removed" 7 | } 8 | ] 9 | } 10 | ] 11 | -------------------------------------------------------------------------------- /test_files/normalize-0051-out.nq: -------------------------------------------------------------------------------- 1 | "object1" . 2 | "object2" . 3 | "object3" . 4 | -------------------------------------------------------------------------------- /test_files/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 | -------------------------------------------------------------------------------- /test_files/toRdf-0043-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 | } -------------------------------------------------------------------------------- /test_files/compact-0007-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "dc": "http://purl.org/dc/elements/1.1/", 4 | "ex": "http://example.org/vocab#", 5 | "ex:authored": {"@type": "@id"}, 6 | "ex:contains": {"@type": "@id"}, 7 | "foaf": "http://xmlns.com/foaf/0.1/" 8 | } 9 | } -------------------------------------------------------------------------------- /test_files/normalize-0020-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n2 . 2 | _:c14n1 . 3 | _:c14n1 _:c14n0 . 4 | _:c14n2 _:c14n0 . 5 | -------------------------------------------------------------------------------- /test_files/toRdf-0014-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 "Manu Sporny" . 3 | _:b0 . 4 | -------------------------------------------------------------------------------- /test_files/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 | -------------------------------------------------------------------------------- /test_files/toRdf-0025-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 "Manu Sporny" . 3 | _:b0 . 4 | -------------------------------------------------------------------------------- /test_files/toRdf-0109-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | -------------------------------------------------------------------------------- /test_files/toRdf-0065-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 . 3 | _:b0 . 4 | -------------------------------------------------------------------------------- /test_files/compact-0039-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.com/graph/1", 4 | "@graph": [ 5 | { 6 | "@id": "http://example.com/node/1", 7 | "http://example.com/property": [ { "@value": "property" } ] 8 | } 9 | ] 10 | } 11 | ] 12 | -------------------------------------------------------------------------------- /test_files/error-0034-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 | -------------------------------------------------------------------------------- /test_files/toRdf-0032-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | "Node 2" . 4 | -------------------------------------------------------------------------------- /test_files/toRdf-0033-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | "Node 2" . 4 | -------------------------------------------------------------------------------- /test_files/toRdf-0034-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | "Node 2" . 4 | -------------------------------------------------------------------------------- /test_files/expand-0025-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "foo": "http://example.com/foo/", 4 | "foo:bar": "http://example.com/bar", 5 | "bar": {"@id": "foo:bar", "@type": "@id"}, 6 | "_": "http://example.com/underscore/" 7 | }, 8 | "@type": [ "foo", "foo:bar", "_" ] 9 | } 10 | -------------------------------------------------------------------------------- /test_files/flatten-0025-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "foo": "http://example.com/foo/", 4 | "foo:bar": "http://example.com/bar", 5 | "bar": {"@id": "foo:bar", "@type": "@id"}, 6 | "_": "http://example.com/underscore/" 7 | }, 8 | "@type": ["foo", "foo:bar", "_"] 9 | } 10 | -------------------------------------------------------------------------------- /test_files/frame-0012-frame.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "sp": "http://smartplatforms.org/terms#" 4 | }, 5 | "@type": ["sp:Medication", "sp:Fulfillment"], 6 | "sp:hasFulfillment": {"@omitDefault": true, "@embed": false}, 7 | "sp:hasMedication": {"@omitDefault": true, "@embed": false} 8 | } -------------------------------------------------------------------------------- /test_files/toRdf-0065-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "foo": "http://example.com/foo/", 4 | "foo:bar": "http://example.com/bar", 5 | "bar": {"@id": "foo:bar", "@type": "@id"}, 6 | "_": "http://example.com/underscore/" 7 | }, 8 | "@type": [ "foo", "foo:bar", "_" ] 9 | } 10 | -------------------------------------------------------------------------------- /test_files/compact-0004-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "mylist1": {"@id": "http://example.com/mylist1", "@container": "@list"}, 4 | "myset2": {"@id": "http://example.com/myset2", "@container": "@set"}, 5 | "myset3": {"@id": "http://example.com/myset3", "@container": "@set"} 6 | } 7 | } -------------------------------------------------------------------------------- /test_files/compact-0005-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://example.org/id1", 3 | "@type": ["http://example.org/Type1", "http://example.org/Type2"], 4 | "http://example.org/term1": {"@value": "v1", "@type": "http://example.org/datatype"}, 5 | "http://example.org/term2": {"@id": "http://example.org/id2"} 6 | } -------------------------------------------------------------------------------- /test_files/compact-0059-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "Bar": "http://example.com/vocab#Bar", 4 | "foo": { 5 | "@id": "http://example.com/vocab#foo", 6 | "@type": "@vocab" 7 | } 8 | }, 9 | "foo": [ 10 | "Bar", 11 | "http://example.com/vocab#Baz" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /test_files/error-0035-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 | -------------------------------------------------------------------------------- /test_files/expand-0067-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.org/node1", 4 | "@type": ["http://example.org/type"], 5 | "http://example.org/property": [ 6 | { "@value": "all these IRIs remain unchanged because they are interpreted as absolute IRIs" } 7 | ] 8 | } 9 | ] 10 | -------------------------------------------------------------------------------- /test_files/toRdf-0077-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | "Dave Longley" . 3 | "Markus Lanthaler" . 4 | -------------------------------------------------------------------------------- /test_files/toRdf-0079-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | "Dave Longley" . 3 | "Markus Lanthaler" . 4 | -------------------------------------------------------------------------------- /test_files/toRdf-0082-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | "Dave Longley" . 3 | "Markus Lanthaler" . 4 | -------------------------------------------------------------------------------- /test_files/toRdf-0105-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | "Dave Longley" . 3 | "Markus Lanthaler" . 4 | -------------------------------------------------------------------------------- /test_files/toRdf-0112-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 | -------------------------------------------------------------------------------- /test_files/expand-0068-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "_": "http://example.com/this-prefix-would-overwrite-all-blank-node-identifiers" 4 | }, 5 | "@id": "_:node1", 6 | "@type": "_:type", 7 | "_:property": "all these IRIs remain unchanged because they are interpreted as blank node identifiers" 8 | } 9 | -------------------------------------------------------------------------------- /test_files/expand-0069-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.com/vocab#class", 4 | "@type": [ "http://www.w3.org/2000/01/rdf-schema#Class" ], 5 | "http://www.w3.org/2000/01/rdf-schema#subClassOf": [ 6 | { "@id": "http://example.com/vocab#someOtherClass"} 7 | ] 8 | } 9 | ] 10 | -------------------------------------------------------------------------------- /test_files/expand-0072-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 | -------------------------------------------------------------------------------- /test_files/toRdf-0108-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "_": "http://example.com/this-prefix-would-overwrite-all-blank-node-identifiers" 4 | }, 5 | "@id": "_:node1", 6 | "@type": "_:type", 7 | "_:property": "all these IRIs remain unchanged because they are interpreted as blank node identifiers" 8 | } 9 | -------------------------------------------------------------------------------- /test_files/compact-0006-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "http://example.org/id1", 3 | "@type": ["http://example.org/Type1", "http://example.org/Type2"], 4 | "http://example.org/term1": {"@value": "v1", "@type": "http://example.org/different-datatype"}, 5 | "http://example.org/term2": {"@id": "http://example.org/id2"} 6 | } 7 | -------------------------------------------------------------------------------- /test_files/compact-0046-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://me.markus-lanthaler.com/", 4 | "http://xmlns.com/foaf/0.1/name": "Markus Lanthaler" 5 | }, 6 | { 7 | "@id": "http://greggkellogg.net/foaf#me", 8 | "http://xmlns.com/foaf/0.1/name": "Gregg Kellogg" 9 | } 10 | ] 11 | -------------------------------------------------------------------------------- /test_files/expand-0032-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 | -------------------------------------------------------------------------------- /test_files/flatten-0043-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "", 3 | "http://example/sequence": {"@list": [ 4 | { 5 | "@id": "#t0001", 6 | "http://example/name": "Keywords cannot be aliased to other keywords", 7 | "http://example/input": {"@id": "error-expand-0001-in.jsonld"} 8 | } 9 | ]} 10 | } 11 | -------------------------------------------------------------------------------- /test_files/toRdf-0048-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 | -------------------------------------------------------------------------------- /test_files/toRdf-0072-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 | -------------------------------------------------------------------------------- /test_files/toRdf-0084-out.nq: -------------------------------------------------------------------------------- 1 | "einfacher String"@de . 2 | . 3 | "simple string"@en . 4 | -------------------------------------------------------------------------------- /test_files/compact-0029-in.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "http://example.com/article", 3 | "http://example.com/vocab/author": [{ 4 | "@id": "http://example.org/person/1", 5 | "@index": "regular" 6 | }, { 7 | "@id": "http://example.org/guest/cd24f329aa", 8 | "@index": "guest" 9 | }] 10 | }] 11 | -------------------------------------------------------------------------------- /test_files/expand-0008-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 | -------------------------------------------------------------------------------- /test_files/expand-0027-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 | -------------------------------------------------------------------------------- /test_files/expand-0041-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "http://example.com/property": [ { "@value": "this is English", "@language": "en" } ], 4 | "http://example.com/nested": [ 5 | { 6 | "http://example.com/property": [ { "@value": "and this is a plain string" } ] 7 | } 8 | ] 9 | } 10 | ] 11 | -------------------------------------------------------------------------------- /test_files/flatten-0008-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 | -------------------------------------------------------------------------------- /test_files/flatten-0032-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 | -------------------------------------------------------------------------------- /test_files/frame-0001-frame.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "dc": "http://purl.org/dc/elements/1.1/", 4 | "ex": "http://example.org/vocab#" 5 | }, 6 | "@type": "ex:Library", 7 | "ex:contains": { 8 | "@type": "ex:Book", 9 | "ex:contains": { 10 | "@type": "ex:Chapter" 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /test_files/frame-0002-frame.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "dc": "http://purl.org/dc/elements/1.1/", 4 | "ex": "http://example.org/vocab#" 5 | }, 6 | "@type": "ex:Library", 7 | "ex:contains": { 8 | "@type": "ex:Book", 9 | "ex:contains": { 10 | "@type": "ex:Chapter" 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /test_files/frame-0006-frame.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "dc": "http://purl.org/dc/elements/1.1/", 4 | "ex": "http://example.org/vocab#" 5 | }, 6 | "@type": "ex:Library", 7 | "ex:contains": { 8 | "@type": "ex:Book", 9 | "ex:contains": { 10 | "@type": "ex:Chapter" 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /test_files/frame-0007-frame.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "dc": "http://purl.org/dc/elements/1.1/", 4 | "ex": "http://example.org/vocab#" 5 | }, 6 | "@type": "ex:Library", 7 | "ex:contains": { 8 | "@type": "ex:Book", 9 | "ex:contains": { 10 | "@type": "ex:Chapter" 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /test_files/frame-0017-frame.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "dc": "http://purl.org/dc/elements/1.1/", 4 | "ex": "http://example.org/vocab#" 5 | }, 6 | "@type": "ex:Library", 7 | "ex:contains": { 8 | "@type": "ex:Book", 9 | "ex:contains": { 10 | "@type": "ex:Chapter" 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /test_files/normalize-0005-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 . 2 | . 3 | _:c14n0 . 4 | -------------------------------------------------------------------------------- /test_files/toRdf-0067-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 | -------------------------------------------------------------------------------- /test_files/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 | -------------------------------------------------------------------------------- /test_files/compact-0019-out.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 | -------------------------------------------------------------------------------- /test_files/compact-0022-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "owl": "http://www.w3.org/2002/07/owl#", 4 | "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", 5 | "ex": "https://example.org/ns#", 6 | "id": "@id", 7 | "type": "@type", 8 | "ex:properties": { "@container": "@list" } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /test_files/flatten-0027-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 | -------------------------------------------------------------------------------- /test_files/frame-0014-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/" 4 | }, 5 | "@id": "ex:a", 6 | "@type": "ex:Node", 7 | "ex:sees": { 8 | "@id": "ex:b", 9 | "@type": "ex:Node", 10 | "ex:sees": { 11 | "ex:remember_me": "This value should not disappear." 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /test_files/normalize-0019-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "e": "http://example.org/vocab#", 4 | "e:self": {"@type": "@id"} 5 | }, 6 | "@graph": [ 7 | { 8 | "@id": "_:b0", 9 | "e:self": "_:b0" 10 | }, 11 | { 12 | "@id": "_:b1", 13 | "e:self": "_:b1" 14 | } 15 | ] 16 | } -------------------------------------------------------------------------------- /test_files/normalize-0021-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "e": "http://example.org/vocab#", 4 | "e:next": {"@type": "@id"} 5 | }, 6 | "@graph": [ 7 | { 8 | "@id": "_:b1", 9 | "e:next": "_:b2" 10 | }, 11 | { 12 | "@id": "_:b2", 13 | "e:next": "_:b1" 14 | } 15 | ] 16 | } -------------------------------------------------------------------------------- /test_files/normalize-0050-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "eg": "http://example.org/vocab#" 4 | }, 5 | "@id": "_:c1", 6 | "eg:array": ["value", null], 7 | "eg:doc": "Test 'null' in various locations", 8 | "eg:null": null, 9 | "eg:object": { 10 | "prop1": "value1", 11 | "prop2": null 12 | } 13 | } -------------------------------------------------------------------------------- /test_files/toRdf-0089-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | "Markus Lanthaler" . 4 | -------------------------------------------------------------------------------- /test_files/compact-0005-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/", 4 | "term1": {"@id": "ex:term1", "@type": "ex:datatype"}, 5 | "term2": {"@id": "ex:term2", "@type": "@id"} 6 | }, 7 | "@id": "ex:id1", 8 | "@type": ["ex:Type1", "ex:Type2"], 9 | "term1": "v1", 10 | "term2": "ex:id2" 11 | } -------------------------------------------------------------------------------- /test_files/compact-0009-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "dc": "http://purl.org/dc/elements/1.1/", 4 | "ex": "http://example.org/vocab#", 5 | "ex:contains": {"@type": "@id"} 6 | }, 7 | "@id": "http://example.org/test#book", 8 | "dc:title": "Title", 9 | "ex:contains": "http://example.org/test#chapter" 10 | } -------------------------------------------------------------------------------- /test_files/compact-0042-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.com/node", 4 | "http://example.com/property": [ 5 | { 6 | "@list": [ 7 | { 8 | "@value": "one item" 9 | } 10 | ], 11 | "@index": "an index" 12 | } 13 | ] 14 | } 15 | ] 16 | -------------------------------------------------------------------------------- /test_files/compact-0052-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "graph": "@graph", 4 | "term": "http://example.org/term" 5 | }, 6 | "graph": [ 7 | { 8 | "term": { 9 | "@list": [1] 10 | } 11 | }, 12 | { 13 | "term": { 14 | "@list": [2] 15 | } 16 | } 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /test_files/compact-0052-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "graph": "@graph", 4 | "term": "http://example.org/term" 5 | }, 6 | "graph": [ 7 | { 8 | "term": { 9 | "@list": [1] 10 | } 11 | }, 12 | { 13 | "term": { 14 | "@list": [2] 15 | } 16 | } 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /test_files/compact-0060-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "Bar": "http://example.com/vocab#Bar", 4 | "foo": { 5 | "@id": "http://example.com/vocab#foo", 6 | "@type": "@id" 7 | } 8 | }, 9 | "foo": [ 10 | "http://example.com/vocab#Bar", 11 | "http://example.com/vocab#Baz" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /test_files/normalize-0011-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/vocab#", 4 | "ex:validFrom": { 5 | "@type": "xsd:dateTime" 6 | }, 7 | "xsd": "http://www.w3.org/2001/XMLSchema#" 8 | }, 9 | "@id": "http://example.org/test#example", 10 | "ex:validFrom": "2011-01-25T00:00:00Z" 11 | } -------------------------------------------------------------------------------- /test_files/normalize-0016-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "e": "http://example.org/vocab#", 4 | "e:B": {"@type": "@id"} 5 | }, 6 | "@id": "http://example.org/test", 7 | "e:A": { 8 | "@id": "_:b1" 9 | }, 10 | "e:B": "_:b1", 11 | "e:embed": { 12 | "@id": "_:b1", 13 | "name": "foo" 14 | } 15 | } -------------------------------------------------------------------------------- /test_files/toRdf-0031-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | "A property" . 3 | "My vocabulary" . 4 | -------------------------------------------------------------------------------- /test_files/toRdf-0101-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "1"^^ . 2 | _:b0 "5.1E0"^^ . 3 | _:b0 "false"^^ . 4 | _:b0 "true"^^ . 5 | -------------------------------------------------------------------------------- /test_files/compact-0061-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "Bar": "http://example.com/vocab#Bar", 4 | "fooI": { 5 | "@id": "http://example.com/vocab#foo", 6 | "@type": "@id" 7 | }, 8 | "fooV": { 9 | "@id": "http://example.com/vocab#foo", 10 | "@type": "@vocab" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /test_files/expand-0010-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 | } -------------------------------------------------------------------------------- /test_files/flatten-0010-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 | } -------------------------------------------------------------------------------- /test_files/normalize-0002-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/vocab#" 4 | }, 5 | "@id": "http://example.org/test#example1", 6 | "ex:p": [ 7 | { 8 | "@id": "http://example.org/test#example2" 9 | }, 10 | { 11 | "@id": "http://example.org/test#example2" 12 | } 13 | ] 14 | } -------------------------------------------------------------------------------- /test_files/normalize-0010-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/vocab#", 4 | "ex:validFrom": { 5 | "@type": "xsd:dateTime" 6 | }, 7 | "xsd": "http://www.w3.org/2001/XMLSchema#" 8 | }, 9 | "@id": "http://example.org/test#example", 10 | "ex:validFrom": "2011-01-25T00:00:00+0000" 11 | } -------------------------------------------------------------------------------- /test_files/toRdf-0050-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 | } -------------------------------------------------------------------------------- /test_files/compact-0028-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://xmlns.com/foaf/0.1/", 4 | "homepage": { 5 | "@type": "@id" 6 | }, 7 | "uri": "@id" 8 | }, 9 | "uri": "http://me.markus-lanthaler.com/", 10 | "name": "Markus Lanthaler", 11 | "homepage": "http://www.markus-lanthaler.com/" 12 | } 13 | -------------------------------------------------------------------------------- /test_files/compact-0028-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://xmlns.com/foaf/0.1/", 4 | "homepage": { 5 | "@type": "@id" 6 | }, 7 | "uri": "@id" 8 | }, 9 | "uri": "http://me.markus-lanthaler.com/", 10 | "name": "Markus Lanthaler", 11 | "homepage": "http://www.markus-lanthaler.com/" 12 | } 13 | -------------------------------------------------------------------------------- /test_files/compact-0041-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": { "@id": "http://example.com/property", "@container": "@list" } 4 | }, 5 | "@id": "http://example.com/node", 6 | "http://example.com/property": { 7 | "@list": [ 8 | "one item" 9 | ], 10 | "@index": "an index" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /test_files/compact-0046-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@graph": [ 3 | { 4 | "@id": "http://me.markus-lanthaler.com/", 5 | "http://xmlns.com/foaf/0.1/name": "Markus Lanthaler" 6 | }, 7 | { 8 | "@id": "http://greggkellogg.net/foaf#me", 9 | "http://xmlns.com/foaf/0.1/name": "Gregg Kellogg" 10 | } 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /test_files/expand-0067-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "http": "http://example.com/this-prefix-would-overwrite-all-http-iris" 4 | }, 5 | "@id": "http://example.org/node1", 6 | "@type": "http://example.org/type", 7 | "http://example.org/property": "all these IRIs remain unchanged because they are interpreted as absolute IRIs" 8 | } 9 | -------------------------------------------------------------------------------- /test_files/toRdf-0096-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | "Markus Lanthaler" . 4 | -------------------------------------------------------------------------------- /test_files/toRdf-0107-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "http": "http://example.com/this-prefix-would-overwrite-all-http-iris" 4 | }, 5 | "@id": "http://example.org/node1", 6 | "@type": "http://example.org/type", 7 | "http://example.org/property": "all these IRIs remain unchanged because they are interpreted as absolute IRIs" 8 | } 9 | -------------------------------------------------------------------------------- /test_files/compact-0017-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": [ 3 | { 4 | "comment": { "@id": "http://www.w3.org/2000/01/rdf-schema#comment", "@language": "en" } 5 | }, 6 | { 7 | "comment": null, 8 | "comment_en": { "@id": "http://www.w3.org/2000/01/rdf-schema#comment", "@language": "en" } 9 | } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /test_files/compact-0044-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://xmlns.com/foaf/0.1/name", 4 | "knows": { "@id": "http://xmlns.com/foaf/0.1/knows", "@type": "@id" }, 5 | "knowsVocab": { "@id": "http://xmlns.com/foaf/0.1/knows", "@type": "@vocab" }, 6 | "DefinedTerm": "http://example.com/people/DefinedTerm" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /test_files/expand-0069-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 | "@id": "http://example.com/vocab#class", 7 | "@type": "rdfs:Class", 8 | "rdfs:subClassOf": "http://example.com/vocab#someOtherClass" 9 | } 10 | -------------------------------------------------------------------------------- /test_files/normalize-0024-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 _:c14n1 . 2 | _:c14n0 _:c14n2 . 3 | _:c14n1 _:c14n2 . 4 | _:c14n1 _:c14n0 . 5 | _:c14n2 _:c14n0 . 6 | _:c14n2 _:c14n1 . 7 | -------------------------------------------------------------------------------- /test_files/normalize-0025-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 _:c14n1 . 2 | _:c14n0 _:c14n2 . 3 | _:c14n1 _:c14n2 . 4 | _:c14n1 _:c14n0 . 5 | _:c14n2 _:c14n0 . 6 | _:c14n2 _:c14n1 . 7 | -------------------------------------------------------------------------------- /test_files/normalize-0026-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 _:c14n1 . 2 | _:c14n0 _:c14n2 . 3 | _:c14n1 _:c14n2 . 4 | _:c14n1 _:c14n0 . 5 | _:c14n2 _:c14n0 . 6 | _:c14n2 _:c14n1 . 7 | -------------------------------------------------------------------------------- /test_files/normalize-0027-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 _:c14n1 . 2 | _:c14n0 _:c14n2 . 3 | _:c14n1 _:c14n2 . 4 | _:c14n1 _:c14n0 . 5 | _:c14n2 _:c14n0 . 6 | _:c14n2 _:c14n1 . 7 | -------------------------------------------------------------------------------- /test_files/normalize-0028-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 _:c14n1 . 2 | _:c14n0 _:c14n2 . 3 | _:c14n1 _:c14n2 . 4 | _:c14n1 _:c14n0 . 5 | _:c14n2 _:c14n0 . 6 | _:c14n2 _:c14n1 . 7 | -------------------------------------------------------------------------------- /test_files/normalize-0029-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 _:c14n1 . 2 | _:c14n0 _:c14n2 . 3 | _:c14n1 _:c14n2 . 4 | _:c14n1 _:c14n0 . 5 | _:c14n2 _:c14n0 . 6 | _:c14n2 _:c14n1 . 7 | -------------------------------------------------------------------------------- /test_files/toRdf-0109-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 | "@id": "http://example.com/vocab#class", 7 | "@type": "rdfs:Class", 8 | "rdfs:subClassOf": "http://example.com/vocab#someOtherClass" 9 | } 10 | -------------------------------------------------------------------------------- /test_files/compact-0042-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "listAlias": "@list", 4 | "indexAlias": "@index" 5 | }, 6 | "@id": "http://example.com/node", 7 | "http://example.com/property": { 8 | "listAlias": [ 9 | "one item" 10 | ], 11 | "indexAlias": "an index" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /test_files/compact-0048-context.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@language": "de", 4 | "propertyLanguageNull": { 5 | "@id": "http://example.com/propertyA", 6 | "@language": null 7 | }, 8 | "propertyNoLang": "http://example.com/propertyA", 9 | "propertyB": "http://example.com/propertyB" 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /test_files/frame-0010-frame.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "dc": "http://purl.org/dc/terms/", 4 | "dc:creator": { 5 | "@type": "@id" 6 | }, 7 | "foaf": "http://xmlns.com/foaf/0.1/", 8 | "ps": "http://purl.org/payswarm#" 9 | }, 10 | "@id": "http://example.com/asset", 11 | "@type": "ps:Asset", 12 | "dc:creator": {} 13 | } -------------------------------------------------------------------------------- /test_files/frame-0011-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://www.example.com/#" 4 | }, 5 | "@id": "ex:subject", 6 | "@type": "ex:Thing", 7 | "ex:embed": { 8 | "@id": "ex:embedded", 9 | "ex:title": "Embedded" 10 | }, 11 | "ex:noembed": { 12 | "@id": "ex:notembedded", 13 | "ex:title": "Not Embedded" 14 | } 15 | } -------------------------------------------------------------------------------- /test_files/fromRdf-0018-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.com/Subj1", 4 | "http://example.com/prop": [ 5 | { "@value": true }, 6 | { "@value": false }, 7 | { "@value": 1 }, 8 | { "@value": "1.1", "@type": "http://www.w3.org/2001/XMLSchema#decimal"}, 9 | { "@value": 0.11 } 10 | ] 11 | } 12 | ] 13 | -------------------------------------------------------------------------------- /test_files/expand-0030-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 | -------------------------------------------------------------------------------- /test_files/flatten-0042-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://json-ld.org/test-suite/tests/list-equivalence-test", 4 | "http://example.com/list": [ 5 | { 6 | "@list": [ { "@value": "1" }, { "@value": "2" } ] 7 | }, 8 | { 9 | "@list": [ { "@value": "1" }, { "@value": "2" } ] 10 | } 11 | ] 12 | } 13 | ] 14 | -------------------------------------------------------------------------------- /test_files/flatten-0045-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "_:b0", 4 | "http://example.org/foo": [ { "@value": "Foo" } ] 5 | }, 6 | { 7 | "@id": "_:b1", 8 | "http://example.org/bar": [ { "@id": "_:b0" } ] 9 | }, 10 | { 11 | "@id": "http://example.org/origin", 12 | "http://example.org/bar": [ { "@id": "_:b0" } ] 13 | } 14 | ] 15 | -------------------------------------------------------------------------------- /test_files/flatten-0046-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@base": null 4 | }, 5 | "@id": "", 6 | "http://example.com/foo": "bar", 7 | "@graph": [ 8 | { 9 | "@id": "", 10 | "http://example.com/baz": "bam" 11 | }, 12 | { 13 | "@id": "0", 14 | "http://example.com/baaaaaz": "baaaam" 15 | } 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /test_files/normalize-0033-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/vocab#" 4 | }, 5 | "@graph": [ 6 | { 7 | "@id": "_:a0", 8 | "ex:prop": { 9 | "@id": "_:a1" 10 | } 11 | }, 12 | { 13 | "@id": "_:b0", 14 | "ex:prop": { 15 | "@id": "_:b1" 16 | } 17 | } 18 | ] 19 | } -------------------------------------------------------------------------------- /test_files/normalize-0034-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/vocab#" 4 | }, 5 | "@graph": [ 6 | { 7 | "@id": "_:b0", 8 | "ex:prop": { 9 | "@id": "_:b1" 10 | } 11 | }, 12 | { 13 | "@id": "_:a0", 14 | "ex:prop": { 15 | "@id": "_:a1" 16 | } 17 | } 18 | ] 19 | } -------------------------------------------------------------------------------- /test_files/normalize-0055-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "eg": "http://example.org/vocab#", 4 | "eg:p": {"@type": "@id"} 5 | }, 6 | "@graph": [ 7 | { 8 | "@id": "_:a", 9 | "eg:p": ["_:b", "http://example.com"] 10 | }, 11 | { 12 | "@id": "_:b", 13 | "eg:p": "http://example.org" 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /test_files/normalize-0056-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "eg": "http://example.org/vocab#", 4 | "eg:p": {"@type": "@id"} 5 | }, 6 | "@graph": [ 7 | { 8 | "@id": "_:b", 9 | "eg:p": "http://example.org" 10 | }, 11 | { 12 | "@id": "_:a", 13 | "eg:p": ["_:b", "http://example.com"] 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /test_files/toRdf-0070-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 | -------------------------------------------------------------------------------- /test_files/compact-0025-out.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 | -------------------------------------------------------------------------------- /test_files/flatten-0030-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 | -------------------------------------------------------------------------------- /test_files/frame-0011-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://www.example.com/#" 4 | }, 5 | "@graph": [{ 6 | "@id": "ex:subject", 7 | "@type": "ex:Thing", 8 | "ex:embed": { 9 | "@id": "ex:embedded", 10 | "ex:title": "Embedded" 11 | }, 12 | "ex:noembed": { 13 | "@id": "ex:notembedded" 14 | } 15 | }] 16 | } -------------------------------------------------------------------------------- /test_files/fromRdf-0015-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "_:a", 4 | "http://www.w3.org/1999/02/22-rdf-syntax-ns#first": [ { "@value": "a" } ], 5 | "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest": [ { "@value": "b" } ] 6 | }, 7 | { 8 | "@id": "http://example.com", 9 | "http://example.com/property": [ { "@id": "_:a" } ] 10 | } 11 | ] 12 | -------------------------------------------------------------------------------- /test_files/normalize-0014-out.nq: -------------------------------------------------------------------------------- 1 | "true"^^ . 2 | "1.23E0"^^ . 3 | "123"^^ . 4 | -------------------------------------------------------------------------------- /test_files/normalize-0057-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://xmlns.com/foaf/0.1/name", 4 | "homepage": { 5 | "@id": "http://xmlns.com/foaf/0.1/homepage", 6 | "@type": "@id" 7 | } 8 | }, 9 | "@id": "_:graph1", 10 | "@graph": { 11 | "name": "Manu Sporny", 12 | "homepage": "http://manu.sporny.org/" 13 | } 14 | } -------------------------------------------------------------------------------- /test_files/compact-0010-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.com/john", 4 | "http://xmlns.com/foaf/0.1/homepage": { 5 | "@id": "http://john.doe.org/" 6 | }, 7 | "http://xmlns.com/foaf/0.1/name": "John Doe" 8 | }, 9 | { 10 | "@id": "http://example.com/jane", 11 | "http://xmlns.com/foaf/0.1/name": "Jane Doe" 12 | } 13 | ] 14 | -------------------------------------------------------------------------------- /test_files/compact-0014-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.com/john", 4 | "http://xmlns.com/foaf/0.1/homepage": { 5 | "@id": "http://john.doe.org/" 6 | }, 7 | "http://xmlns.com/foaf/0.1/name": "John Doe" 8 | }, 9 | { 10 | "@id": "http://example.com/jane", 11 | "http://xmlns.com/foaf/0.1/name": "Jane Doe" 12 | } 13 | ] 14 | -------------------------------------------------------------------------------- /test_files/compact-0041-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.com/node", 4 | "http://example.com/property": [ 5 | { 6 | "@index": "an index", 7 | "@list": [ 8 | { 9 | "@value": "one item" 10 | } 11 | ] 12 | } 13 | ] 14 | } 15 | ] 16 | -------------------------------------------------------------------------------- /test_files/compact-0068-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.com/people/markus", 4 | "@reverse": { 5 | "http://xmlns.com/foaf/0.1/knows": [ 6 | { 7 | "@id": "http://example.com/people/dave" 8 | } 9 | ] 10 | }, 11 | "http://xmlns.com/foaf/0.1/name": [ { "@value": "Markus Lanthaler" } ] 12 | } 13 | ] 14 | -------------------------------------------------------------------------------- /test_files/compact-0069-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.com/people/markus", 4 | "@reverse": { 5 | "http://xmlns.com/foaf/0.1/knows": [ 6 | { 7 | "@id": "http://example.com/people/dave" 8 | } 9 | ] 10 | }, 11 | "http://xmlns.com/foaf/0.1/name": [ { "@value": "Markus Lanthaler" } ] 12 | } 13 | ] 14 | -------------------------------------------------------------------------------- /test_files/normalize-0012-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/vocab#", 4 | "ex:date": { 5 | "@type": "xsd:dateTime" 6 | }, 7 | "xsd": "http://www.w3.org/2001/XMLSchema#" 8 | }, 9 | "@id": "http://example.org/test#example", 10 | "ex:date": [ 11 | "2011-01-25T00:00:00Z", 12 | "2011-01-25T00:00:00Z" 13 | ] 14 | } -------------------------------------------------------------------------------- /test_files/toRdf-0080-out.nq: -------------------------------------------------------------------------------- 1 | "No" . 2 | "indexes" . 3 | . 4 | "The Queen" . 5 | -------------------------------------------------------------------------------- /test_files/compact-0031-out.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 | -------------------------------------------------------------------------------- /test_files/expand-0037-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 | -------------------------------------------------------------------------------- /test_files/expand-0041-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 | -------------------------------------------------------------------------------- /test_files/flatten-0010-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.org/test", 4 | "http://example.org/vocab#bool": [ 5 | { 6 | "@value": true 7 | } 8 | ], 9 | "http://example.org/vocab#int": [ 10 | { 11 | "@value": 123 12 | } 13 | ] 14 | } 15 | ] -------------------------------------------------------------------------------- /test_files/toRdf-0035-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 "1.0E0"^^ . 2 | _:b0 "2.2E0"^^ . 3 | _:b0 "8"^^ . 4 | _:b0 "9.9E0"^^ . 5 | -------------------------------------------------------------------------------- /test_files/toRdf-0047-out.nq: -------------------------------------------------------------------------------- 1 | "2011-01-25T00:00:00Z"^^ . 2 | . 3 | . 4 | -------------------------------------------------------------------------------- /test_files/toRdf-0077-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 | -------------------------------------------------------------------------------- /test_files/toRdf-0081-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 | -------------------------------------------------------------------------------- /test_files/compact-0002-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 | -------------------------------------------------------------------------------- /test_files/expand-0056-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://me.markus-lanthaler.com/", 4 | "http://xmlns.com/foaf/0.1/homepage": [ { "@id": "http://www.markus-lanthaler.com/" } ], 5 | "http://example.com/link": [ { "@id": "http://json-ld.org/test-suite/tests/relative-iri" } ], 6 | "http://xmlns.com/foaf/0.1/name": [ { "@value": "Markus Lanthaler" } ] 7 | } 8 | ] 9 | -------------------------------------------------------------------------------- /test_files/expand-0077-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 | -------------------------------------------------------------------------------- /test_files/normalize-0013-out.nq: -------------------------------------------------------------------------------- 1 | "2011-01-25T00:00:00Z"^^ . 2 | . 3 | . 4 | -------------------------------------------------------------------------------- /test_files/toRdf-0068-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/vocab#", 4 | "date": { "@type": "dateTime" } 5 | }, 6 | "@id": "example1", 7 | "@type": "test", 8 | "date": "2011-01-25T00:00:00Z", 9 | "embed": { 10 | "@id": "example2", 11 | "expandedDate": { "@value": "2012-08-01T00:00:00Z", "@type": "dateTime" } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /test_files/compact-0068-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://xmlns.com/foaf/0.1/name", 4 | "isKnownBy": { "@reverse": "http://xmlns.com/foaf/0.1/knows", "@container": "@set" } 5 | }, 6 | "@id": "http://example.com/people/markus", 7 | "name": "Markus Lanthaler", 8 | "isKnownBy": [ 9 | { "@id": "http://example.com/people/dave" } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /test_files/compact-0069-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://xmlns.com/foaf/0.1/name", 4 | "isKnownBy": { "@reverse": "http://xmlns.com/foaf/0.1/knows", "@container": "@set" } 5 | }, 6 | "@id": "http://example.com/people/markus", 7 | "name": "Markus Lanthaler", 8 | "isKnownBy": [ 9 | { "@id": "http://example.com/people/dave" } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /test_files/expand-0028-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/vocab#", 4 | "date": { "@type": "dateTime" } 5 | }, 6 | "@id": "example1", 7 | "@type": "test", 8 | "date": "2011-01-25T00:00:00Z", 9 | "embed": { 10 | "@id": "example2", 11 | "expandedDate": { "@value": "2012-08-01T00:00:00Z", "@type": "dateTime" } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /test_files/flatten-0028-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.org/vocab#", 4 | "date": { "@type": "dateTime" } 5 | }, 6 | "@id": "example1", 7 | "@type": "test", 8 | "date": "2011-01-25T00:00:00Z", 9 | "embed": { 10 | "@id": "example2", 11 | "expandedDate": { "@value": "2012-08-01T00:00:00Z", "@type": "dateTime" } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /test_files/normalize-0039-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/vocab#", 4 | "ex:p1": { 5 | "@type": "@id" 6 | } 7 | }, 8 | "@graph": [ 9 | { 10 | "@id": "_:b0", 11 | "ex:p1": [ 12 | {}, 13 | "_:b2" 14 | ] 15 | }, 16 | { 17 | "@id": "_:b2", 18 | "ex:p1": {} 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test_files/toRdf-0082-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 | -------------------------------------------------------------------------------- /test_files/compact-0033-out.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 | -------------------------------------------------------------------------------- /test_files/expand-0042-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 | -------------------------------------------------------------------------------- /test_files/expand-0061-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "http://example.com/property": [ 4 | { "@value": 1, "@type": "http://example.com/datatype" }, 5 | { "@value": true, "@type": "http://example.com/datatype" }, 6 | { "@value": false, "@type": "http://example.com/datatype" }, 7 | { "@value": 5.1, "@type": "http://example.com/datatype" } 8 | ] 9 | } 10 | ] 11 | -------------------------------------------------------------------------------- /test_files/toRdf-0104-out.nq: -------------------------------------------------------------------------------- 1 | "Markus Lanthaler" . 2 | _:b0 . 3 | _:b0 "Dave Longley" . 4 | _:b1 . 5 | _:b1 "Gregg Kellogg" . 6 | -------------------------------------------------------------------------------- /test_files/compact-0002-in.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "http://example.com/id1", 3 | "@type": ["http://example.com/t1"], 4 | "http://example.com/term1": ["v1"], 5 | "http://example.com/term2": [{"@value": "v2", "@type": "http://example.com/t2"}], 6 | "http://example.com/term3": [{"@value": "v3", "@language": "en"}], 7 | "http://example.com/term4": [4], 8 | "http://example.com/term5": [50, 51] 9 | }] -------------------------------------------------------------------------------- /test_files/expand-0013-in.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "http://example.com/id1", 3 | "@type": ["http://example.com/t1"], 4 | "http://example.com/term1": ["v1"], 5 | "http://example.com/term2": [{"@value": "v2", "@type": "http://example.com/t2"}], 6 | "http://example.com/term3": [{"@value": "v3", "@language": "en"}], 7 | "http://example.com/term4": [4], 8 | "http://example.com/term5": [50, 51] 9 | }] -------------------------------------------------------------------------------- /test_files/expand-0033-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.com/vocab#", 4 | "homepage": { 5 | "@type": "@id" 6 | }, 7 | "created_at": { 8 | "@type": "http://www.w3.org/2001/XMLSchema#date" 9 | } 10 | }, 11 | "name": "Markus Lanthaler", 12 | "homepage": "http://www.markus-lanthaler.com/", 13 | "created_at": "2012-10-28" 14 | } 15 | -------------------------------------------------------------------------------- /test_files/expand-0034-out.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "http://example.com/IriCollissions", 3 | "http://example.com/vocab/collidingTerm": [ 4 | { 5 | "@value": "value 1" 6 | }, { 7 | "@value": 2 8 | }, { 9 | "@value": 3 10 | }, { 11 | "@value": "four" 12 | }, 13 | { 14 | "@value": 5 15 | } 16 | ] 17 | }] 18 | -------------------------------------------------------------------------------- /test_files/flatten-0013-in.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "http://example.com/id1", 3 | "@type": ["http://example.com/t1"], 4 | "http://example.com/term1": ["v1"], 5 | "http://example.com/term2": [{"@value": "v2", "@type": "http://example.com/t2"}], 6 | "http://example.com/term3": [{"@value": "v3", "@language": "en"}], 7 | "http://example.com/term4": [4], 8 | "http://example.com/term5": [50, 51] 9 | }] -------------------------------------------------------------------------------- /test_files/flatten-0033-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.com/vocab#", 4 | "homepage": { 5 | "@type": "@id" 6 | }, 7 | "created_at": { 8 | "@type": "http://www.w3.org/2001/XMLSchema#date" 9 | } 10 | }, 11 | "name": "Markus Lanthaler", 12 | "homepage": "http://www.markus-lanthaler.com/", 13 | "created_at": "2012-10-28" 14 | } 15 | -------------------------------------------------------------------------------- /test_files/frame-0010-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "dc0": "http://purl.org/dc/terms/", 4 | "dc:creator": { 5 | "@type": "@id" 6 | }, 7 | "foaf": "http://xmlns.com/foaf/0.1/", 8 | "ps": "http://purl.org/payswarm#" 9 | }, 10 | "@id": "http://example.com/asset", 11 | "@type": "ps:Asset", 12 | "dc:creator": { 13 | "foaf:name": "John Doe" 14 | } 15 | } -------------------------------------------------------------------------------- /test_files/toRdf-0053-in.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "http://example.com/id1", 3 | "@type": ["http://example.com/t1"], 4 | "http://example.com/term1": ["v1"], 5 | "http://example.com/term2": [{"@value": "v2", "@type": "http://example.com/t2"}], 6 | "http://example.com/term3": [{"@value": "v3", "@language": "en"}], 7 | "http://example.com/term4": [4], 8 | "http://example.com/term5": [50, 51] 9 | }] -------------------------------------------------------------------------------- /test_files/toRdf-0071-out.nq: -------------------------------------------------------------------------------- 1 | "true"^^ . 2 | "1.2345E2"^^ . 3 | "1"^^ . 4 | -------------------------------------------------------------------------------- /test_files/toRdf-0073-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.com/vocab#", 4 | "homepage": { 5 | "@type": "@id" 6 | }, 7 | "created_at": { 8 | "@type": "http://www.w3.org/2001/XMLSchema#date" 9 | } 10 | }, 11 | "name": "Markus Lanthaler", 12 | "homepage": "http://www.markus-lanthaler.com/", 13 | "created_at": "2012-10-28" 14 | } 15 | -------------------------------------------------------------------------------- /test_files/compact-0015-in.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "http://example.com/id1", 3 | "@type": ["http://example.com/t1"], 4 | "http://example.com/term": [ 5 | {"@value": "v1", "@language": "de"}, 6 | {"@value": "v2", "@type": "http://example.com/t2"}, 7 | {"@value": "v3", "@language": "en"}, 8 | {"@list": [1, 2]}, 9 | "v5", 10 | {"@value": "plain literal"} 11 | ] 12 | }] 13 | -------------------------------------------------------------------------------- /test_files/compact-0061-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "Bar": "http://example.com/vocab#Bar", 4 | "fooI": { 5 | "@id": "http://example.com/vocab#foo", 6 | "@type": "@id" 7 | }, 8 | "fooV": { 9 | "@id": "http://example.com/vocab#foo", 10 | "@type": "@vocab" 11 | } 12 | }, 13 | "fooV": "Bar", 14 | "fooI": "http://example.com/vocab#Baz" 15 | } 16 | -------------------------------------------------------------------------------- /test_files/expand-0011-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "dc": "http://purl.org/dc/elements/1.1/", 4 | "ex": "http://example.org/vocab#", 5 | "ex:contains": { 6 | "@type": "@id" 7 | }, 8 | "xsd": "http://www.w3.org/2001/XMLSchema#" 9 | }, 10 | "@id": "http://example.org/test#book", 11 | "dc:title": "Title", 12 | "ex:contains": "http://example.org/test#chapter" 13 | } -------------------------------------------------------------------------------- /test_files/expand-0039-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://xmlns.com/foaf/0.1/name", 4 | "knows": "http://xmlns.com/foaf/0.1/knows" 5 | }, 6 | "@id": "http://example.com/people/markus", 7 | "name": "Markus Lanthaler", 8 | "@reverse": { 9 | "knows": { 10 | "@id": "http://example.com/people/dave", 11 | "name": "Dave Longley" 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /test_files/expand-0071-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": "v:term", 10 | "v:termId": { "@id": "v:termId" } 11 | } 12 | ], 13 | "v:term": "value of v:term", 14 | "v:termId": "value of v:termId" 15 | } 16 | -------------------------------------------------------------------------------- /test_files/fromRdf-0010-in.nq: -------------------------------------------------------------------------------- 1 | _:a . 2 | _:a "a" . 3 | _:a _:b . 4 | _:b "b" . 5 | _:b _:c . 6 | _:c "c" . 7 | -------------------------------------------------------------------------------- /test_files/fromRdf-0017-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.com/nodeA", 4 | "http://example.com/property": [ 5 | { "@value": "1" }, 6 | { 7 | "@value": "2", 8 | "@type": "http://www.w3.org/2001/XMLSchema#integer" 9 | }, 10 | { "@id": "http://example.com/nodeB" } 11 | ], 12 | "@type": [ "http://example.com/TypeA" ] 13 | } 14 | ] 15 | -------------------------------------------------------------------------------- /test_files/normalize-0023-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "e": "http://example.org/vocab#", 4 | "e:next": {"@type": "@id"} 5 | }, 6 | "@graph": [ 7 | { 8 | "@id": "_:b1", 9 | "e:next": "_:b2" 10 | }, 11 | { 12 | "@id": "_:b2", 13 | "e:next": "_:b3" 14 | }, 15 | { 16 | "@id": "_:b3", 17 | "e:next": "_:b1" 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /test_files/toRdf-0051-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "dc": "http://purl.org/dc/elements/1.1/", 4 | "ex": "http://example.org/vocab#", 5 | "ex:contains": { 6 | "@type": "@id" 7 | }, 8 | "xsd": "http://www.w3.org/2001/XMLSchema#" 9 | }, 10 | "@id": "http://example.org/test#book", 11 | "dc:title": "Title", 12 | "ex:contains": "http://example.org/test#chapter" 13 | } -------------------------------------------------------------------------------- /test_files/toRdf-0079-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://xmlns.com/foaf/0.1/name", 4 | "knows": "http://xmlns.com/foaf/0.1/knows" 5 | }, 6 | "@id": "http://example.com/people/markus", 7 | "name": "Markus Lanthaler", 8 | "@reverse": { 9 | "knows": { 10 | "@id": "http://example.com/people/dave", 11 | "name": "Dave Longley" 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /test_files/toRdf-0111-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": "v:term", 10 | "v:termId": { "@id": "v:termId" } 11 | } 12 | ], 13 | "v:term": "value of v:term", 14 | "v:termId": "value of v:termId" 15 | } 16 | -------------------------------------------------------------------------------- /test_files/compact-0006-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/", 4 | "term1": { 5 | "@id": "ex:term1", 6 | "@type": "ex:datatype" 7 | }, 8 | "term2": "ex:term2" 9 | }, 10 | "@id": "ex:id1", 11 | "@type": ["ex:Type1", "ex:Type2"], 12 | "ex:term1": {"@value": "v1", "@type": "ex:different-datatype"}, 13 | "term2": {"@id": "ex:id2"} 14 | } 15 | -------------------------------------------------------------------------------- /test_files/compact-0019-in.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "http://example.org/id", 3 | "http://example.com/mylist": [{ 4 | "@list": [ 5 | {"@value": 1}, 6 | {"@value": 2}, 7 | {"@value": 2}, 8 | {"@value": 3} 9 | ] 10 | }], 11 | "http://example.com/myset": [ 12 | {"@value": 1}, 13 | {"@value": 2}, 14 | {"@value": 2}, 15 | {"@value": 3} 16 | ] 17 | }] 18 | -------------------------------------------------------------------------------- /test_files/compact-0032-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://xmlns.com/foaf/0.1/name", 4 | "knows": "http://xmlns.com/foaf/0.1/knows" 5 | }, 6 | "@id": "http://example.com/people/markus", 7 | "name": "Markus Lanthaler", 8 | "@reverse": { 9 | "knows": { 10 | "@id": "http://example.com/people/dave", 11 | "name": "Dave Longley" 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /test_files/expand-0027-out.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "http://example.org/id", 3 | "http://example.com/mylist": [{ 4 | "@list": [ 5 | {"@value": 1}, 6 | {"@value": 2}, 7 | {"@value": 2}, 8 | {"@value": 3} 9 | ] 10 | }], 11 | "http://example.com/myset": [ 12 | {"@value": 1}, 13 | {"@value": 2}, 14 | {"@value": 2}, 15 | {"@value": 3} 16 | ] 17 | }] 18 | -------------------------------------------------------------------------------- /test_files/expand-0033-out.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "http://example.com/vocab#name": [{ 3 | "@value": "Markus Lanthaler" 4 | }], 5 | "http://example.com/vocab#homepage": [{ 6 | "@id": "http://www.markus-lanthaler.com/" 7 | }], 8 | "http://example.com/vocab#created_at": [{ 9 | "@value": "2012-10-28", 10 | "@type": "http://www.w3.org/2001/XMLSchema#date" 11 | }] 12 | }] 13 | -------------------------------------------------------------------------------- /test_files/expand-0034-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.com/vocab/", 4 | "colliding": "http://example.com/vocab/collidingTerm" 5 | }, 6 | "@id": "http://example.com/IriCollissions", 7 | "colliding": [ 8 | "value 1", 9 | 2 10 | ], 11 | "collidingTerm": [ 12 | 3, 13 | "four" 14 | ], 15 | "http://example.com/vocab/collidingTerm": 5 16 | } 17 | -------------------------------------------------------------------------------- /test_files/flatten-0011-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "dc": "http://purl.org/dc/elements/1.1/", 4 | "ex": "http://example.org/vocab#", 5 | "ex:contains": { 6 | "@type": "@id" 7 | }, 8 | "xsd": "http://www.w3.org/2001/XMLSchema#" 9 | }, 10 | "@id": "http://example.org/test#book", 11 | "dc:title": "Title", 12 | "ex:contains": "http://example.org/test#chapter" 13 | } -------------------------------------------------------------------------------- /test_files/flatten-0046-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "", 4 | "http://example.com/foo": [ { "@value": "bar" } ], 5 | "@graph": [ 6 | { 7 | "@id": "", 8 | "http://example.com/baz": [ { "@value": "bam" } ] 9 | }, 10 | { 11 | "@id": "0", 12 | "http://example.com/baaaaaz": [ { "@value": "baaaam" } ] 13 | } 14 | ] 15 | } 16 | ] 17 | -------------------------------------------------------------------------------- /test_files/frame-0013-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/" 4 | }, 5 | "@graph": [ 6 | { 7 | "@id": "ex:looker", 8 | "ex:canSee": [ 9 | { 10 | "@id": "ex:forgotten" 11 | }, 12 | { 13 | "@id": "ex:spotted" 14 | } 15 | ] 16 | }, 17 | { 18 | "@id": "ex:spotted" 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test_files/frame-0013-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/" 4 | }, 5 | "@graph": [{ 6 | "@id": "ex:forgotten" 7 | }, { 8 | "@id": "ex:looker", 9 | "ex:canSee": [ 10 | { 11 | "@id": "ex:forgotten" 12 | }, 13 | { 14 | "@id": "ex:spotted" 15 | } 16 | ] 17 | }, { 18 | "@id": "ex:spotted" 19 | }] 20 | } 21 | -------------------------------------------------------------------------------- /test_files/fromRdf-0016-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.com/", 4 | "http://example.com/list": [ 5 | { 6 | "@list": [ 7 | { 8 | "@value": "A" 9 | }, 10 | { 11 | "@value": "B" 12 | }, 13 | { 14 | "@value": "C" 15 | } 16 | ] 17 | } 18 | ] 19 | } 20 | ] 21 | -------------------------------------------------------------------------------- /test_files/normalize-0051-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.org/test#example", 4 | "http://example.org/test#property": "object1" 5 | }, 6 | { 7 | "@id": "http://example.org/test#example", 8 | "http://example.org/test#property": "object2" 9 | }, 10 | { 11 | "@id": "http://example.org/test#example", 12 | "http://example.org/test#property": "object3" 13 | } 14 | ] -------------------------------------------------------------------------------- /test_files/toRdf-0074-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.com/vocab/", 4 | "colliding": "http://example.com/vocab/collidingTerm" 5 | }, 6 | "@id": "http://example.com/IriCollissions", 7 | "colliding": [ 8 | "value 1", 9 | 2 10 | ], 11 | "collidingTerm": [ 12 | 3, 13 | "four" 14 | ], 15 | "http://example.com/vocab/collidingTerm": 5 16 | } 17 | -------------------------------------------------------------------------------- /test_files/toRdf-0089-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://xmlns.com/foaf/0.1/name", 4 | "isKnownBy": { "@reverse": "http://xmlns.com/foaf/0.1/knows", "@type": "@id" } 5 | }, 6 | "@id": "http://example.com/people/markus", 7 | "name": "Markus Lanthaler", 8 | "isKnownBy": [ 9 | "http://example.com/people/dave", 10 | "http://example.com/people/gregg" 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /test_files/compact-0035-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://xmlns.com/foaf/0.1/name", 4 | "isKnownBy": { "@reverse": "http://xmlns.com/foaf/0.1/knows", "@type": "@id" } 5 | }, 6 | "@id": "http://example.com/people/markus", 7 | "name": "Markus Lanthaler", 8 | "isKnownBy": [ 9 | "http://example.com/people/dave", 10 | "http://example.com/people/gregg" 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /test_files/compact-0048-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@language": "de", 4 | "propertyLanguageNull": { 5 | "@id": "http://example.com/propertyA", 6 | "@language": null 7 | }, 8 | "propertyNoLang": "http://example.com/propertyA", 9 | "propertyB": "http://example.com/propertyB" 10 | }, 11 | "propertyLanguageNull": 5, 12 | "propertyB": 5 13 | } 14 | -------------------------------------------------------------------------------- /test_files/expand-0024-out.jsonld: -------------------------------------------------------------------------------- 1 | [{ 2 | "@id": "http://example.com/speakers#Alice", 3 | "http://xmlns.com/foaf/0.1/name": [{"@value": "Alice"}], 4 | "http://xmlns.com/foaf/0.1/homepage": [{"@id": "http://xkcd.com/177/"}], 5 | "http://www.w3.org/2002/12/cal/ical#summary": [{"@value": "Alice Talk"}], 6 | "http://www.w3.org/2002/12/cal/ical#location": [{"@value": "Lyon Convention Centre, Lyon, France"}] 7 | }] -------------------------------------------------------------------------------- /test_files/expand-0049-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "name": "http://xmlns.com/foaf/0.1/name", 4 | "isKnownBy": { "@reverse": "http://xmlns.com/foaf/0.1/knows", "@type": "@id" } 5 | }, 6 | "@id": "http://example.com/people/markus", 7 | "name": "Markus Lanthaler", 8 | "isKnownBy": [ 9 | "http://example.com/people/dave", 10 | "http://example.com/people/gregg" 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /test_files/flatten-0034-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "@vocab": "http://example.com/vocab/", 4 | "colliding": "http://example.com/vocab/collidingTerm" 5 | }, 6 | "@id": "http://example.com/IriCollissions", 7 | "colliding": [ 8 | "value 1", 9 | 2 10 | ], 11 | "collidingTerm": [ 12 | 3, 13 | "four" 14 | ], 15 | "http://example.com/vocab/collidingTerm": 5 16 | } 17 | -------------------------------------------------------------------------------- /test_files/frame-0018-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/vocab#", 4 | "ex:contains": {"@type": "@id"} 5 | }, 6 | "@graph": [ 7 | { 8 | "@id": "http://example.org/test/#library", 9 | "@type": "ex:Library", 10 | "ex:contains": "http://example.org/test#book" 11 | }, 12 | { 13 | "@id": "http://example.org/test#book" 14 | } 15 | ] 16 | } -------------------------------------------------------------------------------- /test_files/normalize-0030-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n1 . 2 | _:c14n2 . 3 | _:c14n0 . 4 | _:c14n0 _:c14n1 . 5 | _:c14n1 _:c14n2 . 6 | _:c14n2 _:c14n0 . 7 | -------------------------------------------------------------------------------- /test_files/toRdf-0035-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "double": { 4 | "@id": "http://example.com/double", 5 | "@type": "http://www.w3.org/2001/XMLSchema#double" 6 | }, 7 | "integer": { 8 | "@id": "http://example.com/integer", 9 | "@type": "http://www.w3.org/2001/XMLSchema#integer" 10 | } 11 | }, 12 | "double": [1, 2.2 ], 13 | "integer": [8, 9.9 ] 14 | } 15 | -------------------------------------------------------------------------------- /test_files/compact-0050-out.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 | { "@id": "http://example.com/people/gregg" } 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /test_files/toRdf-0036-out.nq: -------------------------------------------------------------------------------- 1 | _:b3 . 2 | _:b2 . 3 | _:b3 _:b0 . 4 | _:b3 _:b4 . 5 | _:b4 _:b1 . 6 | _:b4 . 7 | -------------------------------------------------------------------------------- /test_files/compact-0067-out.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 | { 10 | "name": "Dave Longley" 11 | }, 12 | { 13 | "name": "Gregg Kellogg" 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /test_files/expand-0064-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 | { 10 | "name": "Dave Longley" 11 | }, 12 | { 13 | "name": "Gregg Kellogg" 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /test_files/normalize-0022-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "e": "http://example.org/vocab#", 4 | "e:next": {"@type": "@id"}, 5 | "e:prev": {"@type": "@id"} 6 | }, 7 | "@graph": [ 8 | { 9 | "@id": "_:b1", 10 | "e:next": "_:b2", 11 | "e:prev": "_:b2" 12 | }, 13 | { 14 | "@id": "_:b2", 15 | "e:next": "_:b1", 16 | "e:prev": "_:b1" 17 | } 18 | ] 19 | } -------------------------------------------------------------------------------- /test_files/toRdf-0104-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 | { 10 | "name": "Dave Longley" 11 | }, 12 | { 13 | "name": "Gregg Kellogg" 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /test_files/normalize-0047-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 "bar1" . 2 | _:c14n0 "bar2" . 3 | _:c14n1 "foo1" . 4 | _:c14n1 "foo2" . 5 | _:c14n2 _:c14n0 . 6 | _:c14n3 _:c14n2 . 7 | _:c14n4 _:c14n1 . 8 | _:c14n5 _:c14n4 . 9 | -------------------------------------------------------------------------------- /test_files/normalize-0048-out.nq: -------------------------------------------------------------------------------- 1 | _:c14n0 "bar1" . 2 | _:c14n0 "bar2" . 3 | _:c14n1 "foo1" . 4 | _:c14n1 "foo2" . 5 | _:c14n2 _:c14n0 . 6 | _:c14n3 _:c14n2 . 7 | _:c14n4 _:c14n1 . 8 | _:c14n5 _:c14n4 . 9 | -------------------------------------------------------------------------------- /test_files/toRdf-0015-out.nq: -------------------------------------------------------------------------------- 1 | _:b0 . 2 | _:b0 "Manu Sporny" . 3 | _:b0 _:b1 . 4 | _:b1 "Dave Longley" . 5 | _:b1 . 6 | -------------------------------------------------------------------------------- /test_files/toRdf-0031-in.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "rdfs": "http://www.w3.org/2000/01/rdf-schema#", 4 | "defines": { "@reverse": "rdfs:definedBy" }, 5 | "label": "rdfs:label" 6 | }, 7 | "@id": "http://example.com/vocab", 8 | "label": "My vocabulary", 9 | "defines": [ 10 | { 11 | "@id": "http://example.com/vocab#property", 12 | "label": "A property" 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /test_files/toRdf-0066-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | . 4 | . 5 | -------------------------------------------------------------------------------- /test_files/toRdf-0075-out.nq: -------------------------------------------------------------------------------- 1 | "Die Königin"@de . 2 | "Ihre Majestät"@de . 3 | "Il re"@it . 4 | "The Queen"@en . 5 | "The king"@en . 6 | -------------------------------------------------------------------------------- /test_files/compact-0025-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.com/queen", 4 | "http://example.com/vocab/label": 5 | [ 6 | { 7 | "@value": "The Queen", 8 | "@language": "en" 9 | }, { 10 | "@value": "Die Königin", 11 | "@language": "de" 12 | }, { 13 | "@value": "Ihre Majestät", 14 | "@language": "de" 15 | } 16 | ] 17 | } 18 | ] 19 | -------------------------------------------------------------------------------- /test_files/expand-0030-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.com/queen", 4 | "http://example.com/vocab/label": 5 | [ 6 | { 7 | "@value": "Die Königin", 8 | "@language": "de" 9 | }, { 10 | "@value": "Ihre Majestät", 11 | "@language": "de" 12 | }, { 13 | "@value": "The Queen", 14 | "@language": "en" 15 | } 16 | ] 17 | } 18 | ] 19 | -------------------------------------------------------------------------------- /test_files/expand-0073-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.org/node1", 4 | "http://www.w3.org/2002/07/owl#sameAs": [ 5 | { 6 | "@id": "http://example.org/node2", 7 | "http://example.org/link": [ 8 | { "@id": "http://example.org/node3" } 9 | ], 10 | "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "Node 2" } ] 11 | } 12 | ] 13 | } 14 | ] 15 | -------------------------------------------------------------------------------- /test_files/expand-0074-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.org/node1", 4 | "http://www.w3.org/2002/07/owl#sameAs": [ 5 | { 6 | "@id": "http://example.org/node2", 7 | "http://example.org/link": [ 8 | { "@id": "http://example.org/node3" } 9 | ], 10 | "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "Node 2" } ] 11 | } 12 | ] 13 | } 14 | ] 15 | -------------------------------------------------------------------------------- /test_files/flatten-0011-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.org/test#book", 4 | "http://example.org/vocab#contains": [ 5 | { 6 | "@id": "http://example.org/test#chapter" 7 | } 8 | ], 9 | "http://purl.org/dc/elements/1.1/title": [ 10 | { 11 | "@value": "Title" 12 | } 13 | ] 14 | } 15 | ] 16 | -------------------------------------------------------------------------------- /test_files/frame-0016-out.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "dc": "http://purl.org/dc/elements/1.1/", 4 | "ex": "http://example.org/vocab#" 5 | }, 6 | "@graph": [{ 7 | "@id": "http://example.org/test/#library", 8 | "@type": "ex:Library", 9 | "ex:contains": { 10 | "@id": "http://example.org/test#untyped", 11 | "dc:contributor": "Writer", 12 | "dc:title": "My Book" 13 | } 14 | }] 15 | } -------------------------------------------------------------------------------- /test_files/toRdf-0064-out.nq: -------------------------------------------------------------------------------- 1 | "Lyon Convention Centre, Lyon, France" . 2 | "Alice Talk" . 3 | . 4 | "Alice" . 5 | -------------------------------------------------------------------------------- /test_files/expand-0026-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.com/a", 4 | "@type": [ 5 | "http://example.com/b" 6 | ] 7 | }, 8 | { 9 | "@id": "http://example.com/c", 10 | "@type": [ 11 | "http://example.com/d", 12 | "http://example.com/e" 13 | ] 14 | }, 15 | { 16 | "@id": "http://example.com/f", 17 | "@type": [ 18 | "http://example.com/g" 19 | ] 20 | } 21 | ] -------------------------------------------------------------------------------- /test_files/flatten-0008-out.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@id": "http://example.org/test", 4 | "http://example.org/vocab#keep-full-value": [ 5 | { 6 | "@value": "only value" 7 | } 8 | ], 9 | "http://example.org/vocab#test": [ 10 | { 11 | "@language": "en", 12 | "@value": "test" 13 | } 14 | ] 15 | } 16 | ] -------------------------------------------------------------------------------- /test_files/frame-0008-frame.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "@context": { 3 | "ex": "http://example.org/vocab#", 4 | "ex:embedded": {"@container": "@set"}, 5 | "ex:literal": {"@container": "@set"}, 6 | "ex:mixed": {"@container": "@set"}, 7 | "ex:single": {"@container": "@set"} 8 | }, 9 | "@type": "ex:Example", 10 | "ex:embedded": {}, 11 | "ex:literal": {}, 12 | "ex:mixed": {"@embed": false}, 13 | "ex:single": {} 14 | } -------------------------------------------------------------------------------- /test_files/normalize-0017-in.jsonld: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "@context": { 4 | "e": "http://example.org/vocab#", 5 | "e:B": { 6 | "@type": "@id" 7 | }, 8 | "xsd": "http://www.w3.org/2001/XMLSchema#" 9 | }, 10 | "@id": "http://example.org/test", 11 | "e:A": { 12 | "@id": "_:b1" 13 | }, 14 | "e:B": "_:b1" 15 | }, 16 | { 17 | "@id": "_:b1", 18 | "name": "foo" 19 | } 20 | ] -------------------------------------------------------------------------------- /test_files/toRdf-0046-out.nq: -------------------------------------------------------------------------------- 1 | . 2 | . 3 | . 4 | "foo" . 5 | --------------------------------------------------------------------------------