Commit graph

312 commits

Author SHA1 Message Date
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
Dave Longley daed05a54b Fix off-by-one in context merging. 2014-12-03 14:56:23 -05:00
Dave Longley f252a5281c Start 0.4.4. 2014-12-03 02:07:13 -05:00
Dave Longley b80e4b80a5 Release 0.4.3. 2014-12-03 02:06:56 -05:00
Dave Longley 1a9c6bffdd Implement URL parsing/unparsing per RFC 3986.
- Section 5.3 Component Recomposition in RFC 3986 makes a
  differentiation between undefined components and empty
  components that the built-in parse_url in python does not. This
  patch deals with that issue and ensures, for instance, that
  empty queries and fragments are detected.
2014-12-03 02:05:03 -05:00
Dave Longley fed40914c8 Start 0.4.3. 2014-10-01 19:58:57 -04:00
Dave Longley bf504a1506 Release 0.4.2. 2014-10-01 19:58:42 -04:00
Dave Longley deb6afeac5 Skip array processing for keywords that aren't @graph or @list. 2014-10-01 19:58:06 -04:00
Dave Longley ea516341be Start 0.4.2. 2014-09-15 17:05:24 -04:00
Dave Longley d4ae67899d Release 0.4.1. 2014-09-15 17:05:08 -04:00
Dave Longley 8fb6a75e67 Ensure non-rdf:nil list node references are stored across graphs. 2014-09-15 17:04:50 -04:00
Dave Longley 8ca3291bc0 Start 0.4.1. 2014-07-29 13:41:15 -04:00
Dave Longley d071be64f1 Release 0.4.0. 2014-07-29 13:41:05 -04:00
Dave Longley 3402d51dff Add new framing features.
- Allow filtering based on a specific @id.
- Allow ducktyping matches on @type: [{}].
- Allow ducktyping matches when a @default is specified.
- Add @requireAll flag for controlling ducktyping requirements.
2014-07-29 13:40:31 -04:00
Dave Longley ba16da5b9f Start 0.3.8. 2014-07-29 13:17:36 -04:00
Dave Longley 01c37302f1 Bump version. 2014-07-29 13:14:58 -04:00
Dave Longley 964f2aef74 Fix bug w/blank nodes across graphs and RDF lists.
- Addresses https://github.com/json-ld/json-ld.org/issues/357.
2014-07-29 13:14:46 -04:00
Dave Longley aba77784a4 Bump version. 2014-07-09 15:17:06 -04:00
Dave Longley 89d90fbae2 Fix context caching bug.
- Update active context for each processed context to ensure
  the proper associations are made in the cache between an
  active context, the local context processed, and the result.
2014-07-09 15:16:24 -04:00
Dave Longley cbefb2d662 Implement addRiskyTest() for phpunit 4.x. 2014-07-08 14:14:09 -04:00
Dave Longley 9f5df4070b Bump version. 2014-07-08 12:59:48 -04:00
Dave Longley 2245638c1e Preserve existing @reverse map when merging properties. 2014-07-08 12:59:37 -04:00
Dave Longley ea1d54b31d Fix examples.
- Addresses #2.
2014-07-08 12:51:12 -04:00
Dave Longley 57e3928ca2 Fix bugs w/remote doc errors and add FIXME for empty property issue. 2014-04-24 15:42:17 -04:00
Dave Longley 31f9c15a1c Fix default document loader bugs; use default CN. 2014-04-24 15:27:03 -04:00
Dave Longley 58c06ab190 Fix SSL options for default doc loaders. 2014-04-24 15:15:31 -04:00
Dave Longley d4b4e1bba7 Add url to LoadDocumentError message. 2014-04-24 14:58:10 -04:00
Dave Longley 1aac75aab7 Switch style to same-line bracket w/else and catch. 2014-04-24 14:39:30 -04:00