Skip to content

Commit

Permalink
added a few namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
satra committed Aug 14, 2020
1 parent 678c502 commit f0f275b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions reproschema/jsonldutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,10 @@ def to_newformat(path, format):
import rdflib as rl

g = rl.Graph()
g.bind("rs", "http://schema.repronim.org/")
g.bind("sdo", "http://schema.org/")
g.bind("nidm", "http://purl.org/nidash/nidm#")
g.bind("skos", "http://www.w3.org/2004/02/skos/core#")
g.bind("prov", "http://www.w3.org/ns/prov#")
g.parse(data=nt, format="nt")
return g.serialize(format=format).decode()

0 comments on commit f0f275b

Please sign in to comment.