You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@wouteraj @joachimvh Just wanted to bump the priority of this one.
A key necessity will be the creation of a server configuration that I can boot up. That can be in another repository or on a branch of this one.
I still can't curl http://localhost:3000/sparql/person though without content type because of #276, could we have a look at that?
2020-11-03T21:22:26.775Z [RepresentationConvertingStore] info: Convert http://localhost:3000/file/person from text/turtle to [object Object]
2020-11-03T21:22:26.778Z [ExtensionBasedMapper] info: The path for http://localhost:3000/file/person is /tmp/solid/file/person$.ttl
2020-11-03T21:22:26.778Z [ExtensionBasedMapper] info: The path for http://localhost:3000/file/person.meta is /tmp/solid/file/person.meta
2020-11-03T21:22:26.778Z [ExtensionBasedMapper] info: The path for http://localhost:3000/file/person is /tmp/solid/file/person$.ttl
2020-11-03T21:22:26.778Z [ExtensionBasedMapper] info: The path for http://localhost:3000/file/person is /tmp/solid/file/person$.ttl
2020-11-03T21:22:26.779Z [ExtensionBasedMapper] info: The path for http://localhost:3000/file/person.meta is /tmp/solid/file/person.meta
One statement for http://localhost:3000/file/person should be enough. Or are we simply invoking this method multiple times?
And then there's this one:
2020-11-03T21:27:04.402Z [RepresentationConvertingStore] info: Convert http://localhost:3000/file/person from text/turtle to [object Object]
Wonder why the linter didn't catch, but I guess it's a valid string operation.
And this one is slightly hilarious, how exact can a match be 😁
2020-11-03T21:27:04.403Z [ChainedConverter] info: internal/quads is an exact match between internal/quads and internal/quads
So yes, nothing but nits. Demo works fine. Great work, @joachimvh!
I already opened an issue in #301 regarding some of the logger nits I came across, feel free to add more there as well. That [object Object] one is among there. Will have to check why there are so many calls to the ExtensionBasedMapper but it is used both for generating the file paths and the URIs again so could just be that.
Had a look why there were so many ExtensionBasedMapper calls. A single getRepresentation already has 3 calls (getData has 1, getMetadata has 1 for the file (to check if it exists), and then 1 for the metadata). A setRepresentation is going to have even more since it has to do some checks to see what exists already. Since a modifyResource call combines those two it is going to have a bunch of them.
Activity
RubenVerborgh commentedon Nov 1, 2020
@wouteraj @joachimvh Just wanted to bump the priority of this one.
A key necessity will be the creation of a server configuration that I can boot up. That can be in another repository or on a branch of this one.
jvherweg commentedon Nov 2, 2020
A Components.js config or something else? We can add some entries in the root config folder such as
config-sparql.json,config-routing.json, etc.RubenVerborgh commentedon Nov 2, 2020
Indeed; see also #296 in the meantime.
jvherweg commentedon Nov 3, 2020
@RubenVerborgh I created some simple steps showing the commands to GET/PUT/POST/PATCH when using one of the configs from #296: https://gist.github.com/joachimvh/a181435cd65f5a381481395a9e7984a1
I have tested all those commands on my own system.
RubenVerborgh commentedon Nov 3, 2020
Looking great.
I still can't
curl http://localhost:3000/sparql/personthough without content type because of #276, could we have a look at that?RubenVerborgh commentedon Nov 3, 2020
Some random comments below.
is probably a bit excessive.
A bit of repetition here:
One statement for
http://localhost:3000/file/personshould be enough. Or are we simply invoking this method multiple times?And then there's this one:
Wonder why the linter didn't catch, but I guess it's a valid string operation.
And this one is slightly hilarious, how exact can a match be 😁
So yes, nothing but nits. Demo works fine. Great work, @joachimvh!
jvherweg commentedon Nov 4, 2020
I already opened an issue in #301 regarding some of the logger nits I came across, feel free to add more there as well. That
[object Object]one is among there. Will have to check why there are so many calls to theExtensionBasedMapperbut it is used both for generating the file paths and the URIs again so could just be that.jvherweg commentedon Nov 4, 2020
Had a look why there were so many
ExtensionBasedMappercalls. A singlegetRepresentationalready has 3 calls (getDatahas 1,getMetadatahas 1 for the file (to check if it exists), and then 1 for the metadata). AsetRepresentationis going to have even more since it has to do some checks to see what exists already. Since amodifyResourcecall combines those two it is going to have a bunch of them.RubenVerborgh commentedon Nov 4, 2020
Make sense. Maybe those statements should be
debugthen, and we should default the logger toinfo(if it hasn't been already).RubenVerborgh commentedon Nov 5, 2020
Release v0.2.0 on npm, demo script at https://github.com/solid/community-server-demos/blob/main/solid-world-2020-nov/steps.sh
Thanks so much, @joachimvh!