Skip to content

How to query for domain of a property #897

Answered by crapo
AbhaMoitra asked this question in Q&A
Discussion options

You must be logged in to vote

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

     "d","r"
     "http://arcos.rack/ANALYSIS#ANALYSIS","http://arcos.rack/PROV-S#ENTITY"

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.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@AbhaMoitra
Comment options

AbhaMoitra Mar 3, 2022
Maintainer Author

@crapo
Comment options

crapo Mar 3, 2022
Maintainer

@AbhaMoitra
Comment options

AbhaMoitra Mar 3, 2022
Maintainer Author

Comment options

You must be logged in to vote
0 replies
Answer selected by AbhaMoitra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants