[oslc-core] Query syntax BNF - What is uri_ref_esc ?

Steve K Speicher sspeiche at us.ibm.com
Wed Jul 21 12:58:52 EDT 2010


Arthur,

I think this would be very useful to add, it is it exactly.

Thanks,
Steve Speicher | IBM Rational Software | (919) 254-0645


Arthur Ryman/Toronto/IBM wrote on 07/21/2010 12:37:47 PM:

> From: Arthur Ryman/Toronto/IBM at IBMCA
> To: Steve K Speicher/Raleigh/IBM at IBMUS
> Cc: oslc-core at open-services.net
> Date: 07/21/2010 12:43 PM
> Subject: Re: [oslc-core] Query syntax BNF - What is uri_ref_esc ?
>
> Steve,
>
> The attribute rdf:resource is just the RDF/XML syntax for specifying
> the object of a triple. rdf:resource is itself not a property.
>
> I saw this comment from Ian Green:
>
> I would like to query for resources that have a relationship to some
> URI. So for example:
> <oslc:resource>
>   <dc:title>some resource</dc:title>
>   <acme:relationship rdf:resource="http://cyote.com/res/res1"/>
> </oslc:resource>
> how would I construct a query to get all resources that have a
> <acme:relationship> with a the rdf:resource attribute of http://
> cyote.com/res/res1?
> we could treat rdf:resource as a special case I guess, but what if
> the property was:
> <acme:relationship priority="high"
df:resource="http://cyote.com/res/res1"/>

> Assume that the acme: prefix is mapped to http://acme.example.org/ns
> . Assume the query URL is http://acme.example.org/resource,  and its
> members are the resources of type <oslc:resource> The query would be:
>
http://acme.example.org/resource?oslc.prefix=acme=<http://acme.example.org/ns

> >&oslc.where=acme:relationship=<http://cyote.com/res/res1>
>
> Is this example what you are looking for? If so I'll add it to the spec.
>
> If either URLs contain a '>' character, then it would be escaped as '\>'.
>
> Regards,
>
___________________________________________________________________________
>
> Arthur Ryman, PhD, DE
>
> Chief Architect, Project and Portfolio Management
>
> IBM Software, Rational
>
> [image removed]
>
> Markham, ON, Canada | Office: 905-413-3077, Cell: 416-939-5063
>
> Twitter | Facebook | YouTube
>
> [image removed]
>
> From:
>
> Steve K Speicher/Raleigh/IBM at IBMUS
>
> To:
>
> Arthur Ryman <ryman at ca.ibm.com>
>
> Cc:
>
> oslc-core at open-services.net
>
> Date:
>
> 07/21/2010 11:24 AM
>
> Subject:
>
> Re: [oslc-core] Query syntax BNF - What is uri_ref_esc ?
>
> Arthur,
>
> Thanks.  It would be helpful to see an example of this in the spec as
> well.  Specifically, some questions I've heard is how one would reference

> @rdf:resource and quoting, etc.
>
> For example, how to query for a specific user URI.
>
> Thanks,
> Steve
>
> Arthur Ryman <ryman at ca.ibm.com> wrote on 07/21/2010 09:57:04 AM:
>
> > From: Arthur Ryman <ryman at ca.ibm.com>
> > To: Steve K Speicher/Raleigh/IBM at IBMUS
> > Cc: oslc-core at open-services.net, oslc-core-bounces at open-services.net
> > Date: 07/21/2010 09:57 AM
> > Subject: Re: [oslc-core] Query syntax BNF - What is uri_ref_esc ?
> >
> > Steve,
> >
> > This was defined in the selective properties BNF, which used to be in
> the
> > same document. After the split it got orphaned. I added back the
> > following:
> >
> > uri_ref_esc   ::= /* an angle bracket-delimited URI reference in which
>
>
> > and \ are \-escaped. */
> >
> > Regards,
> >
>
___________________________________________________________________________

>
> >
> > Arthur Ryman, PhD, DE
> >
> >
> > Chief Architect, Project and Portfolio Management
> >
> > IBM Software, Rational
> >
> > Markham, ON, Canada | Office: 905-413-3077, Cell: 416-939-5063
> > Twitter | Facebook | YouTube
> >
> >
> >
> >
> >
> >
> >
> > From:
> > Steve K Speicher <sspeiche at us.ibm.com>
> > To:
> > oslc-core at open-services.net
> > Date:
> > 07/20/2010 07:19 PM
> > Subject:
> > [oslc-core] Query syntax BNF - What is uri_ref_esc ?
> > Sent by:
> > oslc-core-bounces at open-services.net
> >
> >
> >
> > The BNF Syntax at [1] seems to exclude the definition of uri_ref_esc
> which
> >
> > is used to define:
> >
> > value         ::= uri_ref_esc | literal_value
> >
> > [1]
> > http://open-services.net/bin/view/Main/OSLCCoreSpecQueryDRAFT?
> > sortcol=table;up=#oslc_where
> >
> >
> > Thanks,
> > Steve Speicher | IBM Rational Software | (919) 254-0645
> >
> >
> > _______________________________________________
> > Oslc-Core mailing list
> > Oslc-Core at open-services.net
> > http://open-services.net/mailman/listinfo/oslc-core_open-services.net
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://open-services.net/pipermail/oslc-core_open-services.net/attachments/20100721/7118238c/attachment-0003.html>


More information about the Oslc-Core mailing list