getWellBores.json.swp 581 Bytes
<ui:setContext
        xmlns:npd="http://www.reportinghub.no/schema/npd#"
        ui:queryGraph="&lt;https://www.reportinghub.no/data/npd&gt;"
        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 &gt; 0 }">,</ui:if>
			{
				"value" : "{= ui:json(?wellBore) }",
				"label" : "{= ?wellBoreName }"
			}</ui:forEach>
	]
</ui:setContext>