Commit Graph

195 Commits (83d974a06f8de1444f4fe40a8a18c62e01d331e1)

Author SHA1 Message Date
Dave Longley 3831d5336a Fix bugs to pass compaction tests.
10 years ago
Dave Longley a8ce5ba4a2 Fix bugs to pass expansion tests.
10 years ago
Dave Longley 6fbdfaa3b6 Various bug fixes to pass more tests.
10 years ago
Dave Longley 89dd522d45 Initial update to port over changes from jsonld.js.
10 years ago
Dave Longley 3309e2bd2b Bump version.
10 years ago
Dave Longley 002740bc69 Add version.
10 years ago
Dave Longley fece013733 Use base IRI when expanding @type.
11 years ago
Dave Longley 4c76b11a67 Make default url resolver a separate function.
11 years ago
Dave Longley 7b20e349af Add relative @context URL resolution.
11 years ago
Dave Longley ef8769fe5a Fixes to comply with updates to the spec(s).
11 years ago
Dave Longley 9b557af763 Add global declarations.
11 years ago
Dave Longley 2ff57e973e Fix typo.
11 years ago
Dave Longley 5299404f62 Fix list term check.
11 years ago
Dave Longley 084c9e4db1 Remove duplicate RDF statements.
11 years ago
Dave Longley 0a1058d4c0 Change addValue to allow duplicates by default.
11 years ago
Dave Longley 599e507bcc Use available aliases for @value, @language when compacting.
11 years ago
Dave Longley 7cf02461cc Fix nquads output for graph w/bnode ID.
11 years ago
Dave Longley 2760055bd2 Update to fix value compaction when there is a default language.
11 years ago
Dave Longley f17859714b Update flatten algorithm, fix @list merge bugs.
11 years ago
Dave Longley 160c1b379a Handle @type blank node IRIs.
11 years ago
Dave Longley a1f83aaba3 Fix blank node check in _flatten.
11 years ago
Dave Longley 5149bf383c Add escaping to N-Quads.
11 years ago
Dave Longley 00c18e853e Check input for non-array in from_rdf.
11 years ago
Dave Longley aef8eb3e72 Check for existing RDF parser before removal.
11 years ago
Dave Longley a4d73b0bb7 Make nquad methods public.
11 years ago
Dave Longley f1f8c46542 Remove unused var.
11 years ago
Dave Longley 29bd617417 Add ability to register global or processor RDF parsers.
11 years ago
Dave Longley 599e2352d1 Always use @value in expanded form.
11 years ago
Dave Longley 4c847440c7 Implement JSON-LD context URL resolution.
11 years ago
Dave Longley 52fa975894 Use RDF statements in normalization.
11 years ago
Dave Longley 657edcec47 Remove unnecessary lines.
11 years ago
Dave Longley 080dec516e Fix whitespace regex.
11 years ago
Dave Longley 18e2934981 Sort RDF statement output.
11 years ago
Dave Longley 566991cb47 Remove unnecessary value assignment.
11 years ago
Dave Longley 25d86fc0db Handle strings in @graph [] case.
11 years ago
Dave Longley ad531248c6 Implement toRDF.
11 years ago
Dave Longley 273c9c88de Implement fromRDF.
11 years ago
Dave Longley 28e8502122 Use %1.15e for double strings, fix base handling.
11 years ago
Dave Longley 7941387631 Allow null @id mappings, use null mapping in compact IRI.
11 years ago
Dave Longley 2135f34a72 Update to latest spec changes.
11 years ago
Dave Longley 0e6040c9e1 Remove unnecessary var.
11 years ago
Dave Longley f1ad4a7936 Fix method signature.
11 years ago
Dave Longley 60994879d6 Remove unused var.
11 years ago
Dave Longley 3f494ac765 Naming convention fixes.
11 years ago
Dave Longley 75526669b8 Follow naming conventions.
11 years ago
Dave Longley 6254519b40 Code clean up/renaming.
11 years ago
Dave Longley d0c73ec99d Some formatting changes.
11 years ago
Dave Longley ae46860dab Some code clean up/reorganization.
11 years ago
Dave Longley 265689c92f Remove unused function, some clean up.
11 years ago
Dave Longley 30622b2aeb Fix remaining bugs with framing and test harness.
11 years ago
Dave Longley 084727c586 Fix remaining expansion, normalize, compact bugs.
11 years ago
Dave Longley 1b8a833bd1 Fix number checks.
11 years ago
Dave Longley b763bdde10 Fix various bugs that cropped up during port.
11 years ago
Dave Longley a1a5a4cb34 Various syntax/logic fixes.
11 years ago
Dave Longley cdce63a99c New port of jsonld.js.
11 years ago
Dave Longley de770b30fd Sort all properties except @id in normalization.
11 years ago
Dave Longley ab71b33c3f Fix error message.
11 years ago
Dave Longley 809a4d31ce Remove duplicate objects when normalizing.
11 years ago
Dave Longley eb7a99a45e Use keyword alias in compact output.
11 years ago
Dave Longley c091c4cc7b Rename @literal to @value, bug fixes, use json-ld.org test-suite.
11 years ago
Dave Longley 9b87179143 Do not do @id expansion for @id/@type even if aliased.
11 years ago
Dave Longley 7d06cd0c92 Convert @subject and @iri to @id. Remove @vocab.
11 years ago
Dave Longley 7124a88b7a Remove expandSubjects option.
11 years ago
Dave Longley 215ceeb331 Use new type coercion format.
11 years ago
Dave Longley aee96b1ec6 Change @datatype to @type.
11 years ago
Dave Longley 31181efa26 Remove unnecessary @type check.
11 years ago
Dave Longley a024be9607 Removed obsolete use of rdf:type.
12 years ago
Dave Longley fb11cb945f Remove dependent dangling embeds.
12 years ago
Dave Longley ac210d60e3 Fixed bugs with replacement embeds.
12 years ago
Dave Longley 7e65429375 Made sort optimization more effective.
12 years ago
Dave Longley af25c067de Added optimization to avoid extra bnode sorting.
12 years ago
Dave Longley ff35e9796f Support @context in frame arrays.
12 years ago
Dave Longley 4eb2832c11 Use @context property with external contexts.
12 years ago
Dave Longley a7206c8331 Added resolve method for @context URLs.
12 years ago
Dave Longley 093e3277d8 Fixed @embed=false bug.
12 years ago
Dave Longley 72482dbe97 Swapped key/value order in @coerce.
12 years ago
Dave Longley 915b154d8c Fixed typos.
12 years ago
Dave Longley c8d381111b Updated to use new framing algorithm.
12 years ago
Dave Longley 3ddfbbfda3 Removed xsd:anyURI usage.
12 years ago
Dave Longley 7e54fc304d Added support for keyword aliasing.
12 years ago
Dave Longley 3d7a5c6c6c Passed merging subjects in normalization test.
12 years ago
Dave Longley be88eaa0c4 Updated to pass tests.
12 years ago
Dave Longley 334cac4986 Cleaned up compact handling of disjoint graphs.
12 years ago
Dave Longley a2924c8d2d Removed JSON output from relation serializations.
12 years ago
Dave Longley 5244670fdb Simplified relation serialization format.
12 years ago
Dave Longley a29ea93ffd Passed nulls test.
12 years ago
Dave Longley dbd83f1535 Fixes to pass property CURIE conflict during compact.
12 years ago
Dave Longley 25c62ddac1 Simplified framing default option handling.
12 years ago
Dave Longley 6810f94673 Changed framing so null will not be auto-included in arrays.
12 years ago
Dave Longley 5d03e650ec Added support for framing defaults and fixed property checks.
12 years ago
Dave Longley 4d7d0fa0ae Removed nulls in flatten.
12 years ago
Dave Longley d841bf535c Added fixes to pass latest frame test.
12 years ago
Dave Longley 1e79de1c41 Fixed built-in json number/bool check.
12 years ago
Dave Longley fd37e95a19 Removed old log function.
12 years ago
Dave Longley 8f43a52eb4 Added JSON-LD processor and test runner.
12 years ago