semantic_forms
semantic_forms copied to clipboard
New view: per user contributions
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:
-
- From the user named graph, get the triples:
?S a ?CLASS .
-
- if this triple is in user's named graph, it has been created by user
-
- Do 1. & 2. in a single SPARQL
-
- local resources start with local host URL prefix
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.