OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

xdi message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [xdi] XDI Grapher


Hmm are you saying the box should grow horizontally to make the XRI fit into it? Yes that wouldn't be hard, but then subjects/predicates/etc wouldn't be directly above/below each other anymore, which I thought was one of the main ideas behind this notation.

In order words, right now each "addressing level" takes you further right by exactly 1 box size. If I start dynamically changing box sizes, that wouldn't be the case anymore.

Markus

On Sat, Jan 2, 2010 at 10:55 PM, Drummond Reed <drummond.reed@xdi.org> wrote:
Also, I found one other bug: when you input a literal it sizes the box to fit the literal, but when you input an XRI longer than will fit in the box, it doesn't "word wrap" the box size to fit the XRI.

If you can set it to adjust the box size to fit the XRI, then XDI Grapher would be able to produce a box graph of any XDI document. Killer!

Thanks,

=Drummond


On Sat, Jan 2, 2010 at 1:52 PM, Drummond Reed <drummond.reed@xdi.org> wrote:
Markus,

Amazing!!! As soon as I saw your mail I realized what you had been up to, but I had no idea how easy or fun it would be to play with XDI Grapher. This is going to be a fantastic XDI teaching tool!

RE the B4 example (which applies to the XRI [+a+b+c]), I think the problem is in the way you are implementing the associative semantics. You in fact are following exactly the path I did in originally developing the box graphing notation. I thought the box graph for +a+b+c would look just like what XDI grapher currently shows for +a+b+c. However, because of the associative semantics of $has statements, all of the XDI RDF statements listed for the B4 example should produce the same box graph.

For example, both of the following XDI addresses...

  (+a/(+b/+c))
  ((+a/+b)/+c)

...reduce to the XRI +a+b+c.

So the rule I followed was that box graph for any set of $has statements (whether expanded or contracted) was the union of the box graphs of all of the $has statements that are equivalent. The result is always a completely filled grid of x^2 boxes where x is the number of XRI subsegments.

Give me a ring on Skype when you have time and let's discuss it.

Thanks again for the fantastic New Year's present!

=Drummond


On Sat, Jan 2, 2010 at 12:29 AM, Markus Sabadello <markus.sabadello@gmail.com> wrote:
I couldn't help, there was this voice in my head that kept telling me I had to try this:
http://graceland.parityinc.net/xdi-grapher/XDIGrapher

Unfortunately the tool isn't 100% consistent with the examples in
http://www.oasis-open.org/committees/download.php/35590/xdi-rdf-box-graphs-v2.pdf

In particular, the examples in B4 don't yield the same results.
Not sure if that's a problem with the notation or with the $has semantics, or if I just didn't implement it correctly.

Anyway it should be a fun tool to experiment with.. Happy new year..

Markus






[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]