Skip to content

Commit eaf4104

Browse files
author
Richard Wallis
authored
Map owl prefix in load from rdflib graph
Fix for issue (#1341) Missed when integrating rdflib 'owl:' was not recognised as a used prefix.
1 parent d9133e3 commit eaf4104

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apirdflib.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ def stripID (str):
194194
return "rdfs:" + str[37:]
195195
elif (l > 42 and (str[:43] == 'http://www.w3.org/1999/02/22-rdf-syntax-ns#')):
196196
return "rdf:" + str[43:]
197+
elif (l > 29 and (str[:30] == 'http://www.w3.org/2002/07/owl#')):
198+
return "owl:" + str[30:]
197199
else:
198200
return str
199201

0 commit comments

Comments
 (0)