OLML: A Proposal for Portable Object-Linked Context

OLML Core · v0.1

OLML stands for Object-Linking Memory Language. It is a way to record the connection between a thing and information about it. The thing can be physical or digital. The information can include notes, stories, instructions, records, and media.

OLML puts these connections into a portable file. A compatible application can open the file, show the information, and keep the connections when someone edits or shares it.

The aim is to carry the Object's information and its recorded connections between compatible apps. An Object may be found through a QR code, an NFC tag, a barcode, or a supported recognition method. Those routes can lead to the same Object identity and its context.

The package can keep records and bundled files without relying on the original company's server. External files still depend on their source. This distinction matters when a product website closes or an app is no longer available.

This proposal explains the idea and its first practical design. The companion document, OLML Stage 1: Data Model and Processing Specification, defines the current Stage 1 technical rules. A completed browser MVP, version 0.1, provides an initial implementation.

1. Objects remain. Their context becomes scattered.

Imagine a microscope in a shared lab.

A new student needs to use it. The instruction manual is on a shared drive. A calibration photo is on a former student's laptop. A short training video is in a chat. Someone remembers an unusual fault, but the repair note is hard to find.

The microscope is easy to locate. Its useful information is harder to gather.

Even after the student finds the files, questions remain. Does this photo show this microscope or the one next to it? Does this instruction apply to the current setup? Which team recorded the experiment notes?

Now imagine handing the microscope to another lab. Sending a folder helps. But the recipient still needs to understand what the files describe and how they belong together.

The same problem can appear at home. A mug may remind someone of a trip. The photos, dates, and story may be spread across several apps. Years later, the mug remains. Some of its meaning is harder to recover.

Digital things also have context. A design file may have review notes, test results, and a record of why a change was made. Those records can become separated from the design they concern.

These examples share a practical need: keep useful context connected to a thing as information becomes scattered across places, apps, and years.

A QR label on the microscope may already lead to the manufacturer's website. That is a useful route to the product manual. But the page may disappear, access may be restricted, or the company may stop running the service. The page may also describe the product model rather than this microscope's repairs or experiments.

Suppose the microscope also has an NFC tag used by a separate app. That app holds usage records, but it runs only on iOS. A student with an Android phone cannot use that route. The team's experiment logs may still be somewhere else. The limitation comes from this app and service arrangement, not from NFC itself.

OLML brings these needs into one design:

The information still has to be collected and recorded. OLML provides a structure for keeping it together and passing it on.

2. What needs to travel together

A folder can hold files. A web page can explain an object. A QR code can lead to a page. These methods are useful, and an OLML workflow can use them.

The difficulty arises when the connection depends on knowledge held elsewhere. A photo called setup.jpg does not tell another application which microscope it concerns. A QR code containing a video address does not, by itself, describe the microscope or its other records.

A well-designed database can store these relationships. OLML proposes a common file structure for carrying them between compatible applications.

The file needs to answer a few simple questions:

The recipient should not have to reconstruct every connection from filenames or ask the original author to explain the folder.

A compatible OLML app reads this common structure and keeps the recorded connections during exchange.

3. The OLML proposal

The basic model has three parts: an Object, a Memory, and a Link.

An Object is the thing the information concerns. In the lab example, it is one particular microscope. OLML stores a record of that microscope. The record includes an identifier and a title. It can also include a description, such as “white microscope at bench 3.”

A Memory is a record of selected context. “Memory” has a broad meaning here. It may be a personal story, a calibration record, a review note, or an instruction. It can contain text and references to images, video, audio, documents, or other media. A Memory can also be text-only. It does not have to include an attachment.

A Link explicitly connects an Object identifier to a Memory identifier. It tells the application which Memory concerns which Object.

Each Link contains exactly one Object–Memory pair. Several Links can use the same Object identifier. For example, (object01, mem01) and (object01, mem02) connect two Memories to the same Object. Each association remains a separate Link.

For the microscope, the model could look like this:

Lab microscope A
  ├── linked to: Setup instructions
  ├── linked to: Calibration record
  └── linked to: Training video notes

Each line represents a recorded connection. The software reads that connection from the identifiers. It does not infer it from the order of the files.

The author chooses the context and records the relationship. OLML does not discover a forgotten story on its own. It also does not establish that a statement is true. It gives people and software a clear way to preserve and use what has been recorded.

Names for people, identifiers for software

The microscope may be renamed or moved to another bench. It remains the same Object in OLML.

Its identifier stays the same. The title and description can change. This allows software to keep the existing connections through ordinary edits.

The same rule applies to a Memory. Editing a calibration note does not make it a new Memory. Its identifier continues to refer to that record.

