Joachim Van Herwegen
59600b07f8
fix: Fixed bug with empty Accept headers and internal/quads bodies
...
In case the Accept header was empty and the store returned an internal/quads
resource, our mechanism to prevent internal data from being returned
was ignored.
2021-02-09 13:26:36 +01:00
Joachim Van Herwegen
c29928c32c
fix: Test error classes correctly
2021-01-29 09:40:10 +01:00
Ruben Verborgh
b487dc738c
fix: Create basic representations with streams.
2021-01-20 16:30:29 +01:00
Ruben Verborgh
5416d66a31
feat: Add ConstantConverter.
2021-01-20 14:36:17 +01:00
Ruben Verborgh
a21532ebf8
refactor: Allow IfNeededConverter to short-circuit.
2021-01-20 14:36:17 +01:00
Ruben Verborgh
6763500466
feat: Add IfNeededConverter and PassthroughConverter.
2021-01-18 09:47:06 +01:00
Ruben Verborgh
4638ba4bce
feat: Use baseIRI in QuadToRdfConverter.
...
Closes https://github.com/solid/community-server/issues/512
2021-01-15 12:43:34 +01:00
Ruben Verborgh
be1af89b56
feat: Add Content-Type constructor to metadata.
2021-01-11 14:03:38 +01:00
Ruben Verborgh
27a5711ec2
refactor: Simplify TypedRepresentationConverter contruction.
2021-01-09 00:26:40 +01:00
Ruben Verborgh
2efebf91fc
feat: Only convert when needed.
2021-01-07 11:45:46 +01:00
Ruben Verborgh
8343dad7f1
refactor: Make createNamespace return regular objects.
2021-01-06 11:54:12 +01:00
Ruben Verborgh
87752ddf20
feat: Support writer prefixes.
...
Closes https://github.com/solid/community-server/issues/470
2021-01-06 11:36:21 +01:00
Ruben Verborgh
e70e060225
fix: Prefer Turtle as default content type.
...
Fixes https://github.com/solid/community-server/issues/463
2021-01-05 22:28:11 +01:00
Ruben Verborgh
0bd73115cc
refactor: Simplify supportsMediaTypeConversion arguments.
2021-01-05 11:03:15 +01:00
Ruben Verborgh
8cd3f7d2e5
feat: Incorporate server-side representation quality.
...
Closes https://github.com/solid/community-server/issues/467
2021-01-05 11:03:15 +01:00
Ruben Verborgh
09ae959333
refactor: Rename RepresentationPreference into ValuePreferences.
2021-01-05 11:03:14 +01:00
Ruben Verborgh
4828912593
refactor: Use record for representation preference.
2021-01-04 23:06:52 +01:00
Ruben Verborgh
98bf8c199d
fix: Sort preferences by descending weight.
2021-01-04 00:46:22 +01:00
Ruben Verborgh
8e138c36d1
refactor: Use types to create vocabularies.
2021-01-02 22:56:25 +01:00
Ruben Verborgh
dfc1d4662f
feat: Expose ConversionUtil.
2021-01-02 14:04:52 +01:00
Ruben Verborgh
9c933fd2d4
chore: Build to dist folder.
...
Closes https://github.com/solid/community-server/issues/136
2020-12-08 09:30:18 +01:00
Ruben Verborgh
af8f1976cd
fix: Rename UnsupportedHttpError into BadRequestError.
2020-11-27 14:52:16 +01:00
Joachim Van Herwegen
1073c2ff4c
refactor: Clean up utility functions
2020-11-18 17:19:53 +01:00
Joachim Van Herwegen
715ba126f9
feat: Make internal/quads unacceptable output
2020-11-13 15:32:48 +01:00
Joachim Van Herwegen
69ed2e069f
feat: Reject unacceptable content types
2020-11-13 15:32:48 +01:00
Ruben Verborgh
0476ba8069
chore(deps): update all dependencies ( #293 )
2020-11-02 09:08:14 +01:00
smessie
d8e6c08859
refactor: Remove Turtle to Quad and Quad to Turtle converters
2020-09-30 09:12:42 +02:00
Joachim Van Herwegen
9657fbafb1
refactor: Update eslint related dependencies
2020-09-17 11:55:49 +02:00
Joachim Van Herwegen
85df2e5d7f
refactor: Make URI constants consistent
2020-09-16 13:18:58 +02:00
Joachim Van Herwegen
8d3979372b
refactor: Streamline RepresentationMetadata interface
2020-09-16 12:10:42 +02:00
Joachim Van Herwegen
76319ba360
feat: Update RepresentationMetadata to store triples
2020-09-16 12:10:42 +02:00
Ruben Verborgh
85e3117efe
refactor: Drop CONTENT_TYPE prefix
2020-09-03 09:52:48 +02:00
Ruben Verborgh
c5c5d13570
refactor: Replace dataType by binary flag
2020-09-03 09:52:48 +02:00
Joachim Van Herwegen
af4a82f4c1
feat: Dynamically determine matching types in ChainedConverter
2020-09-01 15:39:10 +02:00
Joachim Van Herwegen
734f7e7f0f
feat: Create RepresentationConverter that chains other converters
2020-09-01 15:39:10 +02:00
Ruben Taelman
2c3ae4eded
Add generic QuadToRdfConverter
2020-09-01 11:49:49 +02:00
Ruben Taelman
f08e97b80c
fix: failing conversion test due to N3 update
2020-09-01 09:00:15 +02:00
Ruben Taelman
e88e680ed7
feat: add support for parsing more RDF formats using rdf-parse
2020-08-31 12:01:47 +02:00
Ruben Taelman
48740e5cba
style: improve linting of imports
...
A new plugin is used that offers autofixing capabilities.
2020-08-26 13:20:19 +02:00
Joachim Van Herwegen
5e1bb10f81
feat: Convert data from ResourceStore based on preferences
2020-08-17 15:38:26 +02:00