Introduction
Our digital lives are increasingly fragmented across "data traps"—siloed services like Google, Microsoft, and various social platforms. While these services excel at data collection, they make cross-service querying notoriously difficult. For instance, finding an email from a person met at a specific physical location months ago requires manual cross-referencing of location history, calendars, and inboxes. Furthermore, raw data, particularly GPS traces, is often "semantically poor," lacking the context of why a user was at a location or who they were with.
Thymeflow addresses these challenges by integrating disparate data streams into a unified, searchable "Personal Knowledge Base" (PKB). By prioritizing a local-first approach, it ensures user privacy while enabling complex semantic queries.
System Architecture
Thymeflow is built on a modular architecture centered around the Resource Description Framework (RDF) standard, representing data as an interconnected graph. The system's workflow is divided into three primary stages: ingestion, enrichment, and querying.
- Loaders: These adapters fetch data from external sources (e.g., IMAP for email, CalDav for calendars, Google Location History) using standard protocols and transform it into the system's internal RDF schema.
- The Enrichment Pipeline: This core component triggers "enrichers" when new data arrives. These include entity resolution (linking multiple identifiers to one person), stay detection (analyzing GPS clusters to identify significant locations), and spatio-temporal alignment (matching stays with calendar events based on time and geocoding).
- Querying: Users interact with the Knowledge Base using a SPARQL 1.1 engine, supplemented by Apache Lucene for full-text search, allowing for complex analytics across different data dimensions.
Semantic Data Modeling
The power of Thymeflow lies in its ability to provide context to raw data. By semantically linking sources, the system transforms a simple coordinate into a meaningful event.
As shown in the schema, the system maps relationships between agents, events, locations, and messages. This allows for incremental enrichment; for example, a new calendar entry can trigger a geocoder, which subsequently allows a later location trace to be automatically linked to that specific meeting. This "Digital Home" concept allows users to gain the benefits of integrated "Big Data" analytics without sacrificing data sovereignty to cloud providers.
Results and Future Directions
Thymeflow demonstrates the feasibility of cross-domain querying, such as retrieving the subjects of all emails sent by the organizer of a specific calendar event during the month that event took place. As a functional Scala-based open-source tool, it provides a concrete implementation of a privacy-preserving PKB.
However, challenges remain. Automated enrichment occasionally requires manual user verification, and the system is currently limited to standard office-style data (email, calendar, contacts). Future work will focus on expanding source variety to include social media or IoT data and evaluating the long-term scalability of local RDF storage as user datasets grow over several years.
Summary updated