summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--schema/parse.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/schema/parse.py b/schema/parse.py
index ed520e73..d0ffc8aa 100644
--- a/schema/parse.py
+++ b/schema/parse.py
@@ -257,8 +257,10 @@ def load_all_morphologies(path='.'):
chunk_ref.set(BASEROCK.repo, rdflib.Literal(entry['repo']))
chunk_ref.set(BASEROCK.ref, rdflib.Literal(entry['ref']))
if 'unpetrify-ref' in entry:
+ # This needs to be converted to a string as it may be
+ # parsed as a floating point number by PyYAML.
chunk_ref.set(BASEROCK.unpetrifyRef,
- rdflib.Literal(entry['unpetrify-ref']))
+ rdflib.Literal(str(entry['unpetrify-ref'])))
chunk_ref.set(BASEROCK.buildMode,
rdflib.Literal(entry.get('build-mode', 'normal')))
chunk_ref.set(BASEROCK.prefix,