Skip to content
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

Range is optional in cardinality expressions #19

Open
althonos opened this issue Jul 16, 2019 · 0 comments
Open

Range is optional in cardinality expressions #19

althonos opened this issue Jul 16, 2019 · 0 comments
Labels
API This concerns horned as a library refactor
Milestone

Comments

@althonos
Copy link
Collaborator

Grammar allow optional DataRange in cardinality expressions:

ObjectMinCardinality := 'ObjectMinCardinality' '(' nonNegativeInteger ObjectPropertyExpression [ ClassExpression ] ')'
ObjectMaxCardinality := 'ObjectMaxCardinality' '(' nonNegativeInteger ObjectPropertyExpression [ ClassExpression ] ')'
ObjectExactCardinality := 'ObjectExactCardinality' '(' nonNegativeInteger ObjectPropertyExpression [ ClassExpression ] ')'

DataMinCardinality := 'DataMinCardinality' '(' nonNegativeInteger DataPropertyExpression [ DataRange ] ')'
DataMaxCardinality := 'DataMaxCardinality' '(' nonNegativeInteger DataPropertyExpression [ DataRange ] ')'
DataExactCardinality := 'DataExactCardinality' '(' nonNegativeInteger DataPropertyExpression [ DataRange ] ')'

so the code should be

DataMinCardinality {
    n: i32,
    dp: DataProperty,
    dr: Option<DataRange>
}
@phillord phillord added this to the At some point milestone May 22, 2024
@filippodebortoli filippodebortoli added API This concerns horned as a library refactor labels Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API This concerns horned as a library refactor
Projects
None yet
Development

No branches or pull requests

3 participants