I know I can select default and/or named graphs for queries, but my question is:
Can I hide any named graphs in Apache Jena from being listed or queried via SPARQL, only allowing access to the default graph (a setting/configuration)?
Thanks!
I know I can select default and/or named graphs for queries, but my question is:
Can I hide any named graphs in Apache Jena from being listed or queried via SPARQL, only allowing access to the default graph (a setting/configuration)?
Thanks!
On
As per AndyS's response, access control in RDF can be implemented at the dataset level; thus, I always advise researchers to create multiple datasets if they have private data that they do not want others to access. The configuration of shiro makes using the access control implemented in fuseki simple and straightforward. You can restrict access to specific datasets to specific users.
I might add to AndyS's response the option from the Fuseki UI to create multiple datasets and upload the various ttl data files there, as per the attached screenshot.
Then after each dataset will be available in a separate SPARQL endpoint to share.
This can be done by making a dataset out of the default model.
API:
For a Fuseki configuration, the same approach:
Another approach is to check SPARQL queries to make sure they have no
FROM,FROM NAMEDorGRAPHin them.