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

[BUG] - missing support for swrl predicates involving scalar properties. #90

Open
3 tasks
NicolasRouquette opened this issue Jan 15, 2022 · 2 comments
Open
3 tasks

Comments

@NicolasRouquette
Copy link
Member

Description

A clear and concise description of what the bug is.

https://www.w3.org/Submission/SWRL/

SWRL supports using a data valued property as an atom:

atom ::= description '(' i-object ')'
	 | dataRange '(' d-object ')'
	 | individualvaluedPropertyID '(' i-object i-object ')'
	 | datavaluedPropertyID '(' i-object d-object ')'
	 | sameAs '(' i-object i-object ')'
	 | differentFrom '(' i-object i-object ')'
	 | builtIn '(' builtinID { d-object } ')'

In OML this would correspond to a scalar property.

Unfortunately, OML 1.0.6 does not support using a scalar property as a predicate. This should also include adding support for binding the value of the scalar property either to a SWRL variable or to a constant.

Steps to Reproduce

Steps to reproduce the behavior:

  • Step 1
  • Step 2
  • Step 3

Expected Behavior

A clear and concise description of what should be the expected behavior.

Additional Context

Enter any other details such as dependencies, environment, examples, etc.

Relevant screenshots

If applicable, add screenshots to help illustrate the issue.

@melaasar
Copy link
Member

melaasar commented Jan 31, 2022

OML 1.0.6 already supports specifying scalar properties in a predicate since it inherits from Feature and there is support for FeaturePredicate:

At least where the value is specified as a variable.

Are you sure this is not working for you? Can you give an example that does not work?

@NicolasRouquette
Copy link
Member Author

See: https://github.com/NicolasRouquette/metrology-vocabularies

In vim4.oml, there is a rule that is commented out:

  // See https://github.com/opencaesar/oml/issues/90
//  rule incoherent-derived-unit-implies-incoherent-system-of-units [
//    systemHasDerivedUnit(su, dq) ^ isCoherent(dq, "false"^^xsd:boolean) ->
//    isCoherent(su, "false"^^xsd:boolean)
//  ]

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