Skip to content

Commit f0f275b

Browse files
committed
added a few namespaces
1 parent 678c502 commit f0f275b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

reproschema/jsonldutils.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,5 +107,10 @@ def to_newformat(path, format):
107107
import rdflib as rl
108108

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

0 commit comments

Comments
 (0)