Closed matthiaskoenig closed 7 years ago
this is fixed, however some of the creators in the showcase were not valid (invalid email addresses, missing family names). I added support for it, but I'm not sure others do.
@fbergmann could you please be a bit more specific with what you mean with 'not valid'? The creators' names are defined using vcard:n
, which has a range of vcard:Name
, which in turn can have at most 1 vcard:family-name
and at most 1 vcard:given-name
property. I'm not sure, but I don't think both MUST be present..?
And for the mail addresses: I guess you're referring to nobody@models.cellml.org
and Hanne@hanne-nielsens-macbook.local
? Do you actually parse and verify mail addresses - and if so, how do you check if they are valid? Granted, .local
is not valid on the big internet but may be valid in privat networks etc...
After all that is what users actually provide, eg. see the Author information on top of the page: http://models.cellml.org/workspace/calzone_thieffry_tyson_novak_2007/file/e6e9d2607d3fbcadd534e7f4ceeb5767ccc477cd/calzone_thieffry_tyson_novak_2007.cellml
In my opinion that shouldn't be treated as invalid..
Hello Martin (@binfalse).
if you look at commit: https://github.com/sbmlteam/libCombine/commit/2cd7dc6661c0ab44e78c78acddfe4bab04aaec60 you see what I meant. Before I expected email addresses to be written as an RDF element hasEmail
where I would read the email from the resource
attribute. In the archive I instead found an email
element with a text child. Other than that previously I've discared vcards when not both family and given name were specified.
The reason for my argument was that in the omex specification only one format was listed. I don't mind accepting both, but I'm not sure other tools would. (If I had my way we would have used the same vcard format as SBML, but that ship has sailed :) ).
I think the metadata reading is broken. When trying to read the metadata for the CombineArchiveShowcase one gets empty metadata despite metadata existing for all files.
Output of the test script
./test.sh
in the python examples.The
metadata.rdf
contains all the information, but not accessible via libCombine.The example only displays the single creator for . (there are multiple creators), does not show the modified and misses all metadata for the other entries.
Probably the hashmap for the metadata given locations is not populated correctly.
M