-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
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
Cannot obtain entity data from data provider by type #1705
Comments
Hello there.
For Exclusive registrations you must specify the entity id AND attributes (entity type is always mandatory). Make sure you check the result of the registration creation attempt. Thanks for reporting! |
Hello @kzangeli, thanks a lot for your quick response.
I checked again with curl -v, but my registration didn't failed.
I also got registration data by querying:
I checked again with Scorpio. It also registered successfully.
Register at context broker:
Query entity successfully:
Scenario 2: Scorpio works as context broker, and Orion-LD works as data provider.
Register at context broker:
Query entity, receive empty array:
It seems this problem only occurs when there is Orion-LD. Could you check again? |
ok, I might have an idea what is happening here. Add the CLI param "-experimental" to orion-ld and we'll see how it behaves. |
@kzangeli Thanks for your support. I tried your suggestion and got the following error when registration.
I think this is the error that you mentioned.
I have another question. I changed the registration to inclusive, and the registration succeed without error. However, when I query, I got empty array again. |
Sorry, pretty swamped lately ... Now, about the problem you see with Orion-LD: |
@kzangeli Thanks for your support. However, for Inclusive registration, I have not understood yet.
I created an Inclusive registration. The registration succeeded without error.
Next, a query with type gave me an empty array.
Could you help me to explain this case? |
@kzangeli I have another question. |
ok, a few things here ... The query to get those registered entities is simply a normal
For this to work in Orion-LD, you need to start it with:
It's working but it's a complex thing, not 100% finished yet. That's why it's under the "wip" option (Work In Progress) |
So, this issue got a little bit messy. If so, I'd propose to open a new "clean" issue and close this one. |
Hello, I have a problem that need your support.
I have 2 Orion-LD instances: 1st works as context broker, and 2nd works as data provider.
Firstly, I created an entity
urn:ngsi-ld:Building:office001
at data provider.Next, I created a registration that data provider can provide entity type "Building" for context broker.
After that, I queried to context broker to obtain Building entities.
I expected to obtain entity
urn:ngsi-ld:Building:office001
but it gave me an empty result.If I register a specific entity provided by data provider, I can obtain that entity by id.
I also can get data by registering entity with propertyNames.
The problem only occurs with registration and querying by entity type.
I tried with Scorpio and it worked well with registration and querying by entity type.
I also checked this issue #1585 and saw that Orion-LD worked with that case.
So, I think this is a bug of Orion-LD. Could you help me to confirm it?
Please tell me if I did any wrong step.
Many thanks in advance.
The text was updated successfully, but these errors were encountered: