five

NUTS-RDF in GeoSPARQL

收藏
Zenodo2022-09-05 更新2026-05-25 收录
下载链接:
https://zenodo.org/record/6514295
下载链接
链接失效反馈
官方服务:
资源简介:
The NUTS (Nomenclature of territorial units for statistics classification) representing the regions in the EU have been converted from NeoGeo to GeoSPARQL structures using a Construct SPARQL query. The purpose of the conversion is to enable GeoSPARQL spatial reasoning features for geometry-based queries. The nuts-rdf file used as input in the conversion process is http://nuts.geovocab.org/data/0.91/nuts-rdf-0.91.ttl, which contains a dump from all the regions in the EU defined in 2013. The nuts-rdf file has been uploaded to a triplestore, and then, the following Construct SPARQL query was run to generate the EU-nuts-rdf-geosparql.ttl file. PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;<br> PREFIX nuts: &lt;http://nuts.geovocab.org/id/&gt;<br> PREFIX ngeo: &lt;http://geovocab.org/geometry#&gt;<br> PREFIX geo: &lt;http://www.w3.org/2003/01/geo/wgs84_pos#&gt;<br> PREFIX geosparql: &lt;http://www.opengis.net/ont/geosparql#&gt;<br> PREFIX dc: &lt;http://purl.org/dc/elements/1.1/&gt;<br> PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;<br> PREFIX ramon: &lt;http://rdfdata.eionet.europa.eu/ramon/ontology/&gt; CONSTRUCT { <br> ?entity a geosparql:Feature ;<br> geosparql:hasGeometry ?entityGeo ;<br> rdfs:label ?label ;<br> ramon:name ?name ;<br> ramon:level ?level ;<br> ramon:code ?code .<br> ?entityGeo a geosparql:Geometry ;<br> dc:rights ?entityrights ;<br> geosparql:asWKT ?polygon .<br> }<br> WHERE {<br> {<br> SELECT ?entity (GROUP_CONCAT(?lonlatpair; separator=", ") AS ?lonlatlist)<br> WHERE {<br> {<br> SELECT ?entity ?list<br> WHERE{<br> ?entity ngeo:geometry/ngeo:exterior/ngeo:posList ?list .<br> }<br> }<br> ?list rdf:rest* [ rdf:first ?item ] .<br> ?item geo:long ?lon ;<br> geo:lat ?lat .<br> BIND(CONCAT(?lon, " ", ?lat) AS ?lonlatpair)<br> }<br> GROUP BY ?entity<br> }<br> # Get entity descriptors<br> ?entity ngeo:geometry/dc:rights ?entityrights .<br> ?entity rdfs:label ?label ;<br> ramon:name ?name ;<br> ramon:level ?level ;<br> ramon:code ?code .<br> # Define uri for the geometry<br> BIND(IRI(CONCAT(STR(?entity), "-geo")) AS ?entityGeo)<br> BIND(STRDT(CONCAT("POLYGON ((",STR(?lonlatlist), "))"), geosparql:wktLiteral)AS ?polygon)<br> }
提供机构:
Zenodo
创建时间:
2022-05-03
二维码
社区交流群
二维码
科研交流群
商业服务