W3C home > Mailing lists > Public > public-openannotation@w3.org > July 2013

Re: JSON-LD Telecon Minutes for 2013-07-02

From: Robert Sanderson <azaroth42@gmail.com>
Date: Tue, 9 Jul 2013 08:54:07 -0600
Message-ID: <CABevsUGJgO9zvBYXY1e8GANK13Bo4p9EZJrUcs1Q2ywEs+Cfbw@mail.gmail.com>
To: Markus Lanthaler <markus.lanthaler@gmx.net>
Cc: Linked JSON <public-linked-json@w3.org>, RDF WG <public-rdf-wg@w3.org>, public-openannotation <public-openannotation@w3.org>
Right, the subject of the triple isn't a list itself, thereby avoiding the
problem of serialization.

so:

<someUri> a some:Class ;
  some:property "some value" ;
  rdf:listHead (1,2,3,4) .

I think this would be easier for other serializations than associating info
with the list head node itself, but if the algorithm can take that into
account as you suggest, that would solve our immediate issue, yes.

Many thanks!

Rob



On Tue, Jul 9, 2013 at 3:23 AM, Markus Lanthaler
<markus.lanthaler@gmx.net>wrote:

> On Tuesday, July 09, 2013 6:46 AM, Pat Hayes wrote:
> > On Jul 8, 2013, at 1:01 PM, Robert Sanderson wrote:
> > > Something like:
> > >
> > > rdf:listHead  -- The object, which must be a blank node with rdf:type
> > rdf:List, is the first entry in a list associated with the subject
> > resource.
> >
> > I guess I don't follow this. If the object is of type LIst, and it is
> > the first item in a list, then you have a list of lists. Which is
> > legal, but I don't see how it helps with the problem we have here. And
> > what does "associated with" mean?
>
> I think was Robert meant was something like
>
>     <> rdf:ListHead _:head .
>     <> ... other properties of <> ...
>     _:head rdf:type rdf:List .
>     _:head rdf:first ...
>     _:head rdf:rest _:item2 .
>     _:item2 ...
>
> If we decide to modify the JSON-LD algorithms (I expect we do that) you can
> do something like this to associate other properties to the *list head*:
>
>    {
>      "@id": "_:head",
>      ... other properties ...
>      "rdf:first": "A",
>      "rdf:rest": { "@list": [ "B", "C" ] }
>    }
>
> You can do exactly the same in Turtle
>
>     _:head ... other properties ...
>     _:head rdf:first "A".
>     _:head rdf:rest ( "B", "C" ) .
>
> Robert, would that address your problem?
>
>
> --
> Markus Lanthaler
> @markuslanthaler
>
>
>
Received on Tuesday, 9 July 2013 14:54:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 9 July 2013 14:54:36 UTC