-
Notifications
You must be signed in to change notification settings - Fork 25
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
Revising the 'form' vocabulary? #29
Comments
Another change could be to change the name of |
@vcharpenay Could you comment how far a common |
A CoAP method code is a byte while an HTTP method is a string token, so they must be individually defined, with proper range. However, it should be possible to define something like:
to avoid redundant definitions. It would roughly correspond to translating RFC8075 into RDF. But, to me, it is better to always explicitly state that an interaction supports two bindings (HTTP and CoAP), which here corresponds to |
Some update after Prage:
|
Consensus for the remaining terms hangs on w3c/wot-thing-description#179 |
w3c/wot-thing-description#88 raised questions about the terms in our vocabulary and raised one issue:
href
takes the target URI. Usually it is used for (hyper-)references. In HTML, the target resource of a form goes into theaction
attribute.action
could be used.mediaType
takes the media type for the serialization. It assumes the same media type for requests and responses. In HTML, the field for the request payload media type isenctype
(with a small enum for values).accept
was deferred down to theinput
element (for file uploads together withenctype
multipart/form-data
) and is now deprecated for HTML forms. For WoT,accept
is a proposed option for the request payload schema.encType
could be used for request payload media type.mediaType
(astype
is overloaded) for resonse/notification/event payload media type (use case would be an Action that consumes a different media type than it returns, e.g., to convert payloads for a constrained Thing.*:method
is binding-specific.method
could be an overarching term that can accept values from different vocabularies such ashttp:method
orcoap:methodCode
rel
semantically identifies the form. This is not supported in the human-centric HTML forms. The closest match would bename
.rel
for forms would be an actual improvement needed for a Web of Things, so that machines can understand their meaning.The text was updated successfully, but these errors were encountered: