-
Notifications
You must be signed in to change notification settings - Fork 16
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
Collect result as array #20
Comments
You should be able to achieve this using our custom You should be able to make this work by setting |
But executing "contains": { "@id": "http://www.w3.org/ns/ldp#contains", "@singular": true },
"contains_type": { "@singular": false }, and "contains": "http://www.w3.org/ns/ldp#contains", results are the same, they are both: SELECT ?contains ?contains_type WHERE {
OPTIONAL {
?b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/ldp#Container>;
<http://www.w3.org/ns/ldp#contains> ?contains, ?contains.
?contains <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?contains_type.
}
} And, what is update Oh, this But I can't get a list with comunica engine too. |
@linonetwo How are you invoking Comunica exactly? |
This is the code trying to query SoLiD POD: And I'm using this JSON-LD context: We are planning to use GraphQL in our SoLiD app to reduce developers' learning curve, so I made this demo project for a prior-art search, preparing some example codes. |
Your code looks fine to me, so this must be a bug in GraphQL-LD or Comunica. I'll look into it when I have time.
I see, interesting! |
Can I do something likes:
To collect type field into an array?
Since currently
Returns
Which is quite redundent, it's better if I can collect
?contains_type
field into an array and destructure theid
:I've tried this to destructure, but it doesn't work on my endpoint ( and I didn't find a way to collect them into an array):
The text was updated successfully, but these errors were encountered: