SoE-UC1

lock_open

By prodatamarket_publisher
Copied from SoE-UC1

Last modification over 5 years ago -  2017-03-06 09:31:34 UTC
Description

Show properties on a category map, where category is the ownership that can be of two types: (1) Same ownership from Matrikkel and SOE, (2) Ownership from Matrikkel that is absent from SOE


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 schema: <http://schema.org/>
PREFIX gsp: <http://www.opengis.net/ont/geosparql#>
PREFIX sf: <http://www.opengis.net/ont/sf#>
PREFIX cp: <http://www.w3.org/2015/03/inspire/cp#>
PREFIX dul: <http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#>
PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>


SELECT DISTINCT ?nationalCadastralReference ?presence ?coords ?legalName ?OwnershipType ?startDate


WHERE
{ ?cp a prodm-cad:CadastralParcel;
prodm-com:hasPresence ?presence ;
prodm-cad:hasLandParcel ?teig;
cp:nationalCadastralReference ?nationalCadastralReference.
?teig a prodm-cad:LandParcel;
dul:part ?cp;
gsp:hasGeometry [ a sf:MultiPolygon;
gsp:asWKT ?coords ;].
?rr a prodm-cad:RealRights;
dul:defines ?cp;
dul:defines ?org;
prodm-cad:hasStartDate ?startDate;
dbo:type ?OwnershipType.
?org a prodm-cad:RightsHolderOrganization;
schema:legalName ?legalName .

FILTER (?presence = "1" || ?presence = "2")
FILTER (lang(?OwnershipType) = 'en')
}