django-geo-spaas icon indicating copy to clipboard operation
django-geo-spaas copied to clipboard

Add validation of uri before saving DatasetURI objects

Open mortenwh opened this issue 6 years ago • 1 comments

The URI generic syntax consists of a hierarchical sequence of five components:

URI = scheme:[//authority]path[?query][#fragment]

DatasetURI.uri is presently not validated. This could be a big problem if a lot of data is wrongly ingested. We should add some validation in the get_or_create method of this model:

  • [x] Check that the generic uri syntax is followed

  • [x] Check that the uri points to an actual resource

  • [ ] Correct any wrong uris already added to the database - perhaps using migrations?

mortenwh avatar Jul 24 '18 17:07 mortenwh

The two first tasks are done in #38

mortenwh avatar Oct 24 '18 12:10 mortenwh