[OK?] Re: SPARQL: isURI poorly named

On Mon, Aug 01, 2005 at 08:14:40PM +0200, Bjoern Hoehrmann wrote:
> 
> * Eric Prud'hommeaux wrote:
> >I don't follow. Is it the "IRI" part or the "is" part that you object
> >to? (Perhaps this is in the context of preferring the spec to refer to
> >URI refs instead of IRIs.)
> 
> Well, CSS has url(), XML DSig has URI="", if SPARQL uses isIRI() it's
> probably just a matter of time until we agree on yet a different term
> for resource identifiers in which case the name becomes obsolete and
> we'd have to deal with yet more confusion. Names that omit reference
> to the current terminology would avoid this problem, e.g. isRI, isRe-
> source, etc. would all work for me, but the WG probably knows best
> what'd be a good replacement.

I'm not sure there's a "right" answer here. The WG wrestled with
current practice and a few issues like URI vs. IRI, and what do people
understand by "resource". The RDF precedent is that everything is a
resource. We decided to offer two spellings for the test, "isIRI" and
"isIRI". The relevent text is scattered through the document:

Table 11.1 Operator Mapping [OM]
  isIRI(A)	RDF term	sop:isIRI(A)	xsd:boolean
  isURI(A)

11.2.3.2 sop:isIRI [IS]
  xsd:boolean   isIRI (Rterm term)
  Returns true if term is a URI. Returns false otherwise.

Grammar [GM]
[52] BuiltInCall ::= 'STR' '(' Expression ')'
                   | 'LANG' '(' Expression ')'
                   | 'LANGMATCHES' '(' Expression ',' Expression ')'
                   | 'DATATYPE' '(' Expression ')'
                   | 'BOUND' '(' Var ')'
                   | 'isIRI' '(' Expression ')'
                   | 'isURI' '(' Expression ')'
                   | 'isBLANK' '(' Expression ')'
                   | 'isLITERAL' '(' Expression ')'
                   | RegexExpression

If this text meets your requirements, please respond with [CLOSED] in
the subject to allow the issue tracking scripts to close this issue.

[OM] http://www.w3.org/2001/sw/DataAccess/rq23/#OperatorMapping
[IS] http://www.w3.org/2001/sw/DataAccess/rq23/#func-isIRI
[GM] http://www.w3.org/2001/sw/DataAccess/rq23/#rBuiltInCall
-- 
-eric

office: +81.466.49.1170 W3C, Keio Research Institute at SFC,
                        Shonan Fujisawa Campus, Keio University,
                        5322 Endo, Fujisawa, Kanagawa 252-8520
                        JAPAN
        +1.617.258.5741 NE43-344, MIT, Cambridge, MA 02144 USA
cell:   +81.90.6533.3882

(eric@w3.org)
Feel free to forward this message to any list for any purpose other than
email address distribution.

Received on Tuesday, 8 November 2005 13:57:36 UTC