[Python-modules-commits] [python-pyld] 94/276: Fix nquads output for graph w/bnode ID.
Wolfgang Borgert
debacle at moszumanska.debian.org
Wed Oct 8 23:47:57 UTC 2014
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to branch master
in repository python-pyld.
commit d00fd1a594e94a3fabafb276bbe64619f2229cb0
Author: Dave Longley <dlongley at digitalbazaar.com>
Date: Fri Jun 15 10:24:09 2012 -0400
Fix nquads output for graph w/bnode ID.
---
lib/pyld/jsonld.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/lib/pyld/jsonld.py b/lib/pyld/jsonld.py
index 45f6db0..2e7c008 100644
--- a/lib/pyld/jsonld.py
+++ b/lib/pyld/jsonld.py
@@ -959,7 +959,12 @@ class JsonLdProcessor:
# graph
if g is not None:
- quad += ' <' + g['nominalValue'] + '>'
+ if g['interfaceName'] == 'IRI':
+ quad += ' <' + g['nominalValue'] + '>'
+ elif bnode is not None:
+ quad += ' _:g'
+ else:
+ quad += ' ' + g['nominalValue']
quad += ' .\n'
return quad
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-pyld.git
More information about the Python-modules-commits
mailing list