Skip to content
This repository was archived by the owner on Jun 22, 2023. It is now read-only.

ThingInterface does not have contentUrl #204

Closed
aggelosgkiokas opened this issue Jun 9, 2021 · 2 comments
Closed

ThingInterface does not have contentUrl #204

aggelosgkiokas opened this issue Jun 9, 2021 · 2 comments

Comments

@aggelosgkiokas
Copy link

In the modelling discussion, for AudioObject, MediaObject and VideoObject, the URI of the object is contained in the contentURL feld.

However, for requesting a ControlAction, it is impossible to access this field, because the the PropertyValue nodes do not support this.

PropertyValue --> NodeValue implements ThingInterface. ThingInterface does not have contentURL field.

Could be a solution to just add the contentUrl field in ThingInterface??

@alastair
Copy link
Member

alastair commented Jun 9, 2021

Unfortunately we can't put contentUrl in ThingInterface, because it means that all objects that implement ThingInterface would have to add it, and that doesn't make sense.

Can you perform a query like this?

nodeValue {
    identifier
    ... on AudioObject {
        contentUrl
    }
}

@aggelosgkiokas
Copy link
Author

works. thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants