How to query for domain of a property #897
-
In the attached project, property analysisConfiguration is set in file ANALYSIS.sadl and then its domain is extended in SRI-OverlayCheckIssue.sadl. How do I write a query to get this extended domain. (More comments in the files and my query is in OverlayChecks.sadl.) Also, there is a type checking warning in SRI-OverlayCheckIssue.sadl that I think should not be present (more details in comments in the file and older versions of SADL does not have a type checking warning for the same file). My version and settings: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Here's a more complete description of what is defined in the OverLayCheckIssue project.
|
Beta Was this translation helpful? Give feedback.
-
As far as the query goes. you can find all properties with their domain and range with this query: You can get the domain and range of analysisConfiguration only with this query: Note that the second query will give results
because line 22 doesn't add anything to the OWL file, for the reason explained above. Hence only the originally specified domain and range are found. |
Beta Was this translation helpful? Give feedback.
As far as the query goes. you can find all properties with their domain and range with this query:
select ?d ?p ?r where {?p <rdfs:domain> ?d . ?p <rdfs:range> ?r}
.You can get the domain and range of analysisConfiguration only with this query:
select ?d ?r where {<analysisConfiguration> <rdfs:domain> ?d . <analysisConfiguration> <rdfs:range> ?r}
.Note that the second query will give results
because line 22 doesn't add anything to the OWL file, for the reason explained above. Hence only the originally specified domain and range are found.