Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DCAT Catalog Check
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open-Data
DCAT Catalog Check
Compare revisions
9abe4fad43a061d444582c86d1758cd9ec081dd6 to 6e8520ebf1280f4960fa23571a63c4d8e511bfab
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
opendata/dcat-catalog-check
Select target project
No results found
6e8520ebf1280f4960fa23571a63c4d8e511bfab
Select Git revision
Swap
Target
opendata/dcat-catalog-check
Select target project
opendata/dcat-catalog-check
1 result
9abe4fad43a061d444582c86d1758cd9ec081dd6
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (3)
corrected type in error message
· 4c89f785
Jesper Zedlitz
authored
3 months ago
4c89f785
check that the file could be read
· 8d8fe877
Jesper Zedlitz
authored
3 months ago
8d8fe877
added column for HTTP status and error message
· 6e8520eb
Jesper Zedlitz
authored
3 months ago
6e8520eb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
formats/geotiff_format.py
+4
-0
4 additions, 0 deletions
formats/geotiff_format.py
formats/wms_srvc_format.py
+1
-1
1 addition, 1 deletion
formats/wms_srvc_format.py
tools/generate_report.py
+5
-3
5 additions, 3 deletions
tools/generate_report.py
with
10 additions
and
4 deletions
formats/geotiff_format.py
View file @
6e8520eb
...
...
@@ -7,6 +7,10 @@ import os
def
is_geotiff
(
resource
,
file_name
):
dataset
=
gdal
.
Open
(
file_name
)
if
not
dataset
:
resource
[
"
error
"
]
=
f
"
could not read file
{
file_name
}
"
return
False
geotransform
=
dataset
.
GetGeoTransform
()
default_transform
=
(
0.0
,
1.0
,
0.0
,
0.0
,
0.0
,
1.0
)
...
...
This diff is collapsed.
Click to expand it.
formats/wms_srvc_format.py
View file @
6e8520eb
...
...
@@ -21,7 +21,7 @@ def _is_capabilites_response(resource, file):
return
True
else
:
resource
[
"
error
"
]
=
(
"
Root element is not {http://www.opengis.net/wm
ts/1.0
}WMS_Capabilities
"
"
Root element is not {http://www.opengis.net/wm
s
}WMS_Capabilities
"
)
return
False
except
Exception
as
e
:
...
...
This diff is collapsed.
Click to expand it.
tools/generate_report.py
View file @
6e8520eb
...
...
@@ -116,18 +116,20 @@ print("<h2>Distributionen with errors</h2>")
print
(
'
<table class=
"
table
"
id=
"
distributions
"
>
'
)
print
(
"
<thead><tr><th>Publisher</th><th>Format</th><th>a
vailable
</th><th>content correct</th><th>MIME type wrong</th><th>MIME type</th><th>checksum correct</th><th>schema valid</th><th>URL</th></tr>
"
"
<thead><tr><th>Publisher</th><th>Format</th><th>a
ccessible</th><th>HTTP status
</th><th>content correct</th><th>MIME type wrong</th><th>MIME type</th><th>checksum correct</th><th>schema valid</th><th>URL</th><
th>Error message</th><
/tr>
"
)
print
(
"
<tr>
"
)
print
(
'
<th><input type=
"
text
"
placeholder=
"
Filter by publisher
"
/></th>
'
)
print
(
'
<th><input type=
"
text
"
placeholder=
"
Filter by format
"
/></th>
'
)
print
(
'
<th><input type=
"
text
"
placeholder=
"
Filter by availability
"
/></th>
'
)
print
(
'
<th><input type=
"
text
"
placeholder=
"
Filter by accessibility
"
/></th>
'
)
print
(
'
<th><input type=
"
text
"
placeholder=
"
Filter by HTTP status
"
/></th>
'
)
print
(
'
<th><input type=
"
text
"
placeholder=
"
Filter by correct content
"
/></th>
'
)
print
(
'
<th><input type=
"
text
"
placeholder=
"
Filter by MIME type error
"
/></th>
'
)
print
(
'
<th><input type=
"
text
"
placeholder=
"
Filter by MIME type
"
/></th>
'
)
print
(
'
<th><input type=
"
text
"
placeholder=
"
Filter by checksum
"
/></th>
'
)
print
(
'
<th><input type=
"
text
"
placeholder=
"
Filter by schema valid
"
/></th>
'
)
print
(
'
<th><input type=
"
text
"
placeholder=
"
Filter by url
"
/></th>
'
)
print
(
'
<th><input type=
"
text
"
placeholder=
"
Filter by error message
"
/></th>
'
)
print
(
"
</tr>
"
)
print
(
"
</thead>
"
)
print
(
"
<tbody>
"
)
...
...
@@ -135,7 +137,7 @@ print("<tbody>")
for
dist
in
distributions_with_problems
:
entry
=
distributions_with_problems
[
dist
]
print
(
f
"
<tr><td>
{
entry
.
get
(
'
publisher
'
)
}
</td><td>
{
entry
.
get
(
'
format
'
)
}
</td><td>
{
entry
.
get
(
'
http_status
'
,
''
)
}
</td><td>
{
entry
.
get
(
'
valid
'
,
''
)
}
</td><td>
{
entry
.
get
(
'
mimetype_mismatch
'
,
''
)
}
</td><td>
{
entry
.
get
(
'
mimetype
'
,
''
)
}
</td><td>
{
entry
.
get
(
'
checksum_ok
'
,
''
)
}
</td><td>
{
entry
.
get
(
'
schema_valid
'
,
''
)
}
</td><td>
{
entry
.
get
(
'
url
'
)
}
</td></tr>
"
f
"
<tr><td>
{
entry
.
get
(
'
publisher
'
)
}
</td><td>
{
entry
.
get
(
'
format
'
)
}
</td><td>
{
entry
.
get
(
'
accessible
'
,
''
)
}
</td><td>
{
entry
.
get
(
'
http_status
'
,
''
)
}
</td><td>
{
entry
.
get
(
'
valid
'
,
''
)
}
</td><td>
{
entry
.
get
(
'
mimetype_mismatch
'
,
''
)
}
</td><td>
{
entry
.
get
(
'
mimetype
'
,
''
)
}
</td><td>
{
entry
.
get
(
'
checksum_ok
'
,
''
)
}
</td><td>
{
entry
.
get
(
'
schema_valid
'
,
''
)
}
</td><td>
{
entry
.
get
(
'
url
'
)
}
</td><
td>
{
entry
.
get
(
'
error
'
)
}
</td><
/tr>
"
)
print
(
"
</tbody></table>
"
)
...
...
This diff is collapsed.
Click to expand it.