Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ckanext-odsh
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
ckanext-odsh
Commits
f395deea
Commit
f395deea
authored
1 year ago
by
Thorge Petersen
Browse files
Options
Downloads
Patches
Plain Diff
Updated file formats authority data
parent
ad96de12
No related branches found
No related tags found
1 merge request
!41
Version 2.0.0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ckanext/odsh/validation.py
+1
-1
1 addition, 1 deletion
ckanext/odsh/validation.py
fileformats.rdf
+25
-9
25 additions, 9 deletions
fileformats.rdf
with
26 additions
and
10 deletions
ckanext/odsh/validation.py
+
1
−
1
View file @
f395deea
...
...
@@ -363,7 +363,7 @@ def validate_formats(data, errors):
if
not
data
:
raise
toolkit
.
Invalid
(
'
Missing format.
'
)
if
not
data
.
upper
()
in
[
'
7Z
'
,
'
AAB
'
,
'
AAC
'
,
'
AKN4EU
'
,
'
AKN4EU_ZIP
'
,
'
APK
'
,
'
APPX
'
,
'
ARC
'
,
'
ARC
_GZ
'
,
'
ARCINFO_COV
'
,
'
ARJ
'
,
'
ATOM
'
,
'
AZW
'
,
'
BIN
'
,
'
BITS
'
,
'
BMP
'
,
'
BWF
'
,
'
BZIP2
'
,
'
CSS
'
,
'
CSV
'
,
'
DBF
'
,
'
DCR
'
,
'
DEB
'
,
'
DGN
'
,
'
DMG
'
,
'
DMP
'
,
'
DOC
'
,
'
DOCX
'
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
'
XLSB
'
,
'
XLSM
'
,
'
XLSX
'
,
'
XML
'
,
'
XSLFO
'
,
'
XSLT
'
,
'
XYZ
'
,
'
XZ
'
,
'
YAML
'
,
'
Z
'
,
'
ZIP
'
]:
raise
toolkit
.
Invalid
(
_
(
'
Only formats on the list of the EU Publications Office are allowed.
'
))
return
data
...
...
This diff is collapsed.
Click to expand it.
fileformats.rdf
+
25
−
9
View file @
f395deea
...
...
@@ -4,7 +4,7 @@
xmlns:rdfs=
"http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl=
"http://www.w3.org/2002/07/owl#"
xmlns:skos=
"http://www.w3.org/2004/02/skos/core#"
xmlns:
ns4
=
"http://purl.org/dc/terms/"
xmlns:
dcterms
=
"http://purl.org/dc/terms/"
xmlns:ns5=
"http://www.w3.org/2008/05/skos-xl#"
xmlns:ns6=
"http://publications.europa.eu/ontology/authority/"
>
<rdf:Description
rdf:about=
"http://publications.europa.eu/resource/authority/file-type/ZIP"
>
...
...
@@ -37,15 +37,15 @@
<rdfs:label
xml:lang=
"en"
>
File type
</rdfs:label>
<owl:imports
rdf:resource=
"http://publications.europa.eu/ontology/euvoc"
/>
<rdfs:comment
rdf:datatype=
"http://www.w3.org/2000/01/rdf-schema#Literal"
>
File type
</rdfs:comment>
<owl:versionInfo>
202
206
15-0
</owl:versionInfo>
<owl:versionInfo>
202
303
15-0
</owl:versionInfo>
<skos:prefLabel
xml:lang=
"en"
>
File type
</skos:prefLabel>
<
ns4
:title
xml:lang=
"en"
>
File type
</
ns4
:title>
<
ns4
:identifier>
http://publications.europa.eu/resource/authority/file-type
</
ns4
:identifier>
<ns5:prefLabel
rdf:nodeID=
"b1
14910810
"
/>
<
dcterms
:title
xml:lang=
"en"
>
File type
</
dcterms
:title>
<
dcterms
:identifier>
http://publications.europa.eu/resource/authority/file-type
</
dcterms
:identifier>
<ns5:prefLabel
rdf:nodeID=
"b1
43364283
"
/>
<ns6:prefLabel
xml:lang=
"en"
>
File type
</ns6:prefLabel>
<ns6:table.id>
file-type
</ns6:table.id>
<ns6:table.version.number>
202
206
15-0
</ns6:table.version.number>
<owl:versionIRI
rdf:resource=
"http://publications.europa.eu/resource/authority/file-type/202
206
15-0"
/>
<ns6:table.version.number>
202
303
15-0
</ns6:table.version.number>
<owl:versionIRI
rdf:resource=
"http://publications.europa.eu/resource/authority/file-type/202
303
15-0"
/>
</rdf:Description>
<rdf:Description
rdf:about=
"http://publications.europa.eu/resource/authority/file-type/ARC"
>
<skos:inScheme
rdf:resource=
"http://publications.europa.eu/resource/authority/file-type"
/>
...
...
@@ -815,4 +815,20 @@
<skos:inScheme
rdf:resource=
"http://publications.europa.eu/resource/authority/file-type"
/>
<skos:topConceptOf
rdf:resource=
"http://publications.europa.eu/resource/authority/file-type"
/>
</rdf:Description>
<rdf:Description
rdf:about=
"http://publications.europa.eu/resource/authority/file-type/GTFS"
>
<skos:inScheme
rdf:resource=
"http://publications.europa.eu/resource/authority/file-type"
/>
<skos:topConceptOf
rdf:resource=
"http://publications.europa.eu/resource/authority/file-type"
/>
</rdf:Description>
<rdf:Description
rdf:about=
"http://publications.europa.eu/resource/authority/file-type/YAML"
>
<skos:inScheme
rdf:resource=
"http://publications.europa.eu/resource/authority/file-type"
/>
<skos:topConceptOf
rdf:resource=
"http://publications.europa.eu/resource/authority/file-type"
/>
</rdf:Description>
<rdf:Description
rdf:about=
"http://publications.europa.eu/resource/authority/file-type/EFORMS_XML"
>
<skos:inScheme
rdf:resource=
"http://publications.europa.eu/resource/authority/file-type"
/>
<skos:topConceptOf
rdf:resource=
"http://publications.europa.eu/resource/authority/file-type"
/>
</rdf:Description>
<rdf:Description
rdf:about=
"http://publications.europa.eu/resource/authority/file-type/WEBP"
>
<skos:inScheme
rdf:resource=
"http://publications.europa.eu/resource/authority/file-type"
/>
<skos:topConceptOf
rdf:resource=
"http://publications.europa.eu/resource/authority/file-type"
/>
</rdf:Description>
</rdf:RDF>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment