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

SADL Query Language Limitation #874

Closed
crapo opened this issue Feb 4, 2022 · 2 comments
Closed

SADL Query Language Limitation #874

crapo opened this issue Feb 4, 2022 · 2 comments
Assignees

Comments

@crapo
Copy link
Collaborator

crapo commented Feb 4, 2022

Given this model and queries, the first query works, the second does not. Processing of the second query is inadequate.

Part is a class
described by partID with values of type string
described by processing with values of type Process.

Process is a class
described by temperature with values of type Temperature.

Temperature is a type of UnittedQuantity.

p1 is a Part
partID "123"
processing (a Process temperature (a Temperature ^value 100 unit "C")).

// what is the temperature of processing of p1?
Ask: select x where x is the temperature of processing of p1.

// what is the temperature of processing of (a Part partID "123")?
Ask: select x where x is the temperature of processing of (a Part with partID "123").

@crapo crapo self-assigned this Feb 4, 2022
@crapo
Copy link
Collaborator Author

crapo commented Feb 7, 2022

@agabaldon , I believe this is fixed with PR #875. Added tests for your case and more complex one with longer property chain.

@agabaldon
Copy link
Collaborator

Great! Will try it now. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants