aws / graph-explorer

React-based web application that enables users to visualize both property graph and RDF data and explore connections between data without having to write graph queries.
https://github.com/aws/graph-explorer
Apache License 2.0
319 stars 47 forks source link

[Bug] somtimes just dashes are displayed for data type property values #185

Open 87royalts87 opened 1 year ago

87royalts87 commented 1 year ago

Hello,

I'm using graph-explorer:1.3.1 and have a SPARQL endpoint. When I open the dropdown menu in the graph view the first entries just contain dashes: image

It happens also sometimes if I query a couple of neighbors: image

Imho the query to retrieve the items:

SELECT ?subject ?pred ?value ?class {
  ?subject ?pred ?value {
    SELECT DISTINCT ?subject ?class {
        ?subject a          ?class ;
                 ?predicate ?value .
        FILTER (?predicate IN (<IRI_NAMESPACE#Id>))
        FILTER (?class IN (<IRI_NAMESPACE#MaterialPlanner>))

    }
    LIMIT 10 OFFSET 0
  }
  FILTER(isLiteral(?value))
}

Retrieve data type properties of random instances instead of data type properties of the specific instance where we're looking for neighbors. The values are properly set in the RDF database. Just the retrieval of the graph-explorer fails

I would like to have values for the data type properties instead of dashes.

Kind regards Stefan

0xterran commented 10 months ago

Bump! This is a major issue for usability.

@cubeddu i can try to take a look at this and submit a PR. Any hints on why this happens? Just a quick frontend fix or is there something deeper at play here?