[Python-modules-commits] [python-pyld] 121/276: Add comment about literals in N-Quads graph position.
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 3b35ae635569064267941bdd8b6ff44395f279d1
Author: Dave Longley <dlongley at digitalbazaar.com>
Date: Fri May 10 10:15:48 2013 -0400
Add comment about literals in N-Quads graph position.
Addresses #19.
---
lib/pyld/jsonld.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/lib/pyld/jsonld.py b/lib/pyld/jsonld.py
index e4a297d..c4d6df1 100644
--- a/lib/pyld/jsonld.py
+++ b/lib/pyld/jsonld.py
@@ -1059,6 +1059,13 @@ class JsonLdProcessor:
object = '(?:' + iri + '|' + bnode + '|' + literal + ')' + wso
graph = '(?:\\.|(?:(?:' + iri + '|' + bnode + ')' + wso + '\\.))'
+ # Note: Notice that the graph position does not include literals
+ # even though they are specified as a possible value in the
+ # N-Quads note (http://sw.deri.org/2008/07/n-quads/). This is
+ # intentional, as literals in that position are not supported by the
+ # RDF data model or the JSON-LD data model.
+ # See: https://github.com/digitalbazaar/pyld/pull/19
+
# full quad regex
quad = r'^' + wso + subject + property + object + graph + wso + '$'
--
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