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
8506ed82
Commit
8506ed82
authored
6 years ago
by
anonymous
Browse files
Options
Downloads
Patches
Plain Diff
Fixed error: rdf-export now allows for URIRef as URIRef (not Literal)
parent
287edbcc
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ckanext/odsh/profiles.py
+5
-2
5 additions, 2 deletions
ckanext/odsh/profiles.py
with
5 additions
and
2 deletions
ckanext/odsh/profiles.py
+
5
−
2
View file @
8506ed82
from
ckanext.dcatde.profiles
import
DCATdeProfile
,
DCATDE
,
DCAT
,
VCARD
,
dcat_theme_prefix
,
DCATDE_1_0
from
ckanext.dcatde.profiles
import
DCATdeProfile
,
DCATDE
,
DCAT
,
VCARD
,
dcat_theme_prefix
,
DCATDE_1_0
from
ckanext.dcat.utils
import
resource_uri
from
ckanext.dcat.utils
import
resource_uri
from
ckanext.dcat.profiles
import
EuropeanDCATAPProfile
,
DCT
from
ckanext.dcat.profiles
import
EuropeanDCATAPProfile
,
DCT
,
URIRefOrLiteral
from
ckan.model.license
import
LicenseRegister
from
ckan.model.license
import
LicenseRegister
import
rdflib
import
rdflib
import
ckanext.dcatde.dataset_utils
as
ds_utils
import
ckanext.dcatde.dataset_utils
as
ds_utils
...
@@ -60,6 +60,9 @@ class ODSHEuropeanDCATAPProfile(EuropeanDCATAPProfile):
...
@@ -60,6 +60,9 @@ class ODSHEuropeanDCATAPProfile(EuropeanDCATAPProfile):
for
s
,
p
,
o
in
self
.
g
.
triples
((
None
,
DCT
.
language
,
None
)):
for
s
,
p
,
o
in
self
.
g
.
triples
((
None
,
DCT
.
language
,
None
)):
if
o
.
decode
()
in
get_language
():
if
o
.
decode
()
in
get_language
():
self
.
g
.
set
((
s
,
p
,
rdflib
.
URIRef
(
get_language
()[
o
.
decode
()])))
self
.
g
.
set
((
s
,
p
,
rdflib
.
URIRef
(
get_language
()[
o
.
decode
()])))
elif
type
(
o
)
==
rdflib
.
Literal
and
type
(
URIRefOrLiteral
(
o
.
decode
()))
==
rdflib
.
URIRef
:
self
.
g
.
set
((
s
,
p
,
rdflib
.
URIRef
(
o
.
decode
())
))
class
ODSHDCATdeProfile
(
DCATdeProfile
):
class
ODSHDCATdeProfile
(
DCATdeProfile
):
def
parse_dataset
(
self
,
dataset_dict
,
dataset_ref
):
def
parse_dataset
(
self
,
dataset_dict
,
dataset_ref
):
...
...
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