2d.qr.SPARQL11-D.dong 900 Bytes
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX erhi: <http://www.reportinghub.no/erhi/schema/1.0/interface-model#>

SELECT ?fieldName ?productKind ?startDate ?endDate ?density ?densityUnit ?mass ?massUnit ?volume ?volumenUnit
WHERE {
	?field a erhi:Field;
		erhi:npdid "18081500";
		erhi:npdname ?fieldName.
	?flow erhi:flowIntoOrOutOf ?field;
	a erhi:AllocatedFlow, erhi:ProductionExploitation.
	?flow erhi:hasProduct ?flowProduct.
	?flowProduct erhi:hasProductKind .?productKind.
	?flowProduct erhi:productStartAt	?startDate.
	?flowProduct erhi:productEndAt	?endDate.
	OPTIONAL {
		?flowProduct	erhi:hasDensity	?density;
				erhi:hasDensityUnit ?densityUnit.
	}
	OPTIONAL {
		?flowProduct	erhi:hasMass	?mass;
			erhi:hasMassUnit	?masUnit.
	}
	OPTIONAL {
		?flowProduct	erhi:hasVolume	?volume;
			erhi:hasVolumeUnit	?volumeUnit.
	}
	VALUES ?productKind {"oil net" "water" "gas"}	
}