EngineVersion 1uiClasses

ui:Renderable

Binds a component to an OWL class with props derivation.

Extends: matrix:Resource

User-defined binding that connects a ui:Component to a type with a props query.

Multiple renderables can share the same ui:Component but with different props queries.

people:PersonView
        a ui:Renderable ;
        ui:forType people:Person ;
        ui:component people:PersonCardComponent ;
        ui:propsQuery [
            os:json """
            JSON { "name": ?name } WHERE { ?subject people:name ?name . }
            """
        ] .

Properties

ui:component (required, max 1)

Reference to the UI component to render.

Renderable must reference exactly one component (ui:Component).

The component's bundle is resolved and the export is rendered with derived props.

ui:forType (required, max 1)

The OWL class this renderable handles.

Renderable must have exactly one forType (the OWL class it renders).

Used for type-to-component resolution during ui:render.

ui:propsQuery (required, max 1)

SPARQL JSON function that extracts component props from the subject resource.

Renderable must have exactly one propsQuery (os:JSONFunction).

The function receives ?subject binding and must return a JSON object suitable as React props.

On this page