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
cubicweb
cubes
skos
Commits
448195d9bbf2
Commit
e4de180d
authored
Feb 19, 2018
by
Denis Laxalde
Browse files
Drop compat for pre-0.9 API
Closes #17133734.
parent
60f8c89415f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
sobjects.py
View file @
448195d9
...
...
@@ -29,8 +29,6 @@ from hashlib import md5
from
uuid
import
uuid4
from
itertools
import
imap
from
logilab.common.deprecation
import
deprecated
from
cubicweb
import
dataimport
from
cubicweb.dataimport.importer
import
(
ExtEntity
,
...
...
@@ -224,18 +222,3 @@ def import_skos_extentities(cnx, entities, import_log,
store
.
commit
()
store
.
finish
()
return
res
@
deprecated
(
'[skos 0.9] use lcsv_extentities then import_skos_extentities instead'
)
def
_skos_import_lcsv
(
cnx
,
stream
,
import_log
,
scheme_uri
,
delimiter
,
encoding
,
language_code
=
None
,
**
kwargs
):
"""Import SKOS from LCSV stream or URL (by transforming it to RDF first)."""
entities
=
lcsv_extentities
(
stream
,
scheme_uri
,
delimiter
,
encoding
,
language_code
)
return
import_skos_extentities
(
cnx
,
entities
,
import_log
,
extid_as_cwuri
=
False
,
**
kwargs
)
@
deprecated
(
'[skos 0.9] use rdf_extentities then import_skos_extentities instead'
)
def
_skos_import_rdf
(
cnx
,
stream_or_url
,
import_log
,
rdf_format
=
None
,
**
kwargs
):
"""Import SKOS from RDF stream or URL."""
entities
=
rdf_extentities
(
stream_or_url
,
rdf_format
)
return
import_skos_extentities
(
cnx
,
entities
,
import_log
,
**
kwargs
)
Write
Preview
Markdown
is supported
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