Joachim Van Herwegen
e6519992bf
Merge branch 'main' into versions/4.0.0
...
# Conflicts:
# test/unit/storage/accessors/FileDataAccessor.test.ts
2022-04-15 10:28:50 +02:00
Jasper Vaneessen
668d0a331f
feat: Only accept NamedNodes as predicates for metadata
...
* refactor: move toCachedNamedNode (private)
* chore: only NamedNodes predicates in removes
* feat: enforce NamedNode predicates in most cases
* feat: getAll only accepts NamedNodes
* feat: toCachedNamedNode only accepts string arg
* tests: use NamedNodes for getAll calls
* test: remove unnecessary string check for coverage
* tests: fix NamedNodes in new tests after rebase
* feat: metadatawriters store NamedNodes
* refactor: toCachedNamedNode as utility function
* fix: double write of linkRelMap
* test: use the CONTENT_TYPE constant
2022-04-15 09:53:39 +02:00
Jasper Vaneessen
fe39f97ee0
refactor: Use fs-extra instead of fs to simplify file access
...
* refactor: use fs-extra instead of fs
* tests: manual mocks for fs-extra base + ensureDir
* refactor: mockFileSystem + mockFs and mockFsExtra
* add remove mock and some further test tweaks
* test: FileDataAccessor tests passing
* refactor: remove try-catch due to fs-extra handlin
* refactor: fs-extra in atomicFileDataAccessor
* refactor: AtomicFileDataAccessor fs-extra
* test: fix coverage
* refactor: use read/writeJson from fs-extra
* refactor: less duplicate mocking code
* refactor: re-use opendir mocking code
2022-04-12 11:02:30 +02:00
Joachim Van Herwegen
027e3707fd
feat: Parse content-type more strictly
2022-03-28 10:45:05 +02:00
Joachim Van Herwegen
7152897b89
fix: Add IANA type to child metadata in FileDataAccessor
2022-03-28 10:45:05 +02:00
Joachim Van Herwegen
9ceb62b8b6
refactor: Remove @rdfjs/data-model dependency
...
We already have N3.js for term generation.
No need to have two solutions there.
2022-02-11 15:28:50 +01:00
Ruben Verborgh
2e4589938f
feat: Display symlinks in container listings.
...
Closes https://github.com/solid/community-server/issues/1015
2021-10-21 17:26:54 +01:00
Joachim Van Herwegen
b3da9c9fcf
refactor: Restructure source code folder
...
This way the location of certain classes should make more sense
2021-10-12 12:51:02 +02:00
Joachim Van Herwegen
97c534b2bf
feat: Keep track of last modified date of resources
2021-08-18 13:16:08 +02:00
Joachim Van Herwegen
12e501844f
fix: Prevent generated metadata from being stored
2021-07-05 14:33:20 +02:00
Joachim Van Herwegen
cae9d54fac
feat: Add getChildren function to DataAccessor interface
...
DataAccessors are now no longer responsible for generating ldp:contains triples.
2021-05-12 15:27:51 +02:00
Ruben Verborgh
c3cff553e3
feat: Emit container pub event on PUT.
...
Closes https://github.com/solid/community-server/issues/612
2021-02-24 12:04:42 +01:00
Ruben Verborgh
6edc255707
feat: Make stores return modified resources.
2021-02-24 12:04:42 +01:00
Wouter Termont
1486f01aaf
fix: do not output filesystem container size
...
* fix: do not output filesystem container size
* fix: only omit size metadata for containers
Signed-off-by: Wouter Termont <woutermont@gmail.com>
2021-02-12 09:18:09 +01:00
Joachim Van Herwegen
c29928c32c
fix: Test error classes correctly
2021-01-29 09:40:10 +01:00
Ruben Verborgh
be1af89b56
feat: Add Content-Type constructor to metadata.
2021-01-11 14:03:38 +01:00
Joachim Van Herwegen
fea726ae7d
fix: Take baseIRI into account when calling parseQuads
2021-01-07 14:38:19 +01:00
Ruben Verborgh
2e188551f7
refactor: Rename UriUtil into TermUtil.
2021-01-02 23:19:01 +01:00
Ruben Verborgh
ae06e99067
refactor: Also create named nodes for vocabularies.
2021-01-02 23:15:51 +01:00
Ruben Verborgh
8e138c36d1
refactor: Use types to create vocabularies.
2021-01-02 22:56:25 +01:00
Ruben Verborgh
a572825909
refactor: Indicate caching on method name.
2021-01-02 17:50:17 +01:00
Joachim Van Herwegen
d7434df808
feat: ExtensionBasedMapper no longer throws if there is no file
2020-12-18 10:40:07 +01:00
Joachim Van Herwegen
90bdfb5583
chore: Add root container tests for FileDataAccessor
2020-12-18 09:01:59 +01:00
Ruben Verborgh
accfc2e58d
change: Make RepresentationMetadata accept a ResourceIdentifier.
...
Closes https://github.com/solid/community-server/issues/388
2020-12-11 10:37:36 +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
Joachim Van Herwegen
e4183333fd
fix: Integrate wrapStreamError to prevent uncaught errors
2020-11-24 11:49:10 +01:00
Ruben Taelman
2c46d70780
refactor: move ExtensionBasedMapper into mapping directory
2020-11-23 13:28:28 +01:00
Joachim Van Herwegen
1073c2ff4c
refactor: Clean up utility functions
2020-11-18 17:19:53 +01:00
Ruben Verborgh
4b4f737013
chore: Use Jest recommended linting.
2020-11-02 10:03:18 +01:00
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
9a857b7581
feat: Create file-based DataAccessor
2020-10-14 11:32:27 +02:00