nLSDgraphs

nLSD graphs

Basic line format:

Start counting from 0.

type

data

STR

string data, turn newlines into "\n" and slashes into "\\"

INT

integer, infinitely long possible

FLOAT

float, whatever

LIST

comma seperated list of nodes that are elements of the list

DICT

comma seperated list of nodes, k,v,k,v,k,v,...

REF

(URL (optional: space node#/flagid (optional-repeat space index)) - where to tie into another nLSD graph

optional: node# or flag ID for identifying start point w/in graph at URL

optional: indexes are either LIST indexes or DICT key-names

XML-RPC

URL - will turn into an XML-RPC server proxy object

FLAG

(string name) + (a space) + node number

data = nLSD.Graph( data=[1,2,3] )
data = nLSD.Graph( uri="http://speakeasy.org/~lion/data/" )
data = nLSD.Graph( data=["hello", ", ", "world!", nLSD.Ref( "http://speakeasy.org/~lion/data/" ) )

You can also point a Ref at a particular node of the target graph, by identifying it by number.

Nitpicking details:

Future Possibilities:

last edited 2008-03-23 14:54:52 by 207