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

Given a URI, dereference it and show the wktLiteral(s) #10

Open
pietercolpaert opened this issue Jun 19, 2022 · 2 comments
Open

Given a URI, dereference it and show the wktLiteral(s) #10

pietercolpaert opened this issue Jun 19, 2022 · 2 comments

Comments

@pietercolpaert
Copy link
Contributor

pietercolpaert commented Jun 19, 2022

This is a feature request for an advanced functionality. When clicking a button “load URI”, a textbox should appear where a URI can be copy pasted. The URI should be requested, and then a wktLiteral on this page that can be found in the Linked Data should be visualized. Two options are possible of what the expect from such a URI:

  • The URI to a geo:Geometry is given, and a page is returned with multiple literals → select the wkt literal that is linked to this subject URI
  • The URL to a page is given with 1 or more WKT strings in it. Just select the first one found in this case

Functionalities to be taken into account:

Implementation

  1. Using rdf-dereference, fetch the resource. Problem that will show up by adding this dependency is that we can’t alter the webpack configuration from a created react app workflow. Workaround documented here: https://marmelab.com/blog/2021/07/22/cra-webpack-no-eject.html
  2. Loop through the triples, and filter all WKT literals. If multiple WKT literals given, select the one linked to the current page, else just select the first one.
  3. Now the full WKT literal can be used in the rest of the application: important in this case is however not to change the URL parameters to this specific WKT literal

Limitations:

  • WKT map can only visualize one WKT string and will only show one string from a map.
  • WKT map won’t show details of the geometry that could potentially also be extracted from the Linked Data

Examples of pages that can be used for testing:

I will do a first implementation of this

@pietercolpaert
Copy link
Contributor Author

@pieterprovoost Before I start, I’d like to get your opinion about:

  • Using the https://marmelab.com/blog/2021/07/22/cra-webpack-no-eject.html workaround for adding dependencies that require additional webpack configuration - is this indeed the way to go?
  • The limitation of visualizing only 1 WKT string: do you agree with the approach? Or should we allow multiple WKT strings by concatenating them somehow for example?

@pietercolpaert
Copy link
Contributor Author

For the first step: d21abe0 → this is what this would mean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant