Joachim Van Herwegen
63f891c0f1
fix: Remove metadata file if no new metadata is stored
2020-10-14 15:35:22 +02:00
Joachim Van Herwegen
e861b080c2
feat: Fully support storing content-type in file extensions
2020-10-14 15:20:26 +02:00
Joachim Van Herwegen
626b3114f4
refactor: Rename instances of data resource to document
2020-10-14 15:20:26 +02:00
Joachim Van Herwegen
b896004bac
feat: Create InMemoryDataAccessor
2020-10-14 11:32:27 +02:00
Joachim Van Herwegen
9a857b7581
feat: Create file-based DataAccessor
2020-10-14 11:32:27 +02:00
Joachim Van Herwegen
6ad40763f9
feat: Create DataAccessorBasedStore to have a standard store implementation
2020-10-14 11:32:27 +02:00
Joachim Van Herwegen
006f7ea7aa
refactor: Let caller decide which error pipeStreamAndErrors should throw
2020-10-14 11:32:27 +02:00
Joachim Van Herwegen
fa935cc4c7
refactor: Move file related metadata to FileResourceStore
2020-10-14 11:32:27 +02:00
Joachim Van Herwegen
22962192ff
fix: Fix test issues
...
The root container wasn't being created for file based tests.
Containers should be POSTed as RDF bodies.
Containment triples of child containers had no trailing slash.
2020-10-14 11:32:27 +02:00
Joachim Van Herwegen
e85ca622da
fix: Make sure all URI characters are correctly encoded
2020-10-14 11:32:27 +02:00
Joachim Van Herwegen
b47dc3f7f6
feat: Have ExtensionBasedMapper handle extensions correctly
2020-10-07 09:31:08 +02:00
Joachim Van Herwegen
4d34cdd12f
fix: Have AsyncHandlers only check what is necessary
2020-10-05 15:32:08 +02:00
smessie
d8e6c08859
refactor: Remove Turtle to Quad and Quad to Turtle converters
2020-09-30 09:12:42 +02:00
Joachim Van Herwegen
e1533a0869
refactor: Rename UriUtil functions
...
Forgot to do this when rebasing
2020-09-17 11:58:38 +02:00
Joachim Van Herwegen
9657fbafb1
refactor: Update eslint related dependencies
2020-09-17 11:55:49 +02:00
Joachim Van Herwegen
c150da337e
refactor: Fix typo
...
Fixes #155
2020-09-16 15:27:12 +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 Taelman
1dd140ab61
refactor: Remove RuntimeConfig in favor of config variables, Closes #106
2020-09-15 08:52:23 +02:00
Freya
383da24601
feat: Implement resource mapper for the file resource store ( #142 )
...
* move file mapping logic to resourcemapper
* make filestore dependent of resource mapper
* set default contenttype
* refactor fileresourcemapper
* fix map function
* refactor
* add normalized parser
* refactor unit test
* fix metadata problem
* refactor names
* reverse change
* add getters
* add comments
* add comments, move code
* change text/turtle to constant
* add changes
* add requested changes
* add more requested changes
* add more requested changes
* more changes
2020-09-11 17:08:53 +02:00
Ruben Verborgh
3d9507879b
refactor: Make PassthroughStore generic
2020-09-07 10:42:31 +02:00
Ruben Taelman
0ed1ae539d
lint: enable no-extraneous-dependencies rule
...
This also uses the new `import type` syntax for importing rdf-js types,
as it is required for making this new linter rule pass.
Closes #132
2020-09-07 08:46:08 +02:00
Ruben Verborgh
092906f257
docs: Fix comment
2020-09-05 00:10:06 +02:00
Joachim Van Herwegen
c808dfeff0
fix: metadata file error in FileResourceStore
...
* Fix: metadata file error in FileResourceStore
* fix: ensure full test coverage
* add stream piping function in util
* Fix typing in util function
* Add requested changes
* add suggested changes
* add suggested change
Co-authored-by: freyavs <freyavanspeybroeck@outlook.com>
2020-09-04 09:12:35 +02:00
Ruben Verborgh
986461f6fe
fix: Ensure stream is fully buffered.
...
Needs a more permanent fix for Very Large Streams.
2020-09-03 14:32:42 +02:00
Joachim Van Herwegen
785ec1ee07
fix: Don't buffer data before sending response with InMemoryResourceStore
2020-09-03 11:13:08 +02:00
Ruben Verborgh
ee3b847033
refactor: Introduce TEXT_TURTLE constant
2020-09-03 09:52:48 +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
199d657097
refactor: Remove overused "Simple" prefix
2020-09-02 15:42:13 +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
e88e680ed7
feat: add support for parsing more RDF formats using rdf-parse
2020-08-31 12:01:47 +02:00
Ruben Taelman
3387092fc3
Move base normalization to RuntimeConfig
2020-08-31 09:24:40 +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
Ruben Taelman
5126356c94
feat: Move runtime config into dedicated component, Closes #67
...
* Move runtime config into dedicated component, Closes #67
* Migrate FileResourceStore to RuntimeConfig
2020-08-26 10:25:47 +02:00
Joachim Van Herwegen
4f8ebff7f7
fix: Give SimpleResourceStore root a content-type
2020-08-26 09:01:31 +02:00
smessie
aa510bc6b8
fix: Release lock only when stream ends or is abandoned ( #60 )
...
* fix: Release lock only when stream has ended reading or an error occurs
* refactor: Refactor code and tests
* refactor: Move function mock to onBefore and remove unnecessary data drain
* fix: Make functions protected, add extra listener and add extra tests
* fix: Add extra TSDoc comment
* fix: Adjust tests to expect both end and close event
* refactor: Move test to other file
* refactor: make lockedRun method-independent
* fix: ensure lock release happens only once
* fix: make locked resources time out
* fix: destroy readable on error
Co-authored-by: Ruben Verborgh <ruben@verborgh.org>
2020-08-20 10:51:19 +02:00
Joachim Van Herwegen
b489d69bad
fix: Use posix path library to be OS independent
2020-08-18 14:34:32 +02:00
smessie
381dae42f6
feat: Add file based ResourceStore ( #52 )
...
* feat: Add file resource store
* test: Write some tests for FileResourceStore
* fix: Reformat code and fix various small things from reviews
* fix: Change constants to just be the corresponding URL
* fix: Remove extra unnecessary wrap in a Promise
* fix: Write some more tests and fix related bugs
* fix: Use old way to import fs promises to support older Node versions
* refactor: Refactor code and tests
* refactor: Refactor and better document code
* fix: Change comparison with undefined by typeof check
* fix: Invert typeof check
2020-08-18 14:19:25 +02:00
Joachim Van Herwegen
0545ca121e
feat: Add acl support
2020-08-18 10:32:07 +02:00
Joachim Van Herwegen
011822e859
fix: Make SimpleResourceStore behaviour closer to expected
2020-08-18 10:32:07 +02:00
Joachim Van Herwegen
4403421c49
feat: Integrate data conversion with rest of server
2020-08-17 15:38:26 +02:00
Joachim Van Herwegen
5e1bb10f81
feat: Convert data from ResourceStore based on preferences
2020-08-17 15:38:26 +02:00
Joachim Van Herwegen
d6a35f9954
fix: Make Patch more consistent with other Representations
2020-08-17 15:38:26 +02:00
Joachim Van Herwegen
14db5fed91
feat: Specifiy constants in separate file
2020-07-28 12:00:17 +02:00
Joachim Van Herwegen
aaba113563
fix: Set max-len to 120
2020-07-24 15:10:34 +02:00
Joachim Van Herwegen
dcff424f58
fix: Enable strict TypeScript settings
2020-07-24 13:30:34 +02:00