Closed mbjones closed 2 years ago
NM, figured it out -- it was because I was parsing the id with a %s
format string, when I should have been treating it as a numeric format with %d
. Simple change, and the TTL file now looks correct. Committed in sha 005e9f6fe0971c1dd9be756badbf47a706daed82.
The R script that generates ADCAT.ttl does so with a function that creates the class names for each of the terms. Those are drawn from the integer identifiers in the CSV file, which are then padded to create the class names, like so:
The padding works fine for identifiers > 10, but for identifiers 0 to 9, it adds a spurious unicode character
\u002
and mangles the prefixed URI format, as follows:Interestingly the parent reference in the subclass triple seems to be created fine. Not sure what's up here. @amoeba would love to get your review of this if you have a minute.