-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
How can Clients dynamically determine the ID-Field of a collection? #689
Comments
The behavior depends on the feature encoding. For example, in a GeoJSON encoding the So, if you access The id may also be encoded in the For GML it is similar, the For other encodings it will depend on the specification of the format. Does that answer your question? |
You're right, one might use the get feature by ID API endpoint. But let me ask the question another way: How can I query multiple features by ID, using the Example query:
Without knowing what the name of |
This is supported by Part 3, if the API declares a queryable for this. General question to the group: Would it make sense to add a recommendation to define such a queryable with the name 'ID' (or 'id' or ?)? |
Sure, such an ID field must be declared as queryable, to be accessible in filter expressions. The question then is, how such a field might be described by a JSON schema. As I understand in JSON schemas you cannot label a certain property as ID field. I know, there is the format parameter for I know I'm not asked, but call it a community concern :-). IMO a labelled field with the name |
Can it not be inferred through the IRI for an item in a given collection? |
Meeting 2022-05-09: The ability to request features by identifier is a common practice, probably it would be better to have a separate query parameter (e.g. |
@cportele I see that the proposal has been accepted. I would be interested to know what exactly the next steps are? I am aware that this will take some time, I am just curious how exactly the process works. =) |
Most recently, I've been working extensively with the OGC API Features and I noticed that there is no way for a web client to dynamically determine the ID column of a collection.
Consider the following scenario:
A Web-GIS-Client, which allows to browse OGC API Feature collections in a generic attribute table needs to retrieve a specific feature again to update the associated row.
Without any additional configuration or explicit knowledge about the underlying dataset, that client would not be able to re-fetch a feature by its id.
Therefore I would suggest to add a new property to the
Collection
interface. I can imagine a property likeidColumn
oridField
:I dont't know if the
Queryables
interface can be leveraged for this, but as I understand there is no way to mark a certain field as ID within a JSON schema.What's your opinion on that matter?
The text was updated successfully, but these errors were encountered: