Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "PDS Architecture"

(HBX)
 
(147 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#eclipseproject:technology.higgins|eclipse_custom_style.css}} [[Image:Higgins.funnell.PNG|right]] __NOTOC__
+
{{#eclipseproject:technology.higgins|eclipse_custom_style.css}} [[Image:Higgins.funnell.PNG|right]]  
  
What is often called a '''personal data store''' lies at the heart of a '''Personal Data Service (PDS)'''. This page describes both the PDS and the personal and 3rd party managed data stores that it manages.
+
This document describes the top level Higgins 2.0 PDS components under active development. Here are the bugzilla component names:
 +
* H2-Client
 +
* H2-HBX
 +
* H2-PDS
 +
* H2-PDS Support
 +
* H2-ADS
 +
* H2-Data Model
  
=== Introduction ===
+
== Front End  ==
  
A PDS provides a central point of control for information about a person, their lives, friends, interests, affiliations and so on. It provides a dashboard for the user’s information. A PDS provides the ability update self-asserted data as well as a way to manage authorizations and set policies under which 3rd parties gain access to selected portions of the user’s information. It implements a Discovery API that allows the user to be discoverable by other people, organizations, apps and exchanges when the incoming inquiries meet criteria the user specifies.
+
There are two front end components: a web client, and a browser extension.  
  
A '''personal data store''' is a data service where self-asserted information about the user is stored and protected. A ''managed'' data store is a third party service that manages information about the user.
+
[[Image:Higgins client 2.0.222.png|center]]
  
[[Image:PDS intro 2.0.121.png|center]]
+
=== Client ===
  
A PDS enables the user to participate as a peer within what we anticipate will be a distributed personal data ecosystem of interoperable PDSes developed and operated by a wide variety of organizations. We share a vision with other open source projects of an internetwork of PDSes that can freely exchange information of a wide variety of types. One person will have links to data objects stored in a friend's PDS. These pointers, taken together, form the social graph that is physically distributed across the PDSes.  
+
The client is written in HTML and JavaScript and runs in any desktop browser (e.g. IE, FF, Safari, Chrome). In the future we also plan to make it display well on the limited screen size of smartphone mobile browser (e.g. iPhone, Android, etc.).
  
A PDS centralizes control by providing the person with a dashboard, but it does not centralize the location of the data. Quite the opposite. At the heart of the PDS concept is the idea of a distributed architecture. Theoretically every person could run their own PDS in their home in or in the cloud. Alternatively, a PDS may be operated by an organization; hopefully an organization that acts as an agent of the individual.
+
* [[Org.eclipse.higgins.js.pds.client | .js.pds.client]]
  
=== PDS  ===
+
=== HBX ===
  
Information from a variety of data sources (e.g. social networks, telco and health data sources) are virtually integrated by the PDS and presented in a "dashboard" application in a browser or in desktop and mobile clients. The PDS gives you control over your own information by allowing you to share selected subsets of it with other people and organizations that you trust.  
+
The Higgins browser extension makes possible functionality like browser-side integration with other web APIs and sites, scraping and form filling.
  
A PDS:
+
* .chrome.bx - Chrome-only Higgins Browser Extension
 +
* .js.pds.cde - Connection Data Engine 1. Loads CDE1-compatible JSON Scripts (See [[App-data vocabulary]]) from templates and uses them to implement auto-login, auto-registration, form filling, etc.
 +
* [[org.eclipse.higgins.js.pds.cde2|.js.pds.cde2]] - Connection Data Engine 2. Loads CDE2-compatible JSON Scripts (See [[App-data vocabulary]]) from templates and uses them to implement auto-login, auto-registration, form filling, etc.
 +
* .js.pds.connector.common
  
* Is a service that enables the user to participate as a peer within a distributed personal data ecosystem
+
====Functionality====
* Provides a web portal that provides a dashboard view of the user’s data, the ability update self-asserted data, and a way to manage authorizations (e.g. using something like an UMA Authorization Manager) and set policies under which 3rd parties gain access to portion of the user’s information
+
* Implements a Discovery API that allows you to be discoverable by other people, organizations, apps and exchanges whose inquiries that meet criteria you specify
+
* Provides an identity provider (IdP) endpoint (e.g. OpenID OP)
+
* Implements two factor authentication
+
* Provides a run-time environment for apps that run within the PDA itself
+
* Decrypts data from your PDS (using a locally stored key) to allow it to be managed in the PDA's "dashboard" UI. Attribute data stored locally on the PDA are encrypted by the PDS Client using an internally managed key prior to transmission to the PDS. Thus data attribute values on the PDS are blinded from the service operator offering/hosting the PDS.
+
*Manages access by external apps (aka service providers) to your data that is stored locally as well data stored in PDSes managed by external organizations
+
  
===Personal data service===
+
=====Browser interactions=====
* Provides a personal data abstraction layer mapping internal and external data sources into a consistent data model based around notions of personas
+
When the user's browser lands on a new webpage it:
* Manages a set of your personas (e.g. Work, Home & Friends, Citizen, Health, Anonymous)  
+
* Determines if the current PDS user is currently logged in.
* Provides an encrypted "lock box" in the cloud such that certain internally stored data in the PDS (e.g. your persona definitions) cannot be read by the PDS's operator
+
** This requires there be a template for the current site (domain) and that it contains an IsLoggedIn script
* Backs up personal data stored on your desktop and mobile devices
+
** It is possible that a different PDS user (not the current PDS user) is currently logged in.
* Synchronizes personal data to other devices and computers owned by the person using a variety of network protocols.
+
* If the user is not logged in then
* Links information from your personas to accounts (profiles) that you have at services providers, websites, social networking sites, etc. and over which you share joint control and rights
+
** It automatically logs the user in (or should it just auto-fill in the userid/password and wait for the user to click?)
* Links information from your personas with the personas of your friend's and colleague's PDSes
+
* Looks for every appropriate form on the page
 +
** Automatically fills in each form as best it can  -- this requires there be a template for the current site (domain) and that it contains a Fill script for this form (is there one fill script container with lots of per-form-submit-URL scripts? Or are there lots of Fill scripts each with an for-this-form-submit-URL attribute?
 +
* Waits for the user to submit a form (including a login form with or without a custom template?)
 +
** Scrapes the form submit data and writes it into the PDS. If it is a login form then it writes into the proxy object, else the corresponding context
  
===Managed data service===
+
=====Web client interactions=====
*Gives you control over your information stored in hundreds of external silos
+
When the user opens a connection editor page (e.g. to edit the nytimes.com connection):
*Provides a personal data abstraction layer mapping internal and external data sources into a consistent data model based around notions of personas
+
* The BX immediately starts a background process to login and scrape the latest data values from the site.
 +
** This is necessary because the user may have gone to the site directly (not using the PDS) and updated data values. A progress bar that shows this background process.
 +
* If the user edits an attribute it writes the updated attribute value to the site.
 +
** If this "write" operation happens before the background sync completes, there is some possibility for sync collisions and and confusion.
  
=== PDS Apps ===
+
== Back End Components  ==
  
The following kinds of apps are shown in the diagram above:
+
There are three back end components mostly written in Java and running in the cloud (e.g. Amazon AWS):
# PDS App – A web app that consumes data from the PDS
+
# Exchange – A kind of PDS App that is involved in creating personal data exchanges analogous to a stock exchange. An exchange itself is a platform that supports yet another layer of apps above it [this is not shown above].
+
# Data Refinery – A kind of PDS App that reads datasets from the PDS, refines them, and writes them back to the PDS user. The refinery process includes analytics, inferencing, segmentation, etc. Refineries generally to create higher value, more refined data from the more raw forms of data, while often also making the data sets less personally identifying.
+
  
=== Active Clients  ===
+
*PDS
 +
*PDS Support
 +
*ADS
  
As shown at the top of the diagram above, we are developing native Windows, Mac and mobile active clients for the PDS. These clients have two advantages over the web-based PDA. '''First''', data stored on these devices is entirely under your control without the need to rely on third party hosted services. '''Second''', the client is closely integrated with the browser and other local apps. This allows the client to capture information about you as you browse and can augment your web experience through web augmentation (overlaying context-specific information within your browser) as well as through automatic form filling (e.g. filling in your passwords).
+
[[Image:Higgins server 2.0.230.png|center]]
  
=== Data model for information about a person ===
+
===PDS===
 +
PDS Subcomponents:
  
We all play different roles and share different sub-sets of our social graph and attributes depending on who we're interacting with. For this reason a single person is represented as a set of partial identities that are used in different situations. For this reason, the heart of the model used by the personal data store and managed data stores is based on a set of objects called ''contexts.'' Each context holds a partial digital identity called a ''persona''. Each persona instance has a set of attributes and values. Thus one individual (natural person, data subject) is represented as multiple personas each in its own context-container.  
+
*.pds.usermanager.ws - simple web service to manage user accounts, change password, etc.
  
These contexts are usually rendered as digital cards in a user interface. A context/card could hold the attributes of a person's driver's license, home address, credit card. They might simply hold a verified assertion that a person is over 21 years of age. Contexts may also be about friends and colleagues, not just about you.
+
===PDS Support===
 +
PDS Support Subcomponents:
  
The user can also choose to collect a set of these partial identities into something called a ''persona''. For example the user could group together a home address card, an AMEX credit card, a proof of age-over-21 and a card holding a set of "shopping friends" into an "eCommerce" persona. This is done by tagging each of these cards with the "eCommerce" label. When the user goes to a new eCommerce site, it can "project" (either by form filling or something more sophisticated!) the minimal set of required attributes from these "eCommerce" cards to the site without tedious data entry.
+
*.pds.client - wrapper around Open Anzo java client
  
What's more, if the user desires, the user can give a semi-permanent (revocable) permission to the relying site, app or system to be able to access an approved set of attributes. The user can basically send a "pointer" to these cards to the relying site. The relying site can de-reference the pointer and read (and in some cases update) selected attributes.
+
===Attribute Data Storage===
 +
ADS Subcomponents:
  
The data in these contexts adheres to the Higgins [[Persona Data Model 2.0]], a general purpose vocabulary for describing identity and social networking data.
+
*PLANNED: .ads.ld - Linked Data endpoint
  
== Components ==
+
== Data Model ==
  
*[[PDS 2.0]]: Personal Data Store core service
+
Data attributes whether created by the user or imported from an external service are stored in a common data model. This allows them to be consistently displayed to, and in some cases edited by, the user irrespective of its original source. We call this the [[Persona Data Model 2.0]].  
*PDA: We have not even started developing this component for Higgins 2.0. We developed something similar in [[Cloud Selector 1.1|Cloud Selector]] from Higgins 1.1. Similar in that it was a pure web app and that it was a "client" of the core PDS.  
+
*[[PDS Client 2.0]]: a library used to access the [[Personal Data Store 2.0]]. It is incorporated into the PDS agent as well as PC and mobile PDS clients.
+
*[[Authentication Service 2.0]]: is an OAuth web service that authenticates PDS users and returns an access token that is relied on by the PDS Agent and the PDS Vault.  
+
  
=== Data Models  ===
+
[[Category:Higgins 2]]
 
+
Data models used in Higgins code and services:
+
 
+
[[Image:Higgins data models.png|center]]
+
 
+
*[[Persona Data Model 2.0]]
+
*[[Higgins Data Model 2.0]]
+
*[[Context Data Model 2.0]]
+
 
+
=== IdAS   ===
+
 
+
The IdAS solution is a testbed for exercising the IdAS Java framework.
+
 
+
*Higgins 1.1: See [[Higgins 1.1 Plan#IdAS_Solution_1.1]]
+
*Higgins 1.0: [[IdAS Solution 1.0]]: a basic configuration of the [[Identity Attribute Service 1.0]] (IdAS). IdAS is a java framework that provides a common interface to identity, profile, and relationship data from external data sources (e.g. websites, databases, directories).
+
 
+
=== XDI4J  ===
+
 
+
XDI4J is a java library for working with XDI.
+
 
+
*Higgins 1.1: [[XDI4j 1.1]]
+

Latest revision as of 12:12, 4 January 2012

{{#eclipseproject:technology.higgins|eclipse_custom_style.css}}
Higgins.funnell.PNG

This document describes the top level Higgins 2.0 PDS components under active development. Here are the bugzilla component names:

  • H2-Client
  • H2-HBX
  • H2-PDS
  • H2-PDS Support
  • H2-ADS
  • H2-Data Model

Front End

There are two front end components: a web client, and a browser extension.

Higgins client 2.0.222.png

Client

The client is written in HTML and JavaScript and runs in any desktop browser (e.g. IE, FF, Safari, Chrome). In the future we also plan to make it display well on the limited screen size of smartphone mobile browser (e.g. iPhone, Android, etc.).

HBX

The Higgins browser extension makes possible functionality like browser-side integration with other web APIs and sites, scraping and form filling.

  • .chrome.bx - Chrome-only Higgins Browser Extension
  • .js.pds.cde - Connection Data Engine 1. Loads CDE1-compatible JSON Scripts (See App-data vocabulary) from templates and uses them to implement auto-login, auto-registration, form filling, etc.
  • .js.pds.cde2 - Connection Data Engine 2. Loads CDE2-compatible JSON Scripts (See App-data vocabulary) from templates and uses them to implement auto-login, auto-registration, form filling, etc.
  • .js.pds.connector.common

Functionality

Browser interactions

When the user's browser lands on a new webpage it:

  • Determines if the current PDS user is currently logged in.
    • This requires there be a template for the current site (domain) and that it contains an IsLoggedIn script
    • It is possible that a different PDS user (not the current PDS user) is currently logged in.
  • If the user is not logged in then
    • It automatically logs the user in (or should it just auto-fill in the userid/password and wait for the user to click?)
  • Looks for every appropriate form on the page
    • Automatically fills in each form as best it can -- this requires there be a template for the current site (domain) and that it contains a Fill script for this form (is there one fill script container with lots of per-form-submit-URL scripts? Or are there lots of Fill scripts each with an for-this-form-submit-URL attribute?
  • Waits for the user to submit a form (including a login form with or without a custom template?)
    • Scrapes the form submit data and writes it into the PDS. If it is a login form then it writes into the proxy object, else the corresponding context
Web client interactions

When the user opens a connection editor page (e.g. to edit the nytimes.com connection):

  • The BX immediately starts a background process to login and scrape the latest data values from the site.
    • This is necessary because the user may have gone to the site directly (not using the PDS) and updated data values. A progress bar that shows this background process.
  • If the user edits an attribute it writes the updated attribute value to the site.
    • If this "write" operation happens before the background sync completes, there is some possibility for sync collisions and and confusion.

Back End Components

There are three back end components mostly written in Java and running in the cloud (e.g. Amazon AWS):

  • PDS
  • PDS Support
  • ADS
Higgins server 2.0.230.png

PDS

PDS Subcomponents:

  • .pds.usermanager.ws - simple web service to manage user accounts, change password, etc.

PDS Support

PDS Support Subcomponents:

  • .pds.client - wrapper around Open Anzo java client

Attribute Data Storage

ADS Subcomponents:

  • PLANNED: .ads.ld - Linked Data endpoint

Data Model

Data attributes whether created by the user or imported from an external service are stored in a common data model. This allows them to be consistently displayed to, and in some cases edited by, the user irrespective of its original source. We call this the Persona Data Model 2.0.

Back to the top