[oslc-core] Updated ChangeLog Proposal - nextPage rdf:nil
Frank Budinsky
frankb at ca.ibm.com
Tue Mar 22 11:24:16 EDT 2011
The more I think about this, I'm starting to wonder what it means exactly
to be an rdf:List. Once we start adding things (i.e., a URI) to list
entries, the list can no longer be serialized with the "( ... )" syntax.
The same is true if the list entries have any other properties. So, given
that all the actual change entries would be unique in our ChangeLog example
(i.e., we don't need the ability to have multiple list entries share the
same actual change entry) why don't we also just flatten the rdf:first
anonymous resource into the list entry itself? For example, change this:
:b1 rdf:first
[ a oslc:create ;
oslc:changed <https://.../com.ibm.team.workitem.WorkItem/23> ;
oslc:at "103"^^xsd:int
] ;
rdf:rest :b2 .
to this:
:b1 a oslc:create ;
oslc:changed <https://.../com.ibm.team.workitem.WorkItem/23> ;
oslc:at "103"^^xsd:int ;
rdf:rest :b2 .
In this case, our list's never have rdf:first properties, but there's
nothing that says it's mandatory (i.e., rdf:nil, which is an instance of
rdf:List doesn't have it either). The only thing that seems to be special
about rdf:List is that if, and only if, there is exacly one, rdf:first and
rdf:rest property, and nothing else, can the List be represented in the
short form syntax.
Am I missing something?
Thanks,
Frank.
Martin Nally/Raleigh/IBM wrote on 03/21/2011 04:43:00 PM:
> [image removed]
>
> Re: Updated ChangeLog Proposal - nextPage rdf:nil
>
> Martin Nally
>
> to:
>
> Frank Budinsky
>
> 03/21/2011 04:44 PM
>
> Cc:
>
> oslc-core
>
> I had not realized that rdf:nil is of type List.
>
> I think it's better to keep changeLog consistent with the rest of
> OSLC paging and open a work-item to suggest that OSLC should revisit
> the way it indicates the end of the page sequence.
>
> Best regards, Martin
>
> Martin Nally, IBM Fellow
> CTO and VP, IBM Rational
> tel: +1 (714)472-2690
>
> Frank Budinsky/Toronto/IBM wrote on 03/21/2011 02:12:17 PM:
>
> > [image removed]
> >
> > Re: Updated ChangeLog Proposal
> >
> > Frank Budinsky
> >
> > to:
> >
> > Martin Nally
> >
> > 03/21/2011 02:12 PM
> >
> > Cc:
> >
> > oslc-core
> >
> > > IMO, It is important to put "oslc:nextPage rdf:nil" to end the ...
> > I think we'd need to add something like oslc:nilPage for this
> > purpose because rdf:nil is defined to be an instance of rdf:List,
> > which pages are not.
> >
> > Should we open this as a separate issue? Do we need to keep the
> > ChangeLog compliant with the current OSLC paging model (i.e., have
> > no nextPage property on the last page) or can we link these issues?
> >
> > Frank.
> >
> > Martin Nally/Raleigh/IBM wrote on 03/18/2011 01:45:46 PM:
> >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://open-services.net/pipermail/oslc-core_open-services.net/attachments/20110322/167d9fac/attachment-0003.html>
More information about the Oslc-Core
mailing list