semantic_forms icon indicating copy to clipboard operation
semantic_forms copied to clipboard

New view: per user contributions

Open jmvanel opened this issue 8 years ago • 1 comments

Currently a user has only one way to find all her contributions: list her named graph, typically named user:myName or mailto:[email protected] . But then this is a flat list of triples.

A more synthetic view is needed, broken into:

  • resources created by me
  • resources annotated by me
    • internet LOD resources
    • local resources

Algorithm:

    1. From the user named graph, get the triples:
?S a ?CLASS .
    1. if this triple is in user's named graph, it has been created by user
    1. Do 1. & 2. in a single SPARQL
    1. local resources start with local host URL prefix

jmvanel avatar Feb 22 '17 14:02 jmvanel

We need to get any user, not just the one currently logged. We need also a web service.

To get the list of users, query the foaf:OnlineAccount whose URI start with user: or mailto: . BTW, the foaf:OnlineAccount specific to SF should be rdf:type form:OnlineAccount , to easily distinguish them from ordinary accounts.

To get resources annotated by a given user, a query must be made on the secondary history database TDB2. This could be implemented by giving read SPARQL access to TDB2.

jmvanel avatar Dec 05 '17 10:12 jmvanel