URF Formats

SURF

“Markdown for JSON.” The simplified URF format that adds types and semantics to JSON while remaining compatible with TURF.

Example SURF object compared to plain JSON.
SURF JSON
|<&bb8e7dbe-f0b4-4d94-a1cf-46ed0e920832>|*User:
  authenticated = true
  sort = 'd'
  name = "Jane Doe"
  id = &bb8e7dbe-f0b4-4d94-a1cf-46ed0e920832
  email = ^jane_doe@example.com
  phone = +12015550123
  usernames = ("jdoe", "janed")
  homePage = <http://www.example.com/jdoe/>
  salt = %Zm9vYmFy
  joined = @2016-01-23
  credits = 123
;
{
  "authenticated" : true,
  "sort" : "d",
  "name" : "Jane Doe",
  "email" : "jane_doe@example.com",
  "phone" : "+1-201-555-0123",
  "usernames" : ["jdoe", "janed"],
  "homePage" : "http://www.example.com/jdoe/",
  "salt" : "Zm9vYmFy",
  "joined" : "2016-01-23",
  "credits" : 123
}

TURF

The canonical text format for URF—a superset of SURF. Simple enough for hand-written configuration files, yet powerful enough to define web ontologies.

Metadata in TURF.
Tree#456:
  sproutYear = @1950
  bio-Species = bio-Species#quercusMacrocarpa:
    bio-deciduous: true;
  ;
;
Ontolology definition in TURF.
bio-Species*urf-Class

bio-deciduous*urf-Property:
  urf-domain = bio-Species
  urf-range = urf-Boolean
;

COLURF

CSV-like files with the rigor and data types of URF, and the readability of TURF.

Under development …

NURF

Graph representation of subject, property, value statements; elegant analog of N-Triples with TURF syntax.

Under development …