Open
Description
Here is the scenario: I was querying for resources of type "ceasn:Competency" with the properties of "ceasn:skillEmbodied", "ceasn:taskEmbodied", "ceasn:knowledgeEmbodied", and "ceasn:abilityEmbodied". I am trying to find that type of resource where those properties do not have a proper URI that contains "resources/ce-". If I run this query:
{
"@type": {
"search:value": [
"ceasn:Competency"
]
},
"search:termGroup": {
"search:operator": "search:orTerms",
"ceasn:skillEmbodied": "search:anyValue",
"ceasn:taskEmbodied": "search:anyValue",
"ceasn:knowledgeEmbodied": "search:anyValue",
"ceasn:abilityEmbodied": "search:anyValue"
}
}
I get 2994 results. And if i run this query:
{
"@type": {
"search:value": [
"ceasn:Competency"
]
},
"search:termGroup": {
"search:operator": "search:orTerms",
"ceasn:skillEmbodied": ["/resources/ce-"],
"ceasn:taskEmbodied": ["/resources/ce-"],
"ceasn:knowledgeEmbodied": ["/resources/ce-"],
"ceasn:abilityEmbodied": ["/resources/ce-"]
}
}
I get 2894 results. This means there are 100 results where there are invalid URIs in one of those properties for this type. But when I try to query those 100 resources with this query:
{
"@type": {
"search:value": [
"ceasn:Competency"
]
},
"search:termGroup": {
"search:operator": "search:orTerms",
"!ceasn:skillEmbodied": ["/resources/ce-"],
"!ceasn:taskEmbodied": ["/resources/ce-"],
"!ceasn:knowledgeEmbodied": ["/resources/ce-"],
"!ceasn:abilityEmbodied": ["/resources/ce-"]
}
}
The query takes a really long time and returns a total of 20,0000~ results.