[Python-modules-commits] [python-pyld] 100/276: Use base IRI when expanding @type.
Wolfgang Borgert
debacle at moszumanska.debian.org
Wed Oct 8 23:47:58 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 8e96906fa949de136f95056321284bf20e117b13
Author: Dave Longley <dlongley at digitalbazaar.com>
Date: Mon Nov 12 12:55:28 2012 -0500
Use base IRI when expanding @type.
---
lib/pyld/jsonld.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/lib/pyld/jsonld.py b/lib/pyld/jsonld.py
index 5fef612..897d432 100644
--- a/lib/pyld/jsonld.py
+++ b/lib/pyld/jsonld.py
@@ -1807,10 +1807,8 @@ class JsonLdProcessor:
# special-case expand @id and @type (skips '@id' expansion)
prop = self._expand_term(ctx, property)
- if prop == '@id':
+ if prop == '@id' or prop == '@type':
rval = self._expand_term(ctx, value, base)
- elif prop == '@type':
- rval = self._expand_term(ctx, value)
else:
# get type definition from context
type = JsonLdProcessor.get_context_value(ctx, property, '@type')
--
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