[Python-modules-commits] [python-pyld] 119/276: Do not expand context IRI mappings using base.

Wolfgang Borgert debacle at moszumanska.debian.org
Wed Oct 8 23:48:00 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 e3a38038248bf4b31236bdef66cf7cabbb536cf3
Author: Dave Longley <dlongley at digitalbazaar.com>
Date:   Fri May 3 10:41:35 2013 -0400

    Do not expand context IRI mappings using base.
---
 lib/pyld/jsonld.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/pyld/jsonld.py b/lib/pyld/jsonld.py
index a5e574c..123c3e9 100644
--- a/lib/pyld/jsonld.py
+++ b/lib/pyld/jsonld.py
@@ -3408,7 +3408,7 @@ class JsonLdProcessor:
 
             # expand and add @id mapping, set @type to @id
             mapping['@id'] = self._expand_iri(
-                active_ctx, reverse, vocab=True, base=True,
+                active_ctx, reverse, vocab=True, base=False,
                 local_ctx=local_ctx, defined=defined)
             mapping['@type'] = '@id'
             mapping['reverse'] = True
@@ -3421,7 +3421,7 @@ class JsonLdProcessor:
             if id_ != term:
                 # add @id to mapping
                 mapping['@id'] = self._expand_iri(
-                    active_ctx, id_, vocab=True, base=True,
+                    active_ctx, id_, vocab=True, base=False,
                     local_ctx=local_ctx, defined=defined)
         if '@id' not in mapping:
             # see if the term has a prefix

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