Commit graph

339 commits

Author SHA1 Message Date
heluecht 1f33c8766b Merge pull request 'Make UniqueNamer->order public to satisfy usage in JsonLdProcessor' (#4) from bug/13265-uniquenamer-order into master
Reviewed-on: friendica/php-json-ld#4
2023-07-09 16:00:15 +02:00
Hypolite Petovan f52f3f322b Make UniqueNamer->order public to satisfy usage in JsonLdProcessor 2023-07-09 08:29:37 -04:00
heluecht 8d1d421b1d Merge pull request 'Declare class properties' (#3) from issue/2-php-8.1-deprecation into master
Reviewed-on: friendica/php-json-ld#3
2023-05-23 07:58:06 +02:00
Hypolite Petovan 43397ed81c Declare class properties
- Dynamic properties are deprecated in PHP 8.1
2023-05-22 09:07:12 -04:00
Hypolite Petovan 3249d1f595 Fix wrong concatenation operator 2023-05-22 09:07:12 -04:00
Hypolite Petovan dafc68dc1e Fix PHPDoc parameter types 2023-05-22 09:07:07 -04:00
Philipp Holzer 5f6ea87b26 Add support for local files for unsecured document loading (#1) 2023-02-20 22:56:16 +01:00
Hypolite Petovan e37882011f Add support for local files for unsecured document loading
- $http_response_header isn't set in the local file read case
2023-01-29 10:30:56 -05:00
Hypolite Petovan ca3916d10d Fix extraneous parenthesis 2018-10-08 20:41:00 +00:00
Hypolite Petovan f62652abff Release 1.1.0 2018-10-08 20:04:53 +00:00
Hypolite Petovan ccbd3d6bc4 Switch from sha1 to sha256 2018-10-08 20:03:34 +00:00
Hypolite Petovan 7b779b2b53 Fix composer.json config keys 2018-09-27 21:04:23 -04:00
Hypolite Petovan a9ac64daf0 Release 1.0 2018-09-27 20:01:12 -04:00
Hypolite Petovan 23cd99e8fb Update file formatting to PSR-2 (with tabs)
- Use short array syntax
- Bump required PHP version to PHP 5.4
- Update version to 1.0.0
2018-09-27 19:59:13 -04:00
Hypolite Petovan 56b01d779d Friendica fork of the php-json-ld repository
- Removed mentions of Travis
- Removed mentions of Digitalbazaar commercial support
2018-09-27 19:40:44 -04:00
Dave Longley 38b07bbe59 Start 0.4.8. 2016-04-25 00:18:09 -04:00
Dave Longley dc1bd23f0e Release 0.4.7. 2016-04-25 00:17:52 -04:00
Dave Longley 3433a01a65 Add optimization for finding the best CURIE.
- Build a map for searching for a matching IRI when
  computing the inverse context. Each letter of an
  IRI can be used to key into the map to find the
  best set of partial matches (which can be used
  to create CURIEs).
- This approach is a faster alternative to trying each
  possible term in the active context as a possible
  CURIE, linearly, one at a time.
2016-04-25 00:16:38 -04:00
Dave Longley 956fb8b790 Add optimization for compacting keywords. 2016-04-24 17:01:42 -04:00
Dave Longley 81b072b438 Remove unnecessary compare. 2016-04-24 01:17:09 -04:00
Dave Longley 6b5fba05e5 Add optimization that measures term @id definition once. 2016-04-23 23:48:09 -04:00
Dave Longley 9759c9340d Add optimization that caches presence of colon in term. 2016-04-23 22:39:08 -04:00
Dave Longley 1abb809e8e Show how to specify URDNA2015 algorithm. 2016-01-05 10:11:47 -05:00
David I. Lehn b16d43aa74 Disable normalization tests. 2015-10-13 14:32:40 -04:00
David I. Lehn d832d72b09 Remove unneeded FIXME. 2015-10-13 14:09:42 -04:00
David I. Lehn e98b8f61ba Group tests by test suite.
- Grouping the tests by test suite to avoid warning failures when there
  are no test in a suite. Requires the use of the phpunit `--group`
  flag.
2015-10-13 14:08:27 -04:00
David I. Lehn c63a5961fb Add support for normalization test suite.
- Handle rdfn:Urgna2012EvalTest and rdfn:Urdna2015EvalTest.
- Use nquads input format for normalization tests.
- Support normalization test suite format with various tweaks.
  Compacting the data would eliminate most of these changes but can't
  rely on compact to work in the code that tests compact! So hard coded
  fixes are used.
  - Support 'entries' and 'sequence' for tests.
  - Support 'include' as filename without a .jsonld extension.
  - Support 'type' and '@type' as aliases.
  - Support 'id' and '@id' as aliases.
  - Support 'action' and 'input' as aliases.
  - Support 'result' and 'expect' as aliases.
  - No longer strip '#t' prefix from '#tNNN' ids.
  - Default to positive test if nothing specified.
- Add normalization test to travis-ci config.
- Fix container infrastructure flag from 'root' to 'sudo'.
- Update README with new testing info.
2015-10-13 13:38:56 -04:00
David I. Lehn 57b3279718 Add inputFormat option to normalize.
- Allows the input to be in N-Quads format (application/nquads) and use N-Quads
  parsing instead of a toRDF step on JSON-LD.
2015-10-13 13:31:32 -04:00
David I. Lehn e08fe87860 Test on PHP 5.6. 2015-10-08 19:41:25 -04:00
David I. Lehn 51a0635c61 Use container testing infrastructure. 2015-10-08 19:41:25 -04:00
Dave Longley eb4b344049 Ignore null values in language maps.
The syntax spec explicitly allows null values in language maps (section 8.5).
2015-09-14 09:40:14 -04:00
Dave Longley 2927e09639 Differentiate between mock and cache custom loaders. 2015-08-04 16:13:19 -04:00
Dave Longley 3330605897 Add examples describing how to configure document loaders. 2015-08-04 16:03:42 -04:00
Dave Longley 16155eab6a Merge pull request #4 from Tpt/composer
Add composer.json.
2015-04-06 10:22:52 -04:00
Dave Longley 989c394690 Minor style fix. 2015-03-16 13:56:04 -04:00
Hassan Almas f23d0eb51e Fix conflicting index bug 2015-03-16 11:59:24 -04:00
Dave Longley e599042c7d Fix typos. 2015-02-24 21:56:17 -05:00
Dave Longley 95a9945fc2 Start 0.4.7. 2015-02-07 20:08:58 -05:00
Dave Longley 7535f05755 Release 0.4.6. 2015-02-07 20:08:58 -05:00
Dave Longley 0cbff8c600 Drop null @language values when expanding.
- There's an inconsistency between the syntax spec and the API
  spec; the API spec throws an error if null is used for a
  `@language` value on Step 7.4.7 of the Expansion Algorithm,
  but the syntax spec allows it. When used, it indicates the
  value has no language -- which is the same as if `@language`
  were omitted, so it's treated the same way in this patch.
2015-02-07 20:08:58 -05:00
Tpt aba9709907 Adds composer.json 2015-01-20 08:53:24 +01:00
David I. Lehn 0b0442696d README sync and minor updates.
- Sync README between Digital Bazaar JSON-LD libs.
- Minor updates and formatting fixes.
2014-12-05 16:45:41 -05:00
Dave Longley 2314cfe0d1 Start 0.4.6. 2014-12-05 16:41:42 -05:00
Dave Longley 906ad1d805 Release 0.4.5. 2014-12-05 16:41:29 -05:00
Dave Longley 362a8cb387 Use "array" syntax instead of "[]" shorthand. 2014-12-05 16:37:48 -05:00
David I. Lehn e06d20062a Add travis-ci build status. 2014-12-05 16:17:16 -05:00
Dave Longley b22dbbf285 Start 0.4.5. 2014-12-04 14:46:55 -05:00
Dave Longley b13749ed03 Release 0.4.4. 2014-12-04 14:46:44 -05:00
Dave Longley 7be06f2ee2 Implement new experimental embed API.
- See: https://github.com/json-ld/json-ld.org/issues/377
2014-12-04 14:45:44 -05:00
Dave Longley 237a405175 Make it easier to run local (non-official) json-ld tests. 2014-12-04 14:45:17 -05:00