Ontogen

Features

  • RDF Triple Compounds (RTC) allow named-graph-like functionality without using named graphs
  • uses RDF-star for annotations

Triple Compounds

  • a set of triples assigned to a common resource.
  • The triples are assigned to a compound with an RDF-star statement using the rtc:elementOf property.

Example with rtc:elementOf

:employee38 
    :firstName "John" {| rtc:elementOf :compound1 |} ;
    :familyName "Smith" {| rtc:elementOf :compound1 |} ;
    :jobTitle "Assistant Designer" {| rtc:elementOf :compound1 |} .

:compound1 a rtc:Compound ;
    :statedBy :bob ; 
    :statedAt "2022-02-16" .

Example with rtc:elements

PREFIX : <http://www.example.org/>
PREFIX rtc: <https://w3id.org/rtc#>
 
:employee38 
    :firstName "John" ;
    :familyName "Smith" ;
    :jobTitle "Assistant Designer" .

:compound1 a rtc:Compound ;
    :statedBy :bob ; 
    :statedAt "2022-02-16" ;
    rtc:elements        
       << :employee38 :firstName "John" >> ,
       << :employee38 :familyName "Smith" >> ,
       << :employee38 :jobTitle "Assistant Designer" >> .

IRI minting

Versioning

  • the version-controlled data in Ontogen is kept in a triple store.
  • A SpeechAct represents a group of changes to the repository, similar to a commit in traditional VCS, but with additional metadata such as speaker, timestamp, and data source.
  • SpeechActs are prepared through the staging system and then stored as commits in the repository.
  • This staging system allows users to carefully prepare and review changes before they are committed as a SpeechAct. It provides more control and transparency in the versioning process, especially when working with complex RDF data.

Staging file

  • Instead of an implicitly held staging area, there is a single staging file with which the next SpeechAct to be committed can be incrementally prepared.
  • By default, this file is called STAGE.trig and contains an RDF dataset consisting of specially named graphs for the different action types:
    • og:Addition graph with changes that should simply be added to the repository without overwriting existing statements
    • og:Update graph with changes that should overwrite existing statements with the same subject and predicate
    • og:Replacement graph with changes that should replace all existing statements with the same subject
    • og:Removal graph with statements that should be removed from the repository
  • currently only one SpeechAct per staging file
  • in addition to TriG, N-Quads (with file extension .nq) and JSON-LD (with file extension .jsonld) are also supported.

References


Backlinks