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

adding test case for ereefs #51

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

jyucsiro
Copy link
Contributor

This PR is from the current master... Tried to create an RDF graph for the eReefs CDL example using the bald library but received an error

Traceback (most recent call last):
File "nc2rdf.py", line 39, in
cdl2rdf(args.ncfile, args.format)
File "nc2rdf.py", line 23, in cdl2rdf
nc2rdf(tfilename, outformat)
File "nc2rdf.py", line 13, in nc2rdf
ttl = root_container.rdfgraph().serialize(format=outformat).decode("utf-8")
File "/home/jon/miniconda2/envs/bald_py3/lib/python3.6/site-packages/bald/init.py", line 441, in rdfgraph
graph = self.rdfnode(graph)
File "/home/jon/miniconda2/envs/bald_py3/lib/python3.6/site-packages/bald/init.py", line 430, in rdfnode
graph = obj.rdfnode(graph)
File "/home/jon/miniconda2/envs/bald_py3/lib/python3.6/site-packages/bald/init.py", line 418, in rdfnode
objs = set([objs])
TypeError: unhashable type: 'numpy.ndarray'

Unsure why there is a typeError...

@jyucsiro
Copy link
Contributor Author

jyucsiro commented Sep 6, 2017

Fixed the error where the bald lib was not handling np.ndarray types in the RDF serialization function.

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

Successfully merging this pull request may close these issues.

1 participant