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

Spurious warning about invalid valueNodeType when added in extra_value_node_types #17

Open
philbarker opened this issue Oct 20, 2021 · 3 comments

Comments

@philbarker
Copy link

I'm using the csvreader() method in another program. The TAP I am reading has one entry of valueNodeType of IRI BNODE (line 8). The dctap yaml config I am using has

extra_value_node_types:
 - iri bnode

but still I get {'valueNodeType': ["'iri bnode' is not a valid node type."]} in the "warnings_dict"

(I understand the values should be case-insensitive, but I've also tried IRI BNODE in the YAML config and it made no difference.)

The file loads fine and I can use it, but I think this is a spurious warning.

@tombaker
Copy link
Collaborator

@philbarker
It looks to me like your config file is adding two values separated by a space, ie, "iri bnode".

The examples in the default config file show individual values as separate items in the YAML list, like this:

extra_value_node_types:
- "uri"
- "nonliteral"

The valueNodeType column would get processed as multiple values if the config file were also to say:

list_elements:
- valueNodeType

and the value "iri bnode" would get split into a list of multiple values according to default separate, a blank space.

@philbarker
Copy link
Author

@tombaker OK, though this was with an old version of dctap.py 0.3.3, I think, does that support list elements?

@tombaker
Copy link
Collaborator

@philbarker The current version does support list elements, but perhaps the older version handled them differently. Please let me know if the current way of handling them does not work for you.

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

2 participants