OSLC query for resources where a property is not set
Jad El-Khoury
Hi
Is it possible to construct an OSLC query that finds resources for which certain properties are not set?
For example, I need to find all Requirement resources, where the dcterms:creator is not set.
In SPARQL, I learnt that I can do the following. But I could not find the equivalent OSLC Query (https://oslc-op.github.io/oslc-specs/specs/query/oslc-query.html#oslc.where).
FILTER NOT EXISTS { ?s <http://purl.org/dc/terms/creator> ?c . }
regards ______________________________ Jad El-khoury, PhD KTH Royal Institute of Technology School of Industrial Engineering and Management, Mechatronics Division Brinellvägen 83, SE-100 44 Stockholm, Sweden Phone: +46(0)8 790 6877 Mobile: +46(0)70 773 93 45
|
||||||||
|
||||||||
David Honey2
Not possible in the current OSLC query. There is no support for querying properties that do not exist.
From: oslc-op@... <oslc-op@...>
On Behalf Of Jad El-Khoury
Sent: 25 April 2022 09:16 To: OASIS OSLC Open Project (oslc-op@...) <oslc-op@...> Subject: [EXTERNAL] [oslc-op] OSLC query for resources where a property is not set
Hi Is it possible to construct an OSLC query that finds resources for which certain properties are not set? For example, I need to find all Requirement resources, where the dcterms:creator is not set. ZjQcmQRYFpfptBannerStart
ZjQcmQRYFpfptBannerEnd Hi
Is it possible to construct an OSLC query that finds resources for which certain properties are not set?
For example, I need to find all Requirement resources, where the dcterms:creator is not set.
In SPARQL, I learnt that I can do the following. But I could not find the equivalent OSLC Query (https://oslc-op.github.io/oslc-specs/specs/query/oslc-query.html#oslc.where).
FILTER NOT EXISTS { ?s <http://purl.org/dc/terms/creator> ?c . }
regards ______________________________ Jad El-khoury, PhD KTH Royal Institute of Technology School of Industrial Engineering and Management, Mechatronics Division Brinellvägen 83, SE-100 44 Stockholm, Sweden Phone: +46(0)8 790 6877 Mobile: +46(0)70 773 93 45
|
||||||||
|
||||||||
Jad El-Khoury
Hi David
I suspected so, but don’t you think it’s a common need that we ought to cover? Filtering for resources where a certain property has not been set (Another example is Requirements that have no tests associated with them).
and to be clear, the property does exist in the shape. but one is looking for instances where the propery has no value. (I suspect that’s what you already mean, but I wanted to be sure)
regards ______________________________ Jad El-khoury, PhD KTH Royal Institute of Technology School of Industrial Engineering and Management, Mechatronics Division Brinellvägen 83, SE-100 44 Stockholm, Sweden Phone: +46(0)8 790 6877 Mobile: +46(0)70 773 93 45
From: David Honey2 <david.honey@...>
Sent: Monday, 25 April 2022 11:04 To: oslc-op@...; Jad El-Khoury <jad@...> Subject: RE: OSLC query for resources where a property is not set
Not possible in the current OSLC query. There is no support for querying properties that do not exist.
From:
oslc-op@... <oslc-op@...>
On Behalf Of Jad El-Khoury
Hi Is it possible to construct an OSLC query that finds resources for which certain properties are not set? For example, I need to find all Requirement resources, where the dcterms:creator is not set. ZjQcmQRYFpfptBannerStart
ZjQcmQRYFpfptBannerEnd Hi
Is it possible to construct an OSLC query that finds resources for which certain properties are not set?
For example, I need to find all Requirement resources, where the dcterms:creator is not set.
In SPARQL, I learnt that I can do the following. But I could not find the equivalent OSLC Query (https://oslc-op.github.io/oslc-specs/specs/query/oslc-query.html#oslc.where).
FILTER NOT EXISTS { ?s <http://purl.org/dc/terms/creator> ?c . }
regards ______________________________ Jad El-khoury, PhD KTH Royal Institute of Technology School of Industrial Engineering and Management, Mechatronics Division Brinellvägen 83, SE-100 44 Stockholm, Sweden Phone: +46(0)8 790 6877 Mobile: +46(0)70 773 93 45
|
||||||||
|
||||||||
David Honey2
Hi Jad,
OSLC query doesn’t support the richness of a full-blown query. Its original design was never intended to, and this was to constrain the burden of implementation. Another known gap includes support for OR operators and parenthetical grouping of terms.
Best regards,
From: Jad El-Khoury <jad@...>
Sent: 25 April 2022 22:14 To: David Honey2 <david.honey@...>; oslc-op@... Subject: [EXTERNAL] RE: OSLC query for resources where a property is not set
Hi David I suspected so, but don’t you think it’s a common need that we ought to cover? Filtering for resources where a certain property has not been set (Another example is Requirements that have no tests associated with them). ZjQcmQRYFpfptBannerStart
ZjQcmQRYFpfptBannerEnd Hi David
I suspected so, but don’t you think it’s a common need that we ought to cover? Filtering for resources where a certain property has not been set (Another example is Requirements that have no tests associated with them).
and to be clear, the property does exist in the shape. but one is looking for instances where the propery has no value. (I suspect that’s what you already mean, but I wanted to be sure)
regards ______________________________ Jad El-khoury, PhD KTH Royal Institute of Technology School of Industrial Engineering and Management, Mechatronics Division Brinellvägen 83, SE-100 44 Stockholm, Sweden Phone: +46(0)8 790 6877 Mobile: +46(0)70 773 93 45
From: David Honey2 <david.honey@...>
Not possible in the current OSLC query. There is no support for querying properties that do not exist.
From:
oslc-op@... <oslc-op@...>
On Behalf Of Jad El-Khoury
Hi Is it possible to construct an OSLC query that finds resources for which certain properties are not set? For example, I need to find all Requirement resources, where the dcterms:creator is not set. ZjQcmQRYFpfptBannerStart
ZjQcmQRYFpfptBannerEnd Hi
Is it possible to construct an OSLC query that finds resources for which certain properties are not set?
For example, I need to find all Requirement resources, where the dcterms:creator is not set.
In SPARQL, I learnt that I can do the following. But I could not find the equivalent OSLC Query (https://oslc-op.github.io/oslc-specs/specs/query/oslc-query.html#oslc.where).
FILTER NOT EXISTS { ?s <http://purl.org/dc/terms/creator> ?c . }
regards ______________________________ Jad El-khoury, PhD KTH Royal Institute of Technology School of Industrial Engineering and Management, Mechatronics Division Brinellvägen 83, SE-100 44 Stockholm, Sweden Phone: +46(0)8 790 6877 Mobile: +46(0)70 773 93 45
|
||||||||
|
||||||||
Jad El-Khoury
Thanks David. Then I know, and we can follow through the issue below.
______________________________ Jad El-khoury, PhD KTH Royal Institute of Technology School of Industrial Engineering and Management, Mechatronics Division Brinellvägen 83, SE-100 44 Stockholm, Sweden Phone: +46(0)8 790 6877 Mobile: +46(0)70 773 93 45
From: David Honey2 <david.honey@...>
Sent: Tuesday, 26 April 2022 11:59 To: Jad El-Khoury <jad@...>; oslc-op@... Subject: RE: OSLC query for resources where a property is not set
Hi Jad,
OSLC query doesn’t support the richness of a full-blown query. Its original design was never intended to, and this was to constrain the burden of implementation. Another known gap includes support for OR operators and parenthetical grouping of terms.
Best regards,
From: Jad El-Khoury <jad@...>
Hi David I suspected so, but don’t you think it’s a common need that we ought to cover? Filtering for resources where a certain property has not been set (Another example is Requirements that have no tests associated with them). ZjQcmQRYFpfptBannerStart
ZjQcmQRYFpfptBannerEnd Hi David
I suspected so, but don’t you think it’s a common need that we ought to cover? Filtering for resources where a certain property has not been set (Another example is Requirements that have no tests associated with them).
and to be clear, the property does exist in the shape. but one is looking for instances where the propery has no value. (I suspect that’s what you already mean, but I wanted to be sure)
regards ______________________________ Jad El-khoury, PhD KTH Royal Institute of Technology School of Industrial Engineering and Management, Mechatronics Division Brinellvägen 83, SE-100 44 Stockholm, Sweden Phone: +46(0)8 790 6877 Mobile: +46(0)70 773 93 45
From: David Honey2 <david.honey@...>
Not possible in the current OSLC query. There is no support for querying properties that do not exist.
From:
oslc-op@... <oslc-op@...>
On Behalf Of Jad El-Khoury
Hi Is it possible to construct an OSLC query that finds resources for which certain properties are not set? For example, I need to find all Requirement resources, where the dcterms:creator is not set. ZjQcmQRYFpfptBannerStart
ZjQcmQRYFpfptBannerEnd Hi
Is it possible to construct an OSLC query that finds resources for which certain properties are not set?
For example, I need to find all Requirement resources, where the dcterms:creator is not set.
In SPARQL, I learnt that I can do the following. But I could not find the equivalent OSLC Query (https://oslc-op.github.io/oslc-specs/specs/query/oslc-query.html#oslc.where).
FILTER NOT EXISTS { ?s <http://purl.org/dc/terms/creator> ?c . }
regards ______________________________ Jad El-khoury, PhD KTH Royal Institute of Technology School of Industrial Engineering and Management, Mechatronics Division Brinellvägen 83, SE-100 44 Stockholm, Sweden Phone: +46(0)8 790 6877 Mobile: +46(0)70 773 93 45
|
||||||||
|