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 the same feature be a member of several collections simultaneously? #779

Open
alexrobin opened this issue Jan 3, 2023 · 2 comments
Open
Labels
Part 1: Core Issue related to Part 1 - Core question

Comments

@alexrobin
Copy link

I am wondering if there is anything in the API standard that prevents offering the same feature (with the same ID) through several collections simultaneously. This basically means using collections as 'tags' rather than 'folders'.

The use case is to have several collections that are more and more specific, for example:

  1. A collection with all surface water bodies
  2. A collection with only waterways
  3. A collection with only rivers
  4. A collection with only lakes
  5. etc.

Thus a river feature would be present in collections 1, 2 and 3.

@cportele cportele added question Part 1: Core Issue related to Part 1 - Core labels Jan 16, 2023
@cportele cportele added this to Backlog in Part 1: Core via automation Jan 16, 2023
@cportele
Copy link
Member

@alexrobin,

what you describe is perfectly fine. It would still be three features at the API level, each has a different URI. That said, you can have a convention to express that the features are the same. One approach could be to include a link with rel=canonical in each representation to the canonical URI of the feature (which may or may not be an URI of the API).

Here is an old issue that is related: #66.

@alexrobin
Copy link
Author

Thanks @cportele.
I definitely like the canonical link idea.

In fact, what I had in mind was to use the canonical URI as the self link, even though the feature can also be accessed through its collection URI. Do you see any issue with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Part 1: Core Issue related to Part 1 - Core question
Projects
Part 1: Core
  
Backlog
Development

No branches or pull requests

2 participants