WARNING:root:No License provided, using http://w3id.org/sssom/license/unspecified
What I've tried
I looked at sssom/context.py to see if I could find anything wrong, but I don't see an obvious issue.
def set_default_license(meta: Metadata) -> Metadata:
if ("license" not in meta.metadata) or (meta.metadata["license"] is None):
meta.metadata["license"] = DEFAULT_LICENSE
logging.warning(f"No License provided, using {DEFAULT_LICENSE}")
return meta
I'm assuming that the contents of meta.metadata should be equivalent to the root of my metadata .yml file. If that's the case, I don't know why there's an issue here. Perhaps when it reads the .yml file, something happens where the value of the license does not get set correctly in meta.metadata?
I can probably figure this out on my own using the debugger, but just wanted to report it first.
Description
I have a
license
field in my.yml
file, and I'm passing it tosssom parse
, but I get a warning message saying that it can't findlicense
.Command I'm running
sssom parse omim.json -I obographs-json -m data/metadata.sssom.yml -o omim.sssom.tsv
metadata.sssom.yml
:Error/warnings
WARNING:root:No License provided, using http://w3id.org/sssom/license/unspecified
What I've tried
I looked at
sssom/context.py
to see if I could find anything wrong, but I don't see an obvious issue.I'm assuming that the contents of
meta.metadata
should be equivalent to the root of my metadata.yml
file. If that's the case, I don't know why there's an issue here. Perhaps when it reads the.yml
file, something happens where the value of thelicense
does not get set correctly inmeta.metadata
?I can probably figure this out on my own using the debugger, but just wanted to report it first.