Closed sskagemo closed 3 years ago
But this works:
>>> dataset.landing_page = ["http://enurl.com"]
>>> dataset.to_rdf().decode()
'@prefix dcat: <http://www.w3.org/ns/dcat#> .\n\n<http://example.com/datasets/1> a dcat:Dataset ;\n dcat:landingPage <http://enurl.com> .\n\n'
>>>
So I guess it means landing_page must be a list, but then maybe there should be an error when it is used with a string?
I believe this issue should be closed as "learning-Python-basics-by-mistakes"; dataset.landing_page is a list, and values should be added by .append(), not = ... Thank you for listening!