People must still choose the right Object. Two records with similar names do not prove that they describe the same physical item. Stage 1 does not automatically reconcile independently created identities.

Organizing layers of information with Collections

One microscope can have setup instructions, calibration records, training material, and experiment logs. Different people may need different parts at different times. Putting every record in one long list can make the useful information harder to find.

A Collection groups Memories for a purpose. Think of the Object's information as a drawer. Collections act like dividers inside it. “Maintenance” can hold care instructions and calibration records. “Experiment notes” can hold the team's work. Both groups still concern the same microscope.

Each Collection has its own identity and can have a title and description. The grouping helps people choose the context they need.

4. From the idea to a simple system

The first design uses a small package. It contains one Object, one Collection, and one or more Memories. Each Memory has an explicit Link to the Object.

A package is the portable file that carries the Object record, Collection, Memories, and Links. Stage 1 puts one Collection in each package.

The Collection and package have separate identifiers because they name different things. The Collection ID identifies the grouping, such as “Maintenance.” The package ID identifies the whole file across ordinary copies and edits. The file includes the Object, the Collection, and the linked Memories.

Object, Memory, and Collection records each have their own identifiers and descriptive information. The package ID lets the app recognize the continuing file as a whole. Users do not fill in these IDs. The app generates them for new records and keeps existing IDs when records are reused.

Different packages can concern the same Object. They keep the same Object ID and carry different Collections. An Object Hub lists those available Collections. For the microscope, it lets a reader choose “Maintenance” or “Experiment notes” before opening the relevant package.

Stage 1 package with one Object, one Collection, explicit Links to one or more Memories, required state hashes, detailed Memory fields, and optional marker methods and assets.

Figure 1. The Stage 1 package brings the records and their connections together. The app generates the IDs. “Required state hashes” are fingerprints of specified saved data, not a saved/unsaved indicator or a conflict status. Markers and assets are optional. The physical Object is represented by its record.

Making a package

An author creates a record for the microscope, or reuses its known identity. The author gives the Object a title and adds a Memory called “Setup instructions.” They enter a note and may attach a photo.

The application creates identifiers for the new records. It stores the Link between the microscope and the setup Memory. The author can add more Memories to the same Collection.

On save, the application checks the records and their references. It calculates hashes, or fingerprints, of the specified data and records them in the package. These values help the app compare saved contents later.

The resulting .olml file is a ZIP archive. It contains a structured text file called olml.json. This file describes the records and their connections. The archive can also hold supporting files, such as photos and videos.

Keeping files inside or outside the package

An attachment can travel inside the package. The recipient then has the file itself without retrieving it from another service. A suitable application can show the bundled material offline. This copy can remain usable even after the original website closes.

An attachment can also stay outside the package. In that case, the package carries its address and related information. This can be useful for a large video.

A package can use both approaches. It might include the setup photo and point to an online training video.

External content still depends on its source. The video may move or become unavailable. The Memory, its description, and the recorded address remain in the package. The application can show the address even when it cannot play the video.

A Memory record in olml.json has a required ID and title, optional note, time and place, and optional media references to bundled bytes or external content.

Figure 2. A Memory record and an attached file are different parts of the package. Bundled files travel with it. External references travel as recorded addresses; the remote files remain outside.

Reading and exchanging a package

A recipient opens the package in a compatible application. The application reads the Object and Memory records, follows their Links, and presents supported content.

The recipient can also import the package into a Library. A Library keeps available packages and lookup information. In the local design, it lives on the user's device.

The intended exchange is straightforward: one application writes the package; another reads it and makes a supported edit; the edited package can be opened again with its continuing identifiers intact.

The receiving app preserves the records and files it can safely retain. If it cannot safely edit the package, it reports that limit. The intended exchange should be tested between independent clients.

5. Finding and updating the information

Open the file, or start from the Object

A user can open an OLML package directly. No scan is needed.

An optional Object Marker provides another route. It records a recognition method, the value or reference material that method needs, and a binding to the Object identifier.

A QR label is one example. In the microscope workflow, the application generates a QR code from the Object identifier. The author can print it and attach it to the microscope.

A compatible reader scans the label and obtains the identifier. It then looks for available packages about that Object. The reader follows their Links to the Memories.

Scan the label
    ↓
Obtain the Object identifier
    ↓
Find available packages
    ↓
Read the linked Memories

In the local workflow, the package has already been imported. A scan does not search every OLML file in the world. If the reader has no package for that identifier, it needs one before it can show the context.

One Object can have more than one marker. A QR code and an NFC tag can both lead to the same Object identity. Other methods may use visible text or reference images. Each method needs suitable data and a reader that supports it.

These methods use existing recognition technologies. Recording an image reference does not itself give an application image-recognition capability.

When several Collections are available, the Object Hub presents a choice. The student might choose “Maintenance” rather than “Experiment notes.” A package can also omit markers entirely and remain directly readable.

Keep identity while recording changes to content

Suppose a saved instruction says “Inspect monthly.” The author changes it to “Inspect weekly” and saves again. The Memory ID and package ID stay the same. The saved contents have changed.

OLML uses the term saved state for the recorded data at a save. It calculates a state hash, a fingerprint of specified data, for the Object, each Memory, the Collection, and the package. The hashes help compare contents under the same calculation rules.

In this example, the edited Memory and the package receive updated hashes. The unchanged records retain their values. This happens on save even if there is no second copy to compare.

An ID answers “Which record or package is this?” A state hash helps answer “Is its covered data the same as before?” It does not say “The save succeeded” or “This file is in conflict.”

Unsaved edits do not update the recorded hashes. Discarding those edits leaves the saved contents and hashes unchanged. These fingerprints also do not preserve a recoverable copy of every earlier version.

Handle a different copy explicitly

The author exports the updated package. An older copy may still exist on disk.

Later, someone imports that older copy into the same Library. The application finds the same package ID. It compares the incoming file's recorded hash with the Library's recorded hash under compatible calculation rules. A difference triggers a conflict prompt. The user chooses which copy to use locally.

A saved state exists before this comparison. A conflict is a result of comparing different states for the same package. It does not necessarily mean that both people edited the same sentence.

The application does not decide that one version is correct merely because of its time or hash. It does not merge the two copies automatically. Selecting a version for the Library does not automatically replace the other file on disk.

Two Collections about the same microscope are a different case. “Maintenance” and “Experiment notes” have separate package identities. Their shared Object identifier does not make them conflicting copies of one file.

State comparison also has limits. It covers specified recorded data. A saved video address can remain unchanged while the video at that address is replaced. Stage 1 does not detect that remote replacement. A state value also does not prove authorship, ownership, or the truth of a Memory.

6. Stage 1 and the completed MVP

The first publication has three parts: OLML Core v0.1, the Stage 1 specification v0.1, and the completed MVP v0.1.

The paper explains the proposal. The technical design explains the records and processing rules. The MVP gives readers a working browser application to explore.

The MVP includes package creation and editing, import and export, a browser-local Library, and state processing. It also contains QR and barcode scanning and text-recognition paths. Those paths depend on browser capabilities and their runtime requirements.

The MVP is an initial implementation. Some Stage 1 decisions differ from its current behavior. For example, Stage 1 permits packages without markers, while the MVP's export check requires one. The technical companion records these differences.

The local application is a practical starting point. The broader design also allows a Reader and Library to run in separate components. A future application could query an accessible Library by Object identifier. Stage 1 does not require a central registry.

7. Limits and the next practical step

OLML's immediate purpose is to make recorded object context easier to carry, read, and edit. It does not require every part of a larger service to exist first.

Later stages may add access control, automatic synchronization, branch merging, or registry services. Their detailed rules are outside Stage 1. Marker support also depends on the reading device and its software.

The record structure also allows a broader form of reuse. A future workflow could export a Memory as a separate block and import it for use with another Object. For example, (object02, mem01) would connect the same continuing Memory to a second Object. Its Memory ID would remain unchanged, and the new association would have its own Link. This block-exchange workflow is a planned direction, not a feature claimed for the current MVP.

Software agents could use the same records as context. They could also invoke compatible tools to create or edit packages. That direction needs its own access rules and interfaces. This publication does not include a deployed agent integration.

The next useful test is small. Create a microscope package with instructions, a bundled photo, and a QR binding. Open it in another independently implemented client. Edit one Memory. Return the package to the first client. Check whether the identifiers, Links, attachments, and supported marker data survive. Then check whether both clients calculate comparable hashes for the same recorded data.

Repeat the exchange with a package that has no marker. The direct reading path should remain useful on its own.

These are proposed tests, not reported results. They would help show where the common design is sufficient and where the technical rules need more detail.

The first step is a file someone can carry and a reader that can understand it. For the person standing beside the microscope, the intended result is simple: find the right context, understand what it concerns, and pass it on without rebuilding its connections.

Connecting objects with digital information has a substantial history. OLML does not claim to have invented object memories, identifiers, explicit relationships, or portable resource packages.

OLML explores a particular combination of choices: identified Objects and Memories, explicit Link pairs, Collections, portable packages, optional recognition bindings, and user-directed handling of differing imported state. These are the choices this project develops and tests. Similar concepts in the work above do not imply that their formats are interchangeable with OLML.

MagnetStory

MagnetStory — A home for your travel keepsakes.