Skip to content

related query not returning all results, and returning unwanted results #69

@ghost

Description

in my database I have France that liesIn Western Europe:

      {
        "name": "France",
        "dataset": "cshapes",
        "id": "cshapes/1520",
        "type": "hg:Country",
        "validSince": "1946-01-01",
        "validUntil": "2012-06-30",
        "geometryIndex": 0,
        "hairs": []
        "relations": {
          "hg:sameHgConcept": []
          "hg:liesIn": [
            {
              "@id": "oecd/WEUR"
            }
          ],
          "@id": "cshapes/1520"
        },
        "@id": "cshapes/1520"
      },

but I don't get this back from a query:

http://localhost:3001/search?geometry=false&related=hg:liesIn&related.id=oecd/WEUR

In fact, I get all kinds of results I don't want, which seem to be children of children of oecd/WEUR, (like Nigeria which liesIn United Kingdom (at one point) which liesIn WEUR).

what's going on? Is there a limit on the number of returns? and is the expansion (here?) indeed finding multi-hop relations?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions