We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Stellio 2.18.1
I have a number of Shelf entities like this:
Shelf
{ "id": "urn:ngsi-ld:Shelf:unit001", "type": "Shelf", "stocks": { "type": "Relationship", "object": "urn:ngsi-ld:Product:001" }, "numberOfItems": { "type": "Property", "value": 15 } }
Querying on the property retrieves the entity correctly ✅
curl -L 'http://localhost:8080/ngsi-ld/v1/entities/?type=Shelf&options=keyValues&q=numberOfItems%3E0' \ -H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ -H 'Accept: application/json'
Querying on the relationship returns an empty array ❌
curl -L 'http://localhost:8080/ngsi-ld/v1/entities/?type=Shelf&q=stocks%3D%3D%22urn%3Angsi-ld%3AProduct%3A001%22' \ -H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ -H 'Accept: application/json'
Querying on both the property and relationship also returns an empty array ❌
curl -L 'http://localhost:8080/ngsi-ld/v1/entities/?type=Shelf&options=keyValues&q=numberOfItems%3E0%3BlocatedIn%3D%3D%22urn%3Angsi-ld%3ABuilding%3Astore001%22%3Bstocks%3D%3D%22urn%3Angsi-ld%3AProduct%3A001%22' \ -H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ -H 'Accept: application/json'
The text was updated successfully, but these errors were encountered:
this works:
http http://localhost:8080/ngsi-ld/v1/entities/?type=Shelf&q=stocks==urn:ngsi-ld:Product:001
but not this:
http http://localhost:8080/ngsi-ld/v1/entities/?type=Shelf&q=stocks=="urn:ngsi-ld:Product:001"
basically because, in the 2nd case, Stellio says it is a string, not an URI, so it does not match the object of the relationship.
will look at it.
Sorry, something went wrong.
No branches or pull requests
Stellio 2.18.1
I have a number of
Shelf
entities like this:Querying on the property retrieves the entity correctly ✅
Querying on the relationship returns an empty array ❌
Querying on both the property and relationship also returns an empty array ❌
The text was updated successfully, but these errors were encountered: