getWellBores.json.swp
581 Bytes
<ui:setContext
xmlns:npd="http://www.reportinghub.no/schema/npd#"
ui:queryGraph="<https://www.reportinghub.no/data/npd>"
let:well="{= ui:param('well', rdfs:Resource) }">
[
<ui:forEach ui:resultSet="{#
SELECT ?wellBore ?wellBoreName
WHERE {
?wellBore npd:partOfWell ?well .
?wellBore npd:name ?wellBoreName .
} ORDER By ?wellBoreName
}" ui:indexVar="i"><ui:if ui:condition="{= ?i > 0 }">,</ui:if>
{
"value" : "{= ui:json(?wellBore) }",
"label" : "{= ?wellBoreName }"
}</ui:forEach>
]
</ui:setContext>