Get organisations

lock_open

By datagraft_publisher

Last modification over 3 years ago -  2017-01-24 15:18:27 UTC
Description

Retrieve the cadastre reference identifier, organisation number and organisation name for all entries of the database


Query text


PREFIX prodm-cad: <http://vocabs.datagraft.net/proDataMarket/0.1/Cadastre#>
PREFIX prodm-com: <http://vocabs.datagraft.net/proDataMarket/0.1/Common#>
PREFIX prodm-soe: <http://vocabs.datagraft.net/proDataMarket/0.1/SoE#>
PREFIX cp: <http://www.w3.org/2015/03/inspire/cp#>
PREFIX dul: <http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT (?cadref as ?CadastreReferenceID) (?orgnr as ?OrganisationNumber) (?orgnavn as ?OrganisationName)

WHERE {
?cp a prodm-soe:CadastralParcel;
cp:nationalCadastralReference ?cadref;

prodm-com:hasAreaMeasurement [ a prodm-com:AreaMeasurement ;
rdf:value ?area ;].
?rr a prodm-cad:RealRights;
dul:defines ?cp;
dul:defines ?owner.
?owner a prodm-soe:RightsHolderOrganization;
dcterms:identifier ?orgnr;
rdfs:label ?orgnavn .
}