You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to get all resources that have type "City" and whose label has "Rig" inside it.
To do it I created the following query https://lookup.dbpedia.org/api/search?typeName=City&label=Rig
As far as I understand typeName=City says that we will get only resources that have type City and label=Rig says that we will get only resources that have substring Rig inside label.
However, when I run this query, one of the results I get is as follows:
<Result>
<Label>London</Label>
<URI>http://dbpedia.org/resource/London</URI>
<Description>London is the capital and largest ...</Description>
<Classes>
<Class>
So it is a resource that has label London, and this label obviously does not contain substring Rig.
The question is why London is inside the results.
Is there a way to specify a query that would return just objects belonging to a given type, such that they have a given substring inside label?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Insanely late to the party, but the current lookup is a little bit misconfigured. The document of London received some score for matching its typeName field to City in your query. You can override any configuration variable in your query though:
I am trying to get all resources that have type "City" and whose label has "Rig" inside it.
To do it I created the following query
https://lookup.dbpedia.org/api/search?typeName=City&label=Rig
As far as I understand typeName=City says that we will get only resources that have type City and label=Rig says that we will get only resources that have substring Rig inside label.
However, when I run this query, one of the results I get is as follows:
So it is a resource that has label London, and this label obviously does not contain substring Rig.
The question is why London is inside the results.
Is there a way to specify a query that would return just objects belonging to a given type, such that they have a given substring inside label?
Thanks in advance!
The text was updated successfully, but these errors were encountered: