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
Dave Longley
dd369c69d0
Fix error text and details.
2013-04-03 16:31:48 -04:00
Dave Longley
e19abc3ff4
Simplify term selection.
2013-04-03 14:20:25 -04:00
Dave Longley
fe09299b21
Formatting/typo fixes.
2013-04-01 20:25:10 -04:00
Dave Longley
b187144961
Simplify graph iteration.
2013-04-01 16:34:43 -04:00
Dave Longley
830afdd9e6
Fix typos.
2013-03-30 20:42:23 -04:00
Dave Longley
63a59e63a8
Fix bug when renaming @type blank nodes when flattening.
2013-03-28 12:12:13 -04:00
Dave Longley
b3d8b564d0
Minor clean up of IRI expansion.
2013-03-27 11:08:11 -04:00
Dave Longley
0778e0f7c3
Remove blank node relabeling from expansion.
2013-03-27 10:52:25 -04:00
Dave Longley
d5c0460356
Fix typo.
2013-03-12 12:33:55 -04:00
Dave Longley
4b0ef081b6
Support @reverse properties.
2013-03-12 12:20:11 -04:00
Dave Longley
896842b107
Simplify keyword alias handling.
2013-03-11 17:04:24 -04:00
Dave Longley
5cf9a5c133
Fix bug to remove warning with empty delimiter.
2013-03-08 13:50:18 -05:00
Dave Longley
b0c1d0cfe8
Remove property generator support.
2013-03-06 14:34:03 -05:00
Dave Longley
e410888508
Bump version.
2013-03-06 11:36:32 -05:00
Dave Longley
0433cfb6e6
Fixes to base/relative IRI handling.
2013-03-06 11:36:14 -05:00
Dave Longley
8b20be5785
Add @base as a keyword.
2013-03-04 21:28:24 -05:00
David I. Lehn
4552cc6112
Remove trailing CRs.
2013-03-01 15:08:07 -05:00
Dave Longley
9a760ef766
Fix bug with parsing @base.
2013-03-01 11:21:29 -05:00
Dave Longley
5847ac58b1
Do not change IRIs if base is empty.
2013-02-28 17:10:21 -05:00
Dave Longley
e112743436
Bump version.
2013-02-28 16:51:10 -05:00
Dave Longley
baa3cdf2f6
Do not remove relative '../' with empty base.
2013-02-28 16:50:43 -05:00
Dave Longley
24fa461705
Fix bugs w/expanding/compacting with empty base.
2013-02-28 16:42:32 -05:00
Dave Longley
b57d0797e8
Allow empty string for @base.
2013-02-28 16:19:15 -05:00
Dave Longley
cb03711585
Add @base support.
2013-02-28 16:03:11 -05:00
Dave Longley
eb3c8ba42d
Bump version.
2013-02-28 15:50:25 -05:00
Dave Longley
a3369ffb21
Fix bugs with hashes and queries when compacting to relative IRIs.
2013-02-28 15:49:42 -05:00
Dave Longley
f0746b22c0
Return keywords immediately when expanding.
2013-02-26 00:36:53 -05:00
Dave Longley
8bad8e2d24
Remove optimize option; add compactArrays option to compaction.
2013-02-21 16:06:33 -05:00
Dave Longley
232afca21d
Ensure @language and @vocab are copied from active context.
2013-02-20 19:32:50 -05:00
Dave Longley
9653a673d5
Bump version.
2013-02-20 16:56:05 -05:00
Dave Longley
21c0934d8f
Use RDF datasets for RDF conversion instead of RDF statements.
2013-02-20 16:55:36 -05:00
Dave Longley
623d43b6e5
Bump version.
2013-02-18 16:34:45 -05:00
Dave Longley
41ee90f02c
Add secure context loader that require https even when redirecting.
2013-02-18 16:34:14 -05:00
Dave Longley
dfbea38c6f
Remove unnecessary initialization.
2013-02-18 11:11:20 -05:00
Dave Longley
607575d0d4
Use context loader terminology.
2013-02-18 10:51:51 -05:00
Dave Longley
5961e603aa
Do not compact to @language map when @index is present.
2013-02-18 10:33:18 -05:00
Dave Longley
fda8545943
Use '_:b' instead of '_:t' for bnode prefixes.
2013-02-17 13:38:55 -05:00
Dave Longley
d80c0acb4f
Bump version.
2013-02-15 16:25:30 -05:00
Dave Longley
b53300d179
Rename default jsonld url client method.
2013-02-15 15:38:37 -05:00
Dave Longley
47e4a04f57
Rename url resolver to url client.
2013-02-15 15:34:21 -05:00
Dave Longley
fdc08dc903
Ensure vocab relative flag is passed when expanding properties.
2013-02-15 14:13:46 -05:00
Dave Longley
bea64fee03
Ensure named graph blank node IDs are relabeled.
2013-02-15 14:04:29 -05:00
Dave Longley
fbfb6c9fcb
Do not compact to relative IRIs if vocab relative flag is true.
2013-02-15 12:44:00 -05:00
Dave Longley
e5f1e28ada
Drop duplicates when creating node maps.
2013-02-15 12:16:26 -05:00
Dave Longley
505202c213
Compact absolute IRIs to relative IRIs.
2013-02-15 00:58:23 -05:00
Dave Longley
6e7f7a3b9a
Only compact to terms when relative flag is set.
2013-02-14 13:34:28 -05:00
Dave Longley
12e18a8384
Implement @type: @vocab compaction.
2013-02-14 12:40:24 -05:00
Dave Longley
6d5934398d
Reorganize and simplify value expansion.
2013-02-13 20:08:53 -05:00
Dave Longley
447aa88d61
Do not expand values that are terms unless they are vocab relative.
2013-02-13 17:16:19 -05:00
Dave Longley
2c8b2ef18d
Expand @type: @vocab.
2013-02-13 17:00:05 -05:00
Dave Longley
d1ecc90e8a
Skip @context key.
2013-02-12 16:11:00 -05:00
Dave Longley
5466070d7d
Disallow keywords in property generator, allow alias in context.
2013-02-12 16:03:54 -05:00
Dave Longley
d7bb4b3cba
Remove term definition inheritance.
2013-02-12 15:10:45 -05:00
Dave Longley
6e2b78c722
Move container var outside of loop.
2013-02-11 16:24:26 -05:00
Dave Longley
7692f6f087
Remove active_property to item_active_property.
2013-02-11 16:07:38 -05:00
Dave Longley
d1d437b9b7
Remove unused base flag.
2013-02-11 16:00:44 -05:00
Dave Longley
1bcef39068
Remove extra parameter.
2013-02-11 15:44:20 -05:00
Dave Longley
4948365c1a
Remove now superfluous flag and step.
2013-02-11 15:41:46 -05:00
Dave Longley
5c5ab819d7
Simplify term definition creation, disallow @type in property generator.
2013-02-11 14:24:55 -05:00
Dave Longley
b7cf6df479
Use correct blank node namer when sharing context.
2013-02-11 11:38:52 -05:00
Dave Longley
42903065d9
Use array to add compacted item when expanded property is @list.
2013-02-11 11:01:05 -05:00
Dave Longley
1b676e47fe
Remove unnecessary extra object check.
2013-02-11 10:34:46 -05:00
Dave Longley
1dab2c9987
Check for subject references within lists.
2013-02-11 10:31:49 -05:00
Dave Longley
5a6f3bc5dd
Do not require a matching empty array when selecting a property generator.
2013-02-10 14:40:14 -05:00
Dave Longley
31dafae2ec
Ensure property generator values are compared during term selection.
...
- Reuse find property generator duplicates function.
2013-02-10 14:28:28 -05:00
Dave Longley
7c2aceed28
Set some defaults for parsed url.
2013-02-08 15:51:19 -05:00
Dave Longley
612f56aa6c
Fix bugs w/prepend base.
2013-02-08 15:48:23 -05:00
Dave Longley
61e1140b3b
Fix bugs to pass unit tests, do JSON comparison in test runner.
2013-02-08 00:15:45 -05:00
Dave Longley
3831d5336a
Fix bugs to pass compaction tests.
2013-02-07 23:47:55 -05:00
Dave Longley
a8ce5ba4a2
Fix bugs to pass expansion tests.
2013-02-07 23:08:48 -05:00
Dave Longley
6fbdfaa3b6
Various bug fixes to pass more tests.
2013-02-07 22:46:28 -05:00
Dave Longley
89dd522d45
Initial update to port over changes from jsonld.js.
2013-02-07 17:19:19 -05:00
Dave Longley
3309e2bd2b
Bump version.
2013-02-04 16:05:20 -05:00
Dave Longley
002740bc69
Add version.
2013-02-04 16:03:50 -05:00
Dave Longley
fece013733
Use base IRI when expanding @type.
2012-11-12 12:55:35 -05:00
Dave Longley
4c76b11a67
Make default url resolver a separate function.
2012-10-29 09:57:24 -04:00
Dave Longley
7b20e349af
Add relative @context URL resolution.
2012-10-09 13:17:25 -04:00
Dave Longley
ef8769fe5a
Fixes to comply with updates to the spec(s).
...
- Add @vocab support.
- Convert native types in fromRDF().
- Use new canonical form for doubles in toRDF().
- Support xsd:string special cases.
- Keep going if a JSON-LD exception occurs in test runner.
2012-09-26 16:36:51 -04:00
Dave Longley
9b557af763
Add global declarations.
2012-09-19 15:24:22 -04:00
Dave Longley
2ff57e973e
Fix typo.
2012-08-15 15:39:55 -04:00
Dave Longley
5299404f62
Fix list term check.
2012-06-30 21:36:03 -04:00
Dave Longley
084c9e4db1
Remove duplicate RDF statements.
2012-06-30 21:08:28 -04:00
Dave Longley
0a1058d4c0
Change addValue to allow duplicates by default.
2012-06-30 18:27:09 -04:00
Dave Longley
599e507bcc
Use available aliases for @value, @language when compacting.
2012-06-25 00:00:56 -04:00
Dave Longley
7cf02461cc
Fix nquads output for graph w/bnode ID.
2012-06-15 10:24:41 -04:00
Dave Longley
2760055bd2
Update to fix value compaction when there is a default language.
2012-06-12 20:36:12 -04:00
Dave Longley
f17859714b
Update flatten algorithm, fix @list merge bugs.
2012-05-22 15:09:26 -04:00
Dave Longley
160c1b379a
Handle @type blank node IRIs.
2012-05-21 17:41:38 -04:00
Dave Longley
a1f83aaba3
Fix blank node check in _flatten.
2012-05-21 15:51:17 -04:00
Dave Longley
5149bf383c
Add escaping to N-Quads.
2012-05-13 16:31:11 -04:00
Dave Longley
00c18e853e
Check input for non-array in from_rdf.
2012-05-09 22:15:28 -04:00
Dave Longley
aef8eb3e72
Check for existing RDF parser before removal.
2012-05-09 16:40:22 -04:00
Dave Longley
a4d73b0bb7
Make nquad methods public.
2012-05-09 16:21:46 -04:00
Dave Longley
f1f8c46542
Remove unused var.
2012-05-09 13:06:31 -04:00
Dave Longley
29bd617417
Add ability to register global or processor RDF parsers.
2012-05-09 12:28:26 -04:00
Dave Longley
599e2352d1
Always use @value in expanded form.
2012-05-08 18:07:28 -04:00
Dave Longley
4c847440c7
Implement JSON-LD context URL resolution.
2012-05-07 17:12:10 -04:00
Dave Longley
52fa975894
Use RDF statements in normalization.
...
Remove special compaction of null-mapped IRIs.
2012-05-05 16:03:30 -04:00
Dave Longley
657edcec47
Remove unnecessary lines.
2012-05-02 16:49:42 -04:00
Dave Longley
080dec516e
Fix whitespace regex.
2012-05-01 16:33:41 -04:00
Dave Longley
18e2934981
Sort RDF statement output.
2012-04-30 22:15:09 -04:00
Dave Longley
566991cb47
Remove unnecessary value assignment.
2012-04-30 21:22:05 -04:00
Dave Longley
25d86fc0db
Handle strings in @graph [] case.
2012-04-30 19:55:26 -04:00
Dave Longley
ad531248c6
Implement toRDF.
2012-04-30 17:43:38 -04:00
Dave Longley
273c9c88de
Implement fromRDF.
2012-04-30 17:10:27 -04:00
Dave Longley
28e8502122
Use %1.15e for double strings, fix base handling.
2012-04-30 15:14:32 -04:00
Dave Longley
7941387631
Allow null @id mappings, use null mapping in compact IRI.
2012-04-27 17:28:51 -04:00
Dave Longley
2135f34a72
Update to latest spec changes.
2012-04-27 16:18:05 -04:00
Dave Longley
0e6040c9e1
Remove unnecessary var.
2012-04-27 00:48:19 -04:00
Dave Longley
f1ad4a7936
Fix method signature.
2012-04-27 00:16:17 -04:00
Dave Longley
60994879d6
Remove unused var.
2012-04-26 21:07:19 -04:00
Dave Longley
3f494ac765
Naming convention fixes.
2012-04-26 20:46:41 -04:00
Dave Longley
75526669b8
Follow naming conventions.
2012-04-26 19:53:55 -04:00
Dave Longley
6254519b40
Code clean up/renaming.
2012-04-26 16:31:55 -04:00
Dave Longley
d0c73ec99d
Some formatting changes.
2012-04-26 13:34:24 -04:00
Dave Longley
ae46860dab
Some code clean up/reorganization.
2012-04-24 20:29:40 -04:00
Dave Longley
265689c92f
Remove unused function, some clean up.
2012-04-24 14:37:21 -04:00
Dave Longley
30622b2aeb
Fix remaining bugs with framing and test harness.
2012-04-23 16:06:42 -04:00
Dave Longley
084727c586
Fix remaining expansion, normalize, compact bugs.
2012-04-23 15:52:56 -04:00
Dave Longley
1b8a833bd1
Fix number checks.
2012-04-23 15:15:26 -04:00
Dave Longley
b763bdde10
Fix various bugs that cropped up during port.
2012-04-23 15:00:13 -04:00
Dave Longley
a1a5a4cb34
Various syntax/logic fixes.
2012-04-23 14:01:56 -04:00
Dave Longley
cdce63a99c
New port of jsonld.js.
2012-04-23 12:57:06 -04:00
Dave Longley
de770b30fd
Sort all properties except @id in normalization.
2012-03-04 15:35:44 -05:00
Dave Longley
ab71b33c3f
Fix error message.
2012-03-04 02:30:35 -05:00
Dave Longley
809a4d31ce
Remove duplicate objects when normalizing.
2012-01-16 15:53:49 -05:00
Dave Longley
eb7a99a45e
Use keyword alias in compact output.
2012-01-12 13:41:23 -05:00
Dave Longley
c091c4cc7b
Rename @literal to @value, bug fixes, use json-ld.org test-suite.
2012-01-11 22:56:26 -05:00
Dave Longley
9b87179143
Do not do @id expansion for @id/@type even if aliased.
2012-01-11 19:32:30 -05:00
Dave Longley
7d06cd0c92
Convert @subject and @iri to @id. Remove @vocab.
2011-12-19 21:29:11 -05:00
Dave Longley
7124a88b7a
Remove expandSubjects option.
2011-12-18 15:14:25 -05:00
Dave Longley
215ceeb331
Use new type coercion format.
2011-12-18 14:43:10 -05:00
Dave Longley
aee96b1ec6
Change @datatype to @type.
2011-12-17 21:08:58 -05:00
Dave Longley
31181efa26
Remove unnecessary @type check.
2011-12-17 21:01:13 -05:00
Dave Longley
a024be9607
Removed obsolete use of rdf:type.
2011-11-28 23:12:11 -05:00
Dave Longley
fb11cb945f
Remove dependent dangling embeds.
2011-11-28 22:51:30 -05:00