pieterprovoost / wktmap

8 stars 3 forks source link

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

Open pietercolpaert opened 2 years ago

pietercolpaert commented 2 years ago

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:

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:

Examples of pages that can be used for testing:

I will do a first implementation of this

pietercolpaert commented 2 years ago

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

pietercolpaert commented 2 years ago

For the first step: https://github.com/pieterprovoost/wktmap/pull/11/commits/d21abe06e675ddad6637bdc69f943e2b721c3996 → this is what this would mean