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
fix(schema-documentation): update schemas and documentation (DEV-61) #105
Conversation
Hi @Vijeinath , in this PR I integrated the changes Stefan has reported. I updated the schemas too as there were quite some inconsistencies. As Balduin doesn't work this week, I thought you could have a look at it instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are just small issues
knora/dsplib/schemas/ontology.json
Outdated
}, | ||
"ncname": { | ||
"type": "string", | ||
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]*$", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@irinaschubert According to https://www.w3.org/TR/xml11/#NT-NameStartChar, NCName
is not allowed to start with a number (but with underscore). Would that be valid for the API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right, the pattern wasn't correct. I changed it according to your suggestions and I also added "." as allowed character.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy
knora/dsplib/schemas/ontology.json
Outdated
@@ -59,7 +57,7 @@ | |||
] | |||
}, | |||
{ | |||
"pattern": "^([\\w-]*)?:(\\w+)$" | |||
"pattern": "^([-\\w]*)?:(\\w+)$" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to create a definition for this pattern (like prefixedname
)? It seems to be used quite often. Is it correct that the first group sometimes ends with *
and sometimes with +
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, good idea. I introduced prefixedname
for this pattern and replaced its occurrences. I also unified the use of *
and +
.
knora/dsplib/schemas/ontology.json
Outdated
"isPartOf", | ||
"seqnum" | ||
] | ||
}, | ||
{ | ||
"pattern": "^(([\\w-]*)?:([\\w ]+))$" | ||
"pattern": "^(([-\\w]*)?:([\\w ]+))$" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@irinaschubert white space correct here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's not. I used prefixedname
instead.
resolves DEV-61
resolves #43
resolves #38
resolves Pulldown/List issue for listValues --> only List allowed