getWellBores.json.swp
614 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:escapeJSON(xsd:string(?wellBore)) }",
"label" : "{= ui:escapeJSON(?wellBoreName) }"
}</ui:forEach>
]
</ui:setContext>