Commit graph

272 commits

Author SHA1 Message Date
Dave Longley 60c335a6e9 Support more error conditions in expand. 2013-09-13 16:42:10 -04:00
Dave Longley 12a9ccc9e8 Handle scalars before objects. 2013-09-13 13:17:40 -04:00
Dave Longley d1501c7c08 Do not output relative IRIs in RDF datasets. 2013-09-13 13:16:10 -04:00
Dave Longley 944e9ee886 Add link header parse method. 2013-09-13 13:07:18 -04:00
Dave Longley 82e93347c1 Fix typo. 2013-09-13 13:07:05 -04:00
Dave Longley f5eeb7c3ad Rewrite test runner.
- Use PHPUnit. There are many different ways to use PHPUnit,
  unfortunately, none of them seem to fit quite right with
  the JSON-LD test suite -- without requiring a lot of extra
  and/or duplicated effort. A middle ground was chosen.
2013-09-13 12:47:15 -04:00
Dave Longley 9ca43c5a40 Remove closure for php 5.3 compatibility. 2013-08-09 14:19:41 -04:00
Dave Longley 7b937b3fdc Fix closure bug. 2013-08-09 14:11:52 -04:00
Dave Longley 7a89570bd5 Fix language. 2013-08-09 14:10:32 -04:00
Dave Longley fdd5ef987f Use call_user_func. 2013-08-09 14:08:31 -04:00
Dave Longley 01f0f1440d Use array() syntax. 2013-08-09 13:55:54 -04:00
Dave Longley ac71cc01b8 Add travis-ci support. 2013-08-09 13:46:51 -04:00
Dave Longley ec6b4d7383 Fix type, check for datatype. 2013-08-09 13:42:31 -04:00
Dave Longley 7a67ebd0f8 Do not include (data)types in node map. 2013-08-09 13:33:14 -04:00
Dave Longley 281d8ee797 Add support for partial lists. 2013-08-09 13:32:26 -04:00
Dave Longley ff79a799ba Add $options param. 2013-08-06 14:07:21 -04:00
Dave Longley 83d974a06f Do not produce generalized RDF when normalizing. 2013-08-06 14:06:30 -04:00
Dave Longley 443df61b11 Exclude blank node predicates unless producing generalized RDF. 2013-08-06 14:02:08 -04:00
Dave Longley c0280e53e4 Add default base option. 2013-08-06 13:54:59 -04:00
Dave Longley 63d61f1c4d Bump version, fix docs, add produceGeneralizedRdf option. 2013-08-06 13:52:15 -04:00
Dave Longley 96e20e4afe Do not add subject-references at top-level. 2013-08-06 13:46:56 -04:00
Dave Longley 090183dccc Ensure expanded frame is properly traversed for @list. 2013-08-06 13:28:25 -04:00
Dave Longley 7c7b9ae3be Rename 'loadDocument' option to 'documentLoader'. 2013-07-24 16:05:22 -04:00
Dave Longley c922963403 Fix docs (nquads not the default). 2013-07-18 12:07:32 -04:00
Dave Longley 44aae8c1a1 Ensure expand context URL option is processed. 2013-07-16 15:24:11 -04:00
Dave Longley 8c0319895c Do not include '@' for empty language tag. 2013-07-15 14:10:29 -04:00
Dave Longley 8a0eb2150e Support new document loader API. 2013-07-15 12:30:28 -04:00
Dave Longley cf815ece8a Allow @set w/@reverse. 2013-06-18 13:26:27 -04:00
Dave Longley 15414cfe80 Remove extra bnode naming, fix active context caching bugs. 2013-06-07 12:06:39 -04:00
Dave Longley b4c2f11910 Turn on useNativeTypes. 2013-06-07 12:06:23 -04:00
Dave Longley f775f8ceda Sort subjects and properties in toRDF. 2013-06-06 22:12:49 -04:00
Dave Longley 5be8e20433 Some fixes for bnodes for properties and xsd:double. 2013-06-06 22:00:52 -04:00
Dave Longley 4d4334ea43 Update fromRDF to comply with recent changes to the spec. 2013-05-17 16:59:32 -04:00
Dave Longley 66bddc2ab9 Do not prepend '../' extra when removing base if base begins with '/'. 2013-05-03 11:14:51 -04:00
Dave Longley b0f8533fee Do not expand context IRI mappings using base. 2013-05-03 10:41:27 -04:00
Dave Longley 02eb5913c5 Add ability to generate EARL report. 2013-05-03 10:24:45 -04:00
Dave Longley 5ed2f4ea35 Mark term as defined once IRI mapping is set. 2013-04-16 11:11:09 -04:00
Dave Longley 7df527661d Bump version. 2013-04-15 11:09:29 -04:00
Dave Longley d14adbdf22 Check invalid keyword aliasing via @id. 2013-04-15 11:09:06 -04:00
Dave Longley 3278e369c1 Allow @id values that match term. 2013-04-15 10:46:22 -04:00
Dave Longley 8d0c224992 Throw error if compaction context is null. 2013-04-09 11:34:31 -04:00
Dave Longley a4eb8e6d4b Always use @graph when context output is an array. 2013-04-09 11:31:26 -04:00
Dave Longley f5337b8118 Do not consider any two @lists equal. 2013-04-06 00:15:39 -04:00
Dave Longley fe470927fb Bump version. 2013-04-04 11:37:17 -04:00
Dave Longley 330aa5f685 Give precedence to @vocab over CURIEs when compacting IRIs. 2013-04-04 11:36:50 -04:00
Dave Longley 7034bb713e Simplify expand IRI. 2013-04-04 11:25:46 -04:00
Dave Longley c765930a43 Support strings passed into processContext. 2013-04-04 02:54:16 -04:00
Dave Longley 642a789eb4 Ensure property bnodes are relabeled during flattening. 2013-04-04 02:10:24 -04:00
Dave Longley 3aba934eb6 Simplify context sharing after removing bnode renaming from expansion. 2013-04-03 22:10:54 -04:00
Dave Longley 6e732f5731 Ensure inverse context isn't regenerated unnecessarily. 2013-04-03 17:33:17 -04:00