Skip to content
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

id not working with inline fragments #7

Open
pheyvaer opened this issue Jul 20, 2019 · 0 comments
Open

id not working with inline fragments #7

pheyvaer opened this issue Jul 20, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@pheyvaer
Copy link

pheyvaer commented Jul 20, 2019

id does not work with the following:

Context:

{
  "Person":  { "@id": "http://schema.org/Person" }
}

Query:

{
  ... on Person {
    id @single # @single does not affect the output actually.
  }
}

Data:

@prefix schema: <http://schema.org/> .
@prefix : <http://example.com/>.

:test1 a schema:Person.

:test2 a schema:Person.

Actual result:

[ { } ]

Expected result:

[ 
  { "id": "http://example.com/test1" }, 
  { "id": "http://example.com/test2" } 
]

The code to execute the query is reused from the README and the data is hosted via the latest version of ldf-server.

@rubensworks rubensworks added the bug Something isn't working label Jul 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants