Skip to content

Commit

Permalink
Replace rdflib-jsonld (scriptotek#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtich committed Feb 26, 2024
1 parent 0e53a80 commit abe755b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions mc2skos/mc2skos.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from rdflib import URIRef, Literal, Graph, BNode
from otsrdflib import OrderedTurtleSerializer
import json
import rdflib_jsonld.serializer as json_ld
import jsonld from rdflib.plugins.serializers
import pkg_resources
import skosify

Expand Down Expand Up @@ -351,7 +351,7 @@ def main():
elif args.outformat in ['jskos', 'ndjson']:
s = pkg_resources.resource_string(__name__, 'jskos-context.json').decode('utf-8')
context = json.loads(s)
jskos = json_ld.from_rdf(graph, context)
jskos = jsonld.from_rdf(graph, context)
if args.outformat == 'jskos':
jskos['@context'] = u'https://gbv.github.io/jskos/context.json'
out_file.write(json.dumps(jskos, sort_keys=True, indent=2).encode('utf-8'))
Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
author_email='[email protected]',
url='https://github.com/scriptotek/mc2skos',
license='MIT',
install_requires=['rdflib[sparql]',
'rdflib-jsonld',
'lxml',
install_requires=['lxml',
'otsrdflib>=0.5.0,<0.6.0',
'iso-639',
'pyyaml',
Expand Down

0 comments on commit abe755b

Please sign in to comment.