Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling urn : unsupported operand type(s) for +: 'NoneType' and 'unicode' #11

Closed
ogirardot opened this issue Dec 20, 2012 · 2 comments
Closed

Comments

@ogirardot
Copy link

Hi,
I was trying to output a simple json-ld document from the following input :

@prefix lt: 
<urn:lt:onto:> .

<urn:lt:members:f.biville> a lt:Person;
    lt:email "test@gmail.com" .

And i got the following error at build/bdist.macosx-10.4-x86_64/egg/rdflib_jsonld/ldcontext.py in _rec_expand at the line 119 using latest master.

Context was :

nxt u'lt:onto:'
expr u'urn:lt:onto:'
is_term False
pfx u'urn'
prev None
data {'lt': u'urn:lt:onto:',
 'rdf': u'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
 'rdfs': u'http://www.w3.org/2000/01/rdf-schema#'}
self    <rdflib_jsonld.ldcontext.Context object at 0x104c81950>

It seems that the converter is trying to match a "binded namespace : URN" which is a bit confusing.
What did i do wrong ?

Regards,

Olivier.

@azaroth42
Copy link

I think this is a symptom of my issue #10. Try changing IRI_KEY in ldcontext.py to ID_KEY.

@niklasl
Copy link
Member

niklasl commented Nov 22, 2014

This has been fixed.

@niklasl niklasl closed this as completed Nov 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants