-
Notifications
You must be signed in to change notification settings - Fork 11
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
keep triple provenance as named graphs #123
Comments
Hi @pchampin 👋 The functionality you are describing is available in this actor: https://github.com/comunica/comunica-feature-link-traversal/tree/master/packages/actor-rdf-resolve-hypermedia-links-traverse-annotate-source-graph It's not part of the default configuration, but a separate one, which has a corresponding web client here: https://comunica.github.io/comunica-feature-link-traversal-web-clients/builds/solid-prov-sources/ We haven't done any experiments with it so far, so we don't know at the moment how much overhead the implementation causes. There may also be some alternative approaches possible to achieve triple provenance, such as the quoted triples from RDF-star. (this has been on hold for a while, but now that Comunica supports RDF-star, we could theoretically start building such an implementation) |
Great, thanks @rubensworks . Is there a way to use the command-line tool with this specific configuration file ? (I tried the -c flag, but it does not seem to work...). |
That should be possibly using the dynamic variant of the CLI tool (I suspect |
Thanks again @rubensworks but I had no luck with the config file. Below is the command line I used: COMUNICA_CONFIG=config-solid-prov-sources.json \
my-comunica \
"PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?name ?g { <https://champin.net/#pa> foaf:knows ?p. GRAPH ?g { ?p foaf:name ?name } }" \
--lenient \
-l debug 2>/tmp/comunica-log Note that I get no result. While when I remove the I tested it with the version installed from NPM (2.10.1) or with the version built from the master branch ( |
@pchampin Could you try again with the flag It seems to be working here with this query: https://comunica.github.io/comunica-feature-link-traversal-web-clients/builds/solid-prov-sources/#transientDatasources=https%3A%2F%2Fwww.rubensworks.net%2F&query=SELECT%20DISTINCT%20*%20WHERE%20%7B%0A%20%20%20%20GRAPH%20%3Fsource%20%7B%0A%20%20%20%20%20%20%3Fperson%20foaf%3Aname%20%3Fname.%0A%09%7D%0A%7D |
I did try with My understanding is that, when |
Ok, thanks for checking. |
maybe things have changed since 2 weeks ago, but I now realize that your example above does provide some named graphs after a bunch for empty named graphs! I can't reproduce this on the command line, though :-( |
Issue type:
Description:
Currently, there is no way to know from which source the link traversal retrieved a given triple.
I would like, for example, to be able to ask the following query:
to determine whether the name of a person comes from their own profile or another source.
Of course, I would expect the default graph to be, by default, the merge of all named graphs, so that "flat" queries still work as expected.
cc @lecoqlibre @FabienGandon
The text was updated successfully, but these errors were encountered: