[Python-modules-commits] [python-pyld] 164/276: Do not add (data)type nodes to node map.

Wolfgang Borgert debacle at moszumanska.debian.org
Wed Oct 8 23:48:06 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 9a52824ec9bfc70a4d51f029c64897dcc6343f54
Author: Dave Longley <dlongley at digitalbazaar.com>
Date:   Fri Aug 9 10:43:25 2013 -0400

    Do not add (data)type nodes to node map.
---
 lib/pyld/jsonld.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/pyld/jsonld.py b/lib/pyld/jsonld.py
index 24f2843..bf4d08a 100644
--- a/lib/pyld/jsonld.py
+++ b/lib/pyld/jsonld.py
@@ -2109,7 +2109,8 @@ class JsonLdProcessor:
 
                 # transform list into @list object
                 del head['@id']
-                head['@list'] = list_.reverse()
+                list_.reverse()
+                head['@list'] = list_
                 for node in list_nodes:
                     graph_object.pop(node, None)
 
@@ -2535,7 +2536,6 @@ class JsonLdProcessor:
                 # rename @type blank node
                 if type_.startswith('_:'):
                     type_ = input_['@type'] = namer.get_name(type_)
-                graphs[graph].setdefault(type_, {'@id': type_})
             if list_ is not None:
                 list_.append(input_)
             return
@@ -2609,7 +2609,6 @@ class JsonLdProcessor:
                 if property == '@type':
                     # rename @type blank nodes
                     o = namer.get_name(o) if o.startswith('_:') else o
-                    graphs[graph].setdefault(o, {'@id': o})
 
                 # handle embedded subject or subject reference
                 if _is_subject(o) or _is_subject_reference(o):

-- 
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