Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
1ac8e58e
Commit
1ac8e58e
authored
Jun 18, 2021
by
Markus Scheidgen
Browse files
Minor fixes of wrong DCAT schema names.
parent
fa17c165
Pipeline
#103915
passed with stages
in 28 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nomad/app/flask/dcat/mapping.py
View file @
1ac8e58e
...
...
@@ -92,7 +92,7 @@ class Mapping():
if
slim
:
return
dataset
self
.
g
.
add
((
dataset
,
DCAT
.
landing
_p
age
,
URIRef
(
'%s/entry/id/%s/%s'
%
(
self
.
g
.
add
((
dataset
,
DCAT
.
landing
P
age
,
URIRef
(
'%s/entry/id/%s/%s'
%
(
config
.
gui_url
(),
entry
.
upload_id
,
entry
.
calc_id
))))
self
.
g
.
add
((
dataset
,
DCT
.
license
,
URIRef
(
'https://creativecommons.org/licenses/by/4.0/legalcode'
)))
...
...
@@ -138,7 +138,7 @@ class Mapping():
self
.
g
.
add
((
person
,
VCARD
.
familyName
,
Literal
(
user
.
last_name
)))
self
.
g
.
add
((
person
,
VCARD
.
nickName
,
Literal
(
user
.
username
)))
self
.
g
.
add
((
person
,
VCARD
.
hasEmail
,
Literal
(
user
.
email
)))
self
.
g
.
add
((
person
,
VCARD
.
organization
Name
,
Literal
(
'unavailable'
if
user
.
affiliation
is
None
else
user
.
affiliation
)))
self
.
g
.
add
((
person
,
VCARD
.
organization
,
Literal
(
'unavailable'
if
user
.
affiliation
is
None
else
user
.
affiliation
)))
# address = BNode()
# self.g.add((address, RDF.type, VCARD.Address))
# self.g.add((address, VCARD.street_address, )) # affiliation_address?
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment