8 Commits

Author SHA1 Message Date
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
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
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
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
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