Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we have some sort of "open with" predicate? #126

Open
JornWildt opened this issue Nov 21, 2018 · 6 comments

Comments

@JornWildt
Copy link

commented Nov 21, 2018

This is a copy from solid/node-solid-server#944.

Would it be possible to define a predicate that tells the Solid server how to "open" a specific piece of data? Or does such a thing exist already?

Example: I have a web-app that stores data about an RC model at http://my-pod/models/1234. If someone opens that URL they will see the generic data-browser linked data representation of the resource. Now I would like to enable a "Open" or "Show" button in the data-browser by adding a statement like this:

[<http://my-pod/models/1234>, <opens-with>, <http://the-web-app/models?src=http%3A%2F%2Fmy-pod%2Fmodels%2F1234>]

See also discussion at https://forum.solidproject.org/t/whats-in-a-link/618

@JornWildt

This comment has been minimized.

Copy link
Author

commented Dec 1, 2018

One easy-peasy way to solve this issue, would be to add a link like the one above to each of the resources:

[<http://my-resource>, <do:Click-here-to-open>, <http://the-best-app>]

Given that the current incarnation of the data browser strips the namespace prefix "do:" and replaces dashes with spaces, the end user would be presented with a statement that says "Click here to open" ... I guess most people would try that and get used to it working :-)

@JornWildt

This comment has been minimized.

Copy link
Author

commented Dec 1, 2018

I do although think a better long term solution would be to let apps register URL templates for data types (as discussed in the linked solid/node-solid-server#944).

The data browser would then, for each type found, look up the user's "open with" URL template, and if such was found, merge the subject URL into the template and present the user with an "Open" link-button.

That would be equivalent to how the Windows file system registers "Open with" applications for file-extensions.

@RubenVerborgh

This comment has been minimized.

Copy link
Member

commented Dec 2, 2018

We probably want to get this right the first time. Links per resource will not scale.

@angelo-v

This comment has been minimized.

Copy link

commented Dec 31, 2018

I would prefer to assign an app per rdf type in my solid profile, so each user can decide herself which apps to use, similar how the type index tells where to store data of a type

@Ryuno-Ki

This comment has been minimized.

Copy link

commented Jan 30, 2019

Is that similiar to Navigator. RegisterProtocolHandler which is used on some apps?

(Haven't checked out the links in this thread)

@Otto-AA Otto-AA referenced this issue Apr 28, 2019
3 of 5 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.