Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision

Target

Select target project
  • opendata/dcat-catalog-check
1 result
Select Git revision
Show changes
Showing
with 752 additions and 9 deletions
......@@ -12,18 +12,25 @@ def _load_into_file(url):
return temp_file
def _is_capabilites_response(file):
def _is_capabilites_response(resource, file):
with open(file.name, "rb") as f:
try:
xml = ET.parse(f).getroot()
return xml.tag == "{http://www.opengis.net/wms}WMS_Capabilities"
except ET.ParseError:
if xml.tag == "{http://www.opengis.net/wms}WMS_Capabilities":
return True
else:
resource["error"] = (
"Root element is not {http://www.opengis.net/wms}WMS_Capabilities"
)
return False
except Exception as e:
resource["error"] = str(e)
return False
def is_valid(resource, file):
if _is_capabilites_response(file):
if _is_capabilites_response(resource, file):
return True
# The response is not a capabilites XML files. That is allowed.
......@@ -35,7 +42,12 @@ def is_valid(resource, file):
url = url + "?"
url = url + "service=WMS&request=GetCapabilities"
return _is_capabilites_response(_load_into_file(url))
try:
return _is_capabilites_response(resource, _load_into_file(url))
except Exception as e:
resource["error"] = str(e)
return False
else:
# The URL already contains a getCapabilites request but the result was not a correct answer.
return False
import xml.etree.ElementTree as ET
import requests
import tempfile
def _load_into_file(url):
response = requests.get(url)
response.raise_for_status()
with tempfile.NamedTemporaryFile(delete=False) as temp_file:
temp_file.write(response.content)
return temp_file
def _is_capabilites_response(resource, file):
with open(file.name, "rb") as f:
try:
xml = ET.parse(f).getroot()
if xml.tag == "{http://www.opengis.net/wmts/1.0}Capabilities":
return True
else:
resource["error"] = (
"Root element is not {http://www.opengis.net/wmts/1.0}WMS_Capabilities"
)
return False
except Exception as e:
resource["error"] = str(e)
return False
def is_valid(resource, file):
if _is_capabilites_response(resource, file):
return True
# The response is not a capabilites XML files. That is allowed.
# Let's add the request parameters to the URL and try again.
url = resource["url"]
if "request=" not in url.lower():
if not url.endswith("?"):
url = url + "?"
url = url + "service=WMTS&request=GetCapabilities"
try:
return _is_capabilites_response(resource, _load_into_file(url))
except Exception as e:
resource["error"] = str(e)
return False
else:
# The URL already contains a getCapabilites request but the result was not a correct answer.
return False
import zipfile
def is_valid(resource, file):
"""Check if the content is a XLSX file."""
if not zipfile.is_zipfile(file.name):
resource["error"] = "Not a ZIP file."
return False
with zipfile.ZipFile(file.name, "r") as zip_ref:
zip_contents = zip_ref.namelist()
required_files = ["xl/workbook.xml", "xl/styles.xml"]
if not all(file in zip_contents for file in required_files):
resource["error"] = "That does not look like an XLSX file."
return False
return True
import zipfile
def is_valid(resource, file):
"""Check if the file is a ZIP file."""
if not zipfile.is_zipfile(file.name):
resource["error"] = "Not a ZIP file."
return False
return True
......@@ -402,6 +402,30 @@ visidata = ["visidata (>=2.10)"]
wkt = ["tatsu (>=5.8.3)"]
zenodo = ["pyzenodo3 (>=1.0)"]
[[package]]
name = "gdal"
version = "3.6.2"
description = "GDAL: Geospatial Data Abstraction Library"
optional = false
python-versions = ">=3.6.0"
files = [
{file = "GDAL-3.6.2.tar.gz", hash = "sha256:a167cde1813707d91a938dad1a22f280f5ad28c45980d42e948fb8c59f890f5a"},
]
[package.extras]
numpy = ["numpy (>1.0.0)"]
[[package]]
name = "geojson"
version = "3.2.0"
description = "Python bindings and utilities for GeoJSON"
optional = false
python-versions = ">=3.7"
files = [
{file = "geojson-3.2.0-py3-none-any.whl", hash = "sha256:69d14156469e13c79479672eafae7b37e2dcd19bdfd77b53f74fa8fe29910b52"},
{file = "geojson-3.2.0.tar.gz", hash = "sha256:b860baba1e8c6f71f8f5f6e3949a694daccf40820fa8f138b3f712bd85804903"},
]
[[package]]
name = "geopandas"
version = "1.0.1"
......@@ -1784,4 +1808,4 @@ crypto-eth-addresses = ["eth-hash[pycryptodome] (>=0.7.0)"]
[metadata]
lock-version = "2.0"
python-versions = "^3.10"
content-hash = "5623eece30a81343a4c45540ab21121ad4059f42e96aea0941eb630dc659e791"
content-hash = "28cf723fd433a2a9f0c2d0c5dfd8bbfb6876d8de8b9e7faf93d0e0aeda5c458b"
......@@ -53,7 +53,7 @@ platforms:
- windows
releaseDate: '2024-12-19'
softwareType: standalone/other
softwareVersion: 1.0.0
softwareVersion: 1.1.0
url: 'https://code.schleswig-holstein.de/opendata/dcat-catalog-check'
usedBy:
- Open-Data-Portal Schleswig-Holstein
[tool.poetry]
name = "dcat-catalog-check"
version = "1.0.0"
version = "1.1.0"
description = "DCAT Catalog Check"
authors = [
"Jesper Zedlitz <jesper.zedlitz@stk.landsh.de>",
......@@ -21,6 +21,8 @@ pypdf = "^5.1.0"
pillow = "^11.0.0"
fiona = "^1.10.1"
pyarrow = "^18.1.0"
geojson = "^3.2.0"
gdal = "3.6.2"
[tool.poetry.group.dev.dependencies]
coverage = "^7.6.1"
......
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns:georss="http://www.georss.org/georss" xmlns:inspire_dls="http://inspire.ec.europa.eu/schemas/inspire_dls/1.0" xmlns:lang="ger" xmlns="http://www.w3.org/2005/Atom">
<title>ATOMFeed SH Feldblockfinder Schleswig-Holstein (Downloaddienst)</title>
<subtitle>Downloaddienst zur Bereitstellung der Feldblöcke, Landschaftselemente, GLÖZ 2- und Nitratkulisse in Schleswig-Holstein.</subtitle>
<link href="http://sh-mis.schleswig-holstein.de/soapServices/CSWStartup?service=CSW&amp;version=2.0.2&amp;request=GetRecordById&amp;outputschema=http://www.isotc211.org/2005/gmd&amp;elementsetname=full&amp;ID=cc68aa82-d71b-42bb-b5ce-7b850486a842" rel="describedby" type="application/xml"/>
<link href="https://service.gdi-sh.de/SH_OpenGBD/feeds/Atom_SH_Feldblockfinder_OpenGBD/Atom_SH_Feldblockfinder_OpenGBD.xml" rel="self" type="application/atom+xml" hreflang="ger" title="Selbstreferenz"/>
<link href="https://service.gdi-sh.de/SH_OpenGBD/feeds/Atom_SH_Feldblockfinder_OpenGBD/Atom_SH_Feldblockfinder_OpenGBD_OSD.xml" rel="search" type="application/opensearchdescription+xml" title="Open Search Beschreibung ATOMFeed SH Feldblockfinder Schleswig-Holstein (Downloaddienst)"/>
<id>https://service.gdi-sh.de/SH_OpenGBD/feeds/Atom_SH_Feldblockfinder_OpenGBD/Atom_SH_Feldblockfinder_OpenGBD.xml</id>
<updated>2023-08-22T12:00:00+01:00</updated>
<author>
<name>Landesamt für Vermessung und Geoinformation Schleswig-Holstein (Servicestelle DANord)</name>
<email>DANord@LVermGeo.landsh.de</email>
</author>
<entry>
<title>Feldblöcke SH 2024</title>
<inspire_dls:spatial_dataset_identifier_code>21f67269-780f-4f3c-8f66-03dde27acfe7</inspire_dls:spatial_dataset_identifier_code>
<inspire_dls:spatial_dataset_identifier_namespace>http://registry.gdi.de.org/id/de.sh/</inspire_dls:spatial_dataset_identifier_namespace>
<link rel="describedby" href="http://sh-mis.schleswig-holstein.de/soapServices/CSWStartup?service=CSW&amp;version=2.0.2&amp;request=GetRecordById&amp;outputschema=http://www.isotc211.org/2005/gmd&amp;elementsetname=full&amp;ID=21f67269-780f-4f3c-8f66-03dde27acfe7" type="application/xml"/>
<link rel="alternate" href="https://service.gdi-sh.de/SH_OpenGBD/feeds/Atom_SH_Feldblockfinder_OpenGBD/Atom_SH_Feldblockfinder_OpenGBD_21f67269-780f-4f3c-8f66-03dde27acfe7.xml" type="application/atom+xml" hreflang="ger" title="Feldblöcke SH 2024"/>
<id>https://service.gdi-sh.de/SH_OpenGBD/feeds/Atom_SH_Feldblockfinder_OpenGBD/Atom_SH_Feldblockfinder_OpenGBD_21f67269-780f-4f3c-8f66-03dde27acfe7.xml</id>
<updated>2023-08-22T12:00:00+01:00</updated>
<summary>Feldblöcke in Schleswig-Holstein für den Stichtag 01.01.2024.</summary>
<georss:polygon>53.35 7.86 55.05 7.86 55.05 11.35 53.35 11.35 53.35 7.86</georss:polygon>
<category term="http://www.opengis.net/def/crs/EPSG/0/4258" label="ETRS89"/>
</entry>
<entry>
<title>Landschaftselemente SH 2024</title>
<inspire_dls:spatial_dataset_identifier_code>c4ddc5b7-036c-4670-b5ed-445d1aa20a2a</inspire_dls:spatial_dataset_identifier_code>
<inspire_dls:spatial_dataset_identifier_namespace>http://registry.gdi.de.org/id/de.sh/</inspire_dls:spatial_dataset_identifier_namespace>
<link rel="describedby" href="http://sh-mis.schleswig-holstein.de/soapServices/CSWStartup?service=CSW&amp;version=2.0.2&amp;request=GetRecordById&amp;outputschema=http://www.isotc211.org/2005/gmd&amp;elementsetname=full&amp;ID=c4ddc5b7-036c-4670-b5ed-445d1aa20a2a" type="application/xml"/>
<link rel="alternate" href="https://service.gdi-sh.de/SH_OpenGBD/feeds/Atom_SH_Feldblockfinder_OpenGBD/Atom_SH_Feldblockfinder_OpenGBD_c4ddc5b7-036c-4670-b5ed-445d1aa20a2a.xml" type="application/atom+xml" hreflang="ger" title="Landschaftselemente SH 2024"/>
<id>https://service.gdi-sh.de/SH_OpenGBD/feeds/Atom_SH_Feldblockfinder_OpenGBD/Atom_SH_Feldblockfinder_OpenGBD_c4ddc5b7-036c-4670-b5ed-445d1aa20a2a.xml</id>
<updated>2023-08-22T12:00:00+01:00</updated>
<summary>Landschaftselemente in Schleswig Holstein zum Stichtag 01.01.2024.</summary>
<georss:polygon>53.35 7.86 55.05 7.86 55.05 11.35 53.35 11.35 53.35 7.86</georss:polygon>
<category term="http://www.opengis.net/def/crs/EPSG/0/4258" label="ETRS89"/>
</entry>
<entry>
<title>Feuchtgebiete und Moore ab 2 ha (GLÖZ 2) SH</title>
<inspire_dls:spatial_dataset_identifier_code>176bcfa1-7af2-4bd5-b4e3-2a6212b8fcd2</inspire_dls:spatial_dataset_identifier_code>
<inspire_dls:spatial_dataset_identifier_namespace>http://registry.gdi.de.org/id/de.sh/</inspire_dls:spatial_dataset_identifier_namespace>
<link rel="describedby" href="http://sh-mis.schleswig-holstein.de/soapServices/CSWStartup?service=CSW&amp;version=2.0.2&amp;request=GetRecordById&amp;outputschema=http://www.isotc211.org/2005/gmd&amp;elementsetname=full&amp;ID=176bcfa1-7af2-4bd5-b4e3-2a6212b8fcd2" type="application/xml"/>
<link rel="alternate" href="https://service.gdi-sh.de/SH_OpenGBD/feeds/Atom_SH_Feldblockfinder_OpenGBD/Atom_SH_Feldblockfinder_OpenGBD_176bcfa1-7af2-4bd5-b4e3-2a6212b8fcd2.xml" type="application/atom+xml" hreflang="ger" title="Feuchtgebiete und Moore ab 2 ha (GLÖZ 2) SH"/>
<id>https://service.gdi-sh.de/SH_OpenGBD/feeds/Atom_SH_Feldblockfinder_OpenGBD/Atom_SH_Feldblockfinder_OpenGBD_176bcfa1-7af2-4bd5-b4e3-2a6212b8fcd2.xml</id>
<updated>2023-08-18T12:00:00+01:00</updated>
<summary>Feuchtgebiete und Moore ab 2 ha (GLÖZ 2) in Schleswig-Holstein.</summary>
<georss:polygon>11.35 7.86 55.05 7.86 55.05 53.35 11.35 53.35 11.35 7.86</georss:polygon>
<category term="http://www.opengis.net/def/crs/EPSG/0/4258" label="ETRS89"/>
</entry>
<entry>
<title>Nitrat-belastete Gebiete nach LDüV in SH</title>
<inspire_dls:spatial_dataset_identifier_code>694bd2d9-3bea-4818-961c-25024acc0588</inspire_dls:spatial_dataset_identifier_code>
<inspire_dls:spatial_dataset_identifier_namespace>http://registry.gdi.de.org/id/de.sh/</inspire_dls:spatial_dataset_identifier_namespace>
<link rel="describedby" href="http://sh-mis.schleswig-holstein.de/soapServices/CSWStartup?service=CSW&amp;version=2.0.2&amp;request=GetRecordById&amp;outputschema=http://www.isotc211.org/2005/gmd&amp;elementsetname=full&amp;ID=694bd2d9-3bea-4818-961c-25024acc0588" type="application/xml"/>
<link rel="alternate" href="https://service.gdi-sh.de/SH_OpenGBD/feeds/Atom_SH_Feldblockfinder_OpenGBD/Atom_SH_Feldblockfinder_OpenGBD_694bd2d9-3bea-4818-961c-25024acc0588.xml" type="application/atom+xml" hreflang="ger" title="Nitrat-belastete Gebiete nach LDüV in SH"/>
<id>https://service.gdi-sh.de/SH_OpenGBD/feeds/Atom_SH_Feldblockfinder_OpenGBD/Atom_SH_Feldblockfinder_OpenGBD_694bd2d9-3bea-4818-961c-25024acc0588.xml</id>
<updated>2023-08-18T12:00:00+01:00</updated>
<summary>Nitrat-belastete Gebiete für das Jahr 2022 nach LDüV in SH.</summary>
<georss:polygon>11.35 7.86 55.05 7.86 55.05 53.35 11.35 53.35 11.35 7.86</georss:polygon>
<category term="http://www.opengis.net/def/crs/EPSG/0/4258" label="ETRS89"/>
</entry>
</feed>
<?xml version="1.0"?>
<Capabilities xmlns="http://www.opengis.net/wmts/1.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd" version="1.0.0">
<ows:ServiceIdentification>
<ows:Title>WMTS_SH_ALKIS</ows:Title>
<ows:Abstract>Flächendeckende Beschreibung der Angaben zu den Layern "Flurstücke", "Gebäude" sowie zu den Gruppierungen "Tatsächliche Nutzung" und "Gesetzliche Festlegungen" gemäß der entsprechenden Objektbereiche im ALKIS-Objektartenkatalog. Die Gruppierung "Weiteres" ist optional und enthält die Objektbereiche "Bauwerke und Einrichtungen" sowie "Relief". Alle ALKIS-Objekte des Grunddatenbestandes (ausser Grenzpunkte und Netzpunkte) sind Pflichtinhalte. Alle weiteren ALKIS-Objekte können optional geführt werden. Die Präsentation der ALKIS-Daten erfolgt grundsätzlich nach dem ALKIS-Signaturenkatalog für AdV-Standardausgaben. Soweit im Signaturenkatalog festgelegt, stehen für alle Layer Darstellungen in Farbe zur Verfügung. Für "Flurstücke" und "Gebäude" werden zusätzlich Darstellungen in Grausstufen (entsprechend Signaturenkatalog) und in Gelb (keine Flächendarstellung, nur Konturen) angeboten.</ows:Abstract>
<ows:Keywords>
<ows:Keyword>WMS</ows:Keyword>
<ows:Keyword>Landesamt für Vermessung ung Geoinformation Schleswig-Holstein</ows:Keyword>
<ows:Keyword>LVermGeo SH</ows:Keyword>
<ows:Keyword>AdV</ows:Keyword>
<ows:Keyword>ALKIS</ows:Keyword>
<ows:Keyword>opendata</ows:Keyword>
</ows:Keywords>
<ows:ServiceType>OGC WMTS</ows:ServiceType>
<ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
<ows:Fees>Für die Nutzung der Daten ist die Creative Commons (CC BY 4.0) – Namensnennung 4.0 International anzuwenden. Die Lizenz ist über http://creativecommons.org/licenses/by/4.0 abrufbar. Der Quellenvermerk lautet "© GeoBasis-DE/LVermGeo SH/CC BY 4.0" ||{"id":"cc-by/4.0","name":"Creative Commons Namensnennung – 4.0 International (CC BY 4.0)","url":"http://creativecommons.org/licenses/by/4.0/","quelle":"© GeoBasis-DE/LVermGeo SH/CC BY 4.0"}</ows:Fees>
<ows:AccessConstraints>NONE</ows:AccessConstraints>
</ows:ServiceIdentification>
<ows:ServiceProvider>
<ows:ProviderName>Landesamt für Vermessung und Geoinformation Schleswig-Holstein (LVermGeo SH)</ows:ProviderName>
<ows:ProviderSite xlink:href="http://www.schleswig-holstein.de/DE/Landesregierung/LVERMGEOSH/lvermgeosh_node.html"/>
<ows:ServiceContact>
<ows:IndividualName>Servicestelle Geoserver</ows:IndividualName>
<ows:PositionName></ows:PositionName>
<ows:ContactInfo>
<ows:Phone>
<ows:Voice>+49 (0)431 383-2019</ows:Voice>
<ows:Facsimile>+49 (0)431 988624-2019</ows:Facsimile>
</ows:Phone>
<ows:Address>
<ows:DeliveryPoint>Landesamt für Vermessung und Geoinformation Schleswig-Holstein (LVermGeo SH)</ows:DeliveryPoint>
<ows:City>Kiel</ows:City>
<ows:PostalCode>24106</ows:PostalCode>
<ows:Country>Germany</ows:Country>
<ows:ElectronicMailAddress>Geoserver@LVermGeo.landsh.de</ows:ElectronicMailAddress>
</ows:Address>
</ows:ContactInfo>
</ows:ServiceContact>
</ows:ServiceProvider>
<Contents>
<Layer>
<ows:Title>SH_ALKIS</ows:Title>
<ows:Abstract></ows:Abstract>
<ows:WGS84BoundingBox>
<ows:LowerCorner>0.10594674240568917 45.237542736025574</ows:LowerCorner>
<ows:UpperCorner>20.448891294525673 56.84787345153812</ows:UpperCorner>
</ows:WGS84BoundingBox>
<ows:Identifier>SH_ALKIS</ows:Identifier>
<Style>
<ows:Identifier>default</ows:Identifier>
<LegendURL
format="image/png"
xlink:href="https://dienste.gdi-sh.de//WMTS_SH_ALKIS_OpenGBD/service?service=WMS&amp;request=GetLegendGraphic&amp;version=1.3.0&amp;format=image%2Fpng&amp;layer=SH_ALKIS"
/>
</Style>
<Format>image/png</Format>
<TileMatrixSetLink>
<TileMatrixSet>DE_EPSG_25832_ADV</TileMatrixSet>
</TileMatrixSetLink>
<ResourceURL format="image/png" resourceType="tile"
template="https://dienste.gdi-sh.de//WMTS_SH_ALKIS_OpenGBD/wmts/SH_ALKIS/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png"/>
</Layer>
<TileMatrixSet>
<ows:Identifier>DE_EPSG_25832_ADV</ows:Identifier>
<ows:SupportedCRS>EPSG:25832</ows:SupportedCRS>
<TileMatrix>
<ows:Identifier>00</ows:Identifier>
<ScaleDenominator>4265.4591676995715</ScaleDenominator>
<TopLeftCorner>-46133.17 6301219.54</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>4096</MatrixWidth>
<MatrixHeight>4096</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>01</ows:Identifier>
<ScaleDenominator>2132.729583849782</ScaleDenominator>
<TopLeftCorner>-46133.17 6301219.54</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>8192</MatrixWidth>
<MatrixHeight>8192</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>02</ows:Identifier>
<ScaleDenominator>1066.3647919248929</ScaleDenominator>
<TopLeftCorner>-46133.17 6301219.54</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>16384</MatrixWidth>
<MatrixHeight>16384</MatrixHeight>
</TileMatrix>
</TileMatrixSet>
</Contents>
<ServiceMetadataURL xlink:href="https://dienste.gdi-sh.de//WMTS_SH_ALKIS_OpenGBD/wmts/1.0.0/WMTSCapabilities.xml"/>
</Capabilities>
\ No newline at end of file
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
<https://example.org/dataset/c0b08e27-c2a1-4602-83fc-961f0f50190c> a dcat:Dataset ;
dcterms:identifier "c0b08e27-c2a1-4602-83fc-961f0f50190c" ;
dcterms:title "all test files" ;
dcterms:publisher [
a foaf:Organization;
foaf:name "Test" ;
] ;
dcat:distribution [ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/ATOM> ;
dcat:downloadURL <http://localhost:8000/tests/data/Atom_SH_Feldblockfinder_OpenGBD.xml> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/TXT> ;
dcat:downloadURL <http://localhost:8000/tests/data/text.txt> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/CSV> ;
dcat:downloadURL <http://localhost:8000/tests/data/ufo.csv> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/GEOJSON> ;
dcat:downloadURL <http://localhost:8000/tests/data/bermuda.geojson> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/JSON> ;
dcat:downloadURL <http://localhost:8000/tests/data/ufo-resource.json> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/JSON> ;
dcat:downloadURL <http://localhost:8000/tests/data/ufo-schema.json> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/RDF> ;
dcat:downloadURL <http://localhost:8000/tests/data/ufo.ttl> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/DOCX> ;
dcat:downloadURL <http://localhost:8000/tests/data/valid.docx> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/GEOTIFF> ;
dcat:downloadURL <http://localhost:8000/tests/data/valid_geotiff.tif> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/ODS> ;
dcat:downloadURL <http://localhost:8000/tests/data/valid.ods> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/ODT> ;
dcat:downloadURL <http://localhost:8000/tests/data/valid.odt> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/XML> ;
dcat:downloadURL <http://localhost:8000/tests/data/correct.xml> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/PARQUET> ;
dcat:downloadURL <http://localhost:8000/tests/data/valid.parquet> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/TIFF> ;
dcat:downloadURL <http://localhost:8000/tests/data/valid.tif> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/XLSX> ;
dcat:downloadURL <http://localhost:8000/tests/data/valid.xlsx> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/GML> ;
dcat:downloadURL <http://localhost:8000/tests/data/bermuda.gml> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/WMTS_SRVC> ;
dcat:downloadURL <http://localhost:8000/tests/data/WMTSCapabilities.xml> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/SHP> ;
dcat:downloadURL <http://localhost:8000/tests/data/zos116.zip> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/SHP> ;
dcat:downloadURL <http://localhost:8000/tests/data/bermuda-with-subdir.zip> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/SHP> ;
dcat:downloadURL <http://localhost:8000/tests/data/bermuda.zip> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/JSON> ;
dcat:downloadURL <http://localhost:8000/tests/data/correct.json> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/JSON> ;
dcat:downloadURL <http://localhost:8000/tests/data/correct.json.bz2> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/GEOTIFF> ;
dcat:downloadURL <http://localhost:8000/tests/data/geotiff.zip> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/JSON> ;
dcat:compressFormat <http://www.iana.org/assignments/media-types/application/gzip> ;
dcat:downloadURL <http://localhost:8000/tests/data/correct.json.gz> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/JSON> ;
dcat:downloadURL <http://localhost:8000/tests/data/correct.json.xz> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/PNG> ;
dcat:downloadURL <http://localhost:8000/tests/data/image.png> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/JSON> ;
dcat:downloadURL <http://localhost:8000/tests/data/json-in-zip.zip> ;
dcat:packageFormat <http://publications.europa.eu/resource/authority/file-type/ZIP> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/JSON> ;
dcat:downloadURL <http://localhost:8000/tests/data/jsons-in-zip.zip> ;
dcat:packageFormat <http://publications.europa.eu/resource/authority/file-type/ZIP> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/PNG> ;
dcat:downloadURL <http://localhost:8000/tests/data/png-in-zip.zip> ;
dcat:packageFormat <http://publications.europa.eu/resource/authority/file-type/ZIP> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/RDF> ;
dcat:downloadURL <http://localhost:8000/tests/data/rdf.json> ],
[ a dcat:Distribution ;
dcterms:format <http://publications.europa.eu/resource/authority/file-type/RDF> ;
dcat:downloadURL <http://localhost:8000/tests/data/rdf.xml> ] .
File added
tests/data/image.jpeg

525 B

[
{
"@id": "https://example.org/dataset/87e42608-769f-4ca8-8593-7546a027b2b8",
"@type": [
"http://www.w3.org/ns/dcat#Dataset"
],
"http://purl.org/dc/terms/accessRights": [
{
"@id": "http://publications.europa.eu/resource/authority/access-right/PUBLIC"
}
],
"http://purl.org/dc/terms/description": [
{
"@value": "Anzahl täglicher Landungen und Starts unbekannter Flugobjekte (UFOs) in Schleswig-Holstein. 🛸👽\n##Methodik\nGezählt werden nur die Landungen und Starts von UFOs, die gemeldet und zusätzlich offiziell bestätigt wurden. Sichtungen, die zu keinem Bodenkontakt führen, werden nicht gezählt.\n##Attribute\n- `datum` - Datum\n- `ufo_landungen` - Anzahl UFO-Landungen\n- `ufo_starts` - Anzahl UFO-Starts\n"
}
],
"http://purl.org/dc/terms/identifier": [
{
"@value": "87e42608-769f-4ca8-8593-7546a027b2b8"
}
],
"http://purl.org/dc/terms/issued": [
{
"@type": "http://www.w3.org/2001/XMLSchema#dateTime",
"@value": "2024-06-18T07:20:05.693344"
}
],
"http://purl.org/dc/terms/license": [
{
"@id": "http://dcat-ap.de/def/licenses/cc-zero"
}
],
"http://purl.org/dc/terms/modified": [
{
"@type": "http://www.w3.org/2001/XMLSchema#dateTime",
"@value": "2024-06-18T07:20:05.693344"
}
],
"http://purl.org/dc/terms/publisher": [
{
"@id": "https://example.org/organization/ufo-kontrolle"
}
],
"http://purl.org/dc/terms/spatial": [
{
"@id": "http://dcat-ap.de/def/politicalGeocoding/stateKey/01"
}
],
"http://purl.org/dc/terms/temporal": [
{
"@id": "_:n1fa3c2476143497285348e0c39705837b1"
}
],
"http://purl.org/dc/terms/title": [
{
"@value": "Bestätigte UFO-Landungen und -Starts"
}
],
"http://www.w3.org/ns/dcat#distribution": [
{
"@id": "_:n1fa3c2476143497285348e0c39705837b4"
},
{
"@id": "_:n1fa3c2476143497285348e0c39705837b2"
}
],
"http://www.w3.org/ns/dcat#keyword": [
{
"@value": "Weltall"
},
{
"@value": "Start"
},
{
"@value": "Landung"
},
{
"@value": "Raumschiff"
},
{
"@value": "UFO"
},
{
"@value": "Testdaten"
}
],
"http://www.w3.org/ns/dcat#theme": [
{
"@id": "http://publications.europa.eu/resource/authority/data-theme/INTL"
}
]
},
{
"@id": "_:n1fa3c2476143497285348e0c39705837b4",
"@type": [
"http://www.w3.org/ns/dcat#Distribution"
],
"http://purl.org/dc/terms/format": [
{
"@id": "http://publications.europa.eu/resource/authority/file-type/JSON"
}
],
"http://purl.org/dc/terms/issued": [
{
"@type": "http://www.w3.org/2001/XMLSchema#dateTime",
"@value": "2024-06-18T05:20:07.232559"
}
],
"http://purl.org/dc/terms/license": [
{
"@id": "http://dcat-ap.de/def/licenses/cc-zero"
}
],
"http://purl.org/dc/terms/modified": [
{
"@type": "http://www.w3.org/2001/XMLSchema#dateTime",
"@value": "2024-06-18T05:20:07.191976"
}
],
"http://purl.org/dc/terms/rights": [
{
"@id": "http://dcat-ap.de/def/licenses/cc-zero"
}
],
"http://purl.org/dc/terms/title": [
{
"@value": "Frictionless Data Resource"
}
],
"http://spdx.org/rdf/terms#checksum": [
{
"@id": "_:n1fa3c2476143497285348e0c39705837b5"
}
],
"http://www.w3.org/ns/dcat#accessURL": [
{
"@id": "http://localhost:8000/ufo-resource.json"
}
],
"http://www.w3.org/ns/dcat#byteSize": [
{
"@type": "http://www.w3.org/2001/XMLSchema#integer",
"@value": 487
}
],
"http://www.w3.org/ns/dcat#downloadURL": [
{
"@id": "http://localhost:8000/ufo-resource.json"
}
],
"http://www.w3.org/ns/dcat#mediaType": [
{
"@id": "https://www.iana.org/assignments/media-types/application/csv"
}
]
},
{
"@id": "_:n1fa3c2476143497285348e0c39705837b5",
"@type": [
"http://spdx.org/rdf/terms#Checksum"
],
"http://spdx.org/rdf/terms#algorithm": [
{
"@id": "http://spdx.org/rdf/terms#checksumAlgorithm_md5"
}
],
"http://spdx.org/rdf/terms#checksumValue": [
{
"@type": "http://www.w3.org/2001/XMLSchema#hexBinary",
"@value": "8dca8b179bbe0d46c5004da5112f6c4c"
}
]
},
{
"@id": "_:n1fa3c2476143497285348e0c39705837b2",
"@type": [
"http://www.w3.org/ns/dcat#Distribution"
],
"http://purl.org/dc/terms/format": [
{
"@id": "http://publications.europa.eu/resource/authority/file-type/CSV"
}
],
"http://purl.org/dc/terms/issued": [
{
"@type": "http://www.w3.org/2001/XMLSchema#dateTime",
"@value": "2024-06-18T05:20:07.232559"
}
],
"http://purl.org/dc/terms/license": [
{
"@id": "http://dcat-ap.de/def/licenses/cc-zero"
}
],
"http://purl.org/dc/terms/modified": [
{
"@type": "http://www.w3.org/2001/XMLSchema#dateTime",
"@value": "2024-06-18T05:20:07.191976"
}
],
"http://purl.org/dc/terms/rights": [
{
"@id": "http://dcat-ap.de/def/licenses/cc-zero"
}
],
"http://purl.org/dc/terms/title": [
{
"@value": "ufo.csv"
}
],
"http://spdx.org/rdf/terms#checksum": [
{
"@id": "_:n1fa3c2476143497285348e0c39705837b3"
}
],
"http://www.w3.org/ns/dcat#accessURL": [
{
"@id": "http://localhost:8000/ufo.csv"
}
],
"http://www.w3.org/ns/dcat#byteSize": [
{
"@type": "http://www.w3.org/2001/XMLSchema#integer",
"@value": 151
}
],
"http://www.w3.org/ns/dcat#downloadURL": [
{
"@id": "http://localhost:8000/ufo.csv"
}
],
"http://www.w3.org/ns/dcat#mediaType": [
{
"@id": "https://www.iana.org/assignments/media-types/application/csv"
}
]
},
{
"@id": "_:n1fa3c2476143497285348e0c39705837b3",
"@type": [
"http://spdx.org/rdf/terms#Checksum"
],
"http://spdx.org/rdf/terms#algorithm": [
{
"@id": "http://spdx.org/rdf/terms#checksumAlgorithm_sha1"
}
],
"http://spdx.org/rdf/terms#checksumValue": [
{
"@type": "http://www.w3.org/2001/XMLSchema#hexBinary",
"@value": "3ffba0a43d3497a7918b376a335c31fbecc9325b"
}
]
},
{
"@id": "_:n1fa3c2476143497285348e0c39705837b1",
"@type": [
"http://purl.org/dc/terms/PeriodOfTime"
],
"http://www.w3.org/ns/dcat#endDate": [
{
"@type": "http://www.w3.org/2001/XMLSchema#date",
"@value": "2024-06-17"
}
],
"http://www.w3.org/ns/dcat#startDate": [
{
"@type": "http://www.w3.org/2001/XMLSchema#date",
"@value": "2024-06-10"
}
]
}
]
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
xmlns:dcat="http://www.w3.org/ns/dcat#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:spdx="http://spdx.org/rdf/terms#"
>
<rdf:Description rdf:about="https://example.org/dataset/87e42608-769f-4ca8-8593-7546a027b2b8">
<rdf:type rdf:resource="http://www.w3.org/ns/dcat#Dataset"/>
<dcterms:accessRights rdf:resource="http://publications.europa.eu/resource/authority/access-right/PUBLIC"/>
<dcterms:description>Anzahl täglicher Landungen und Starts unbekannter Flugobjekte (UFOs) in Schleswig-Holstein. 🛸👽
##Methodik
Gezählt werden nur die Landungen und Starts von UFOs, die gemeldet und zusätzlich offiziell bestätigt wurden. Sichtungen, die zu keinem Bodenkontakt führen, werden nicht gezählt.
##Attribute
- `datum` - Datum
- `ufo_landungen` - Anzahl UFO-Landungen
- `ufo_starts` - Anzahl UFO-Starts
</dcterms:description>
<dcterms:identifier>87e42608-769f-4ca8-8593-7546a027b2b8</dcterms:identifier>
<dcterms:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2024-06-18T07:20:05.693344</dcterms:issued>
<dcterms:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2024-06-18T07:20:05.693344</dcterms:modified>
<dcterms:license rdf:resource="http://dcat-ap.de/def/licenses/cc-zero"/>
<dcterms:publisher rdf:resource="https://example.org/organization/ufo-kontrolle"/>
<dcterms:spatial rdf:resource="http://dcat-ap.de/def/politicalGeocoding/stateKey/01"/>
<dcterms:temporal rdf:nodeID="n6747fd43db2143cca14c39970555b181b1"/>
<dcterms:title>Bestätigte UFO-Landungen und -Starts</dcterms:title>
<dcat:distribution rdf:nodeID="n6747fd43db2143cca14c39970555b181b2"/>
<dcat:distribution rdf:nodeID="n6747fd43db2143cca14c39970555b181b4"/>
<dcat:keyword>UFO</dcat:keyword>
<dcat:keyword>Landung</dcat:keyword>
<dcat:keyword>Start</dcat:keyword>
<dcat:keyword>Raumschiff</dcat:keyword>
<dcat:keyword>Weltall</dcat:keyword>
<dcat:keyword>Testdaten</dcat:keyword>
<dcat:theme rdf:resource="http://publications.europa.eu/resource/authority/data-theme/INTL"/>
</rdf:Description>
<rdf:Description rdf:nodeID="n6747fd43db2143cca14c39970555b181b4">
<rdf:type rdf:resource="http://www.w3.org/ns/dcat#Distribution"/>
<dcterms:format rdf:resource="http://publications.europa.eu/resource/authority/file-type/JSON"/>
<dcterms:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2024-06-18T05:20:07.232559</dcterms:issued>
<dcterms:license rdf:resource="http://dcat-ap.de/def/licenses/cc-zero"/>
<dcterms:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2024-06-18T05:20:07.191976</dcterms:modified>
<dcterms:rights rdf:resource="http://dcat-ap.de/def/licenses/cc-zero"/>
<dcterms:title>Frictionless Data Resource</dcterms:title>
<spdx:checksum rdf:nodeID="n6747fd43db2143cca14c39970555b181b5"/>
<dcat:accessURL rdf:resource="http://localhost:8000/ufo-resource.json"/>
<dcat:byteSize rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">487</dcat:byteSize>
<dcat:downloadURL rdf:resource="http://localhost:8000/ufo-resource.json"/>
<dcat:mediaType rdf:resource="https://www.iana.org/assignments/media-types/application/csv"/>
</rdf:Description>
<rdf:Description rdf:nodeID="n6747fd43db2143cca14c39970555b181b2">
<rdf:type rdf:resource="http://www.w3.org/ns/dcat#Distribution"/>
<dcterms:format rdf:resource="http://publications.europa.eu/resource/authority/file-type/CSV"/>
<dcterms:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2024-06-18T05:20:07.232559</dcterms:issued>
<dcterms:license rdf:resource="http://dcat-ap.de/def/licenses/cc-zero"/>
<dcterms:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2024-06-18T05:20:07.191976</dcterms:modified>
<dcterms:rights rdf:resource="http://dcat-ap.de/def/licenses/cc-zero"/>
<dcterms:title>ufo.csv</dcterms:title>
<spdx:checksum rdf:nodeID="n6747fd43db2143cca14c39970555b181b3"/>
<dcat:accessURL rdf:resource="http://localhost:8000/ufo.csv"/>
<dcat:byteSize rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">151</dcat:byteSize>
<dcat:downloadURL rdf:resource="http://localhost:8000/ufo.csv"/>
<dcat:mediaType rdf:resource="https://www.iana.org/assignments/media-types/application/csv"/>
</rdf:Description>
<rdf:Description rdf:nodeID="n6747fd43db2143cca14c39970555b181b5">
<rdf:type rdf:resource="http://spdx.org/rdf/terms#Checksum"/>
<spdx:algorithm rdf:resource="http://spdx.org/rdf/terms#checksumAlgorithm_md5"/>
<spdx:checksumValue rdf:datatype="http://www.w3.org/2001/XMLSchema#hexBinary">8dca8b179bbe0d46c5004da5112f6c4c</spdx:checksumValue>
</rdf:Description>
<rdf:Description rdf:nodeID="n6747fd43db2143cca14c39970555b181b3">
<rdf:type rdf:resource="http://spdx.org/rdf/terms#Checksum"/>
<spdx:algorithm rdf:resource="http://spdx.org/rdf/terms#checksumAlgorithm_sha1"/>
<spdx:checksumValue rdf:datatype="http://www.w3.org/2001/XMLSchema#hexBinary">3ffba0a43d3497a7918b376a335c31fbecc9325b</spdx:checksumValue>
</rdf:Description>
<rdf:Description rdf:nodeID="n6747fd43db2143cca14c39970555b181b1">
<rdf:type rdf:resource="http://purl.org/dc/terms/PeriodOfTime"/>
<dcat:endDate rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2024-06-17</dcat:endDate>
<dcat:startDate rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2024-06-10</dcat:startDate>
</rdf:Description>
</rdf:RDF>
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
{
"name": "ufo",
"type": "table",
"path": "http://localhost:8000/ufo.csv",
"path": "tests/data/ufo.csv",
"format": "csv",
"mediatype": "text/csv",
"encoding": "utf-8",
......
File added
File added
File added
File added