W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > January to March 2005

Re: Please add RDF term checking operators to sparql

From: Dave Beckett <dave.beckett@bristol.ac.uk>
Date: Tue, 25 Jan 2005 11:39:06 +0000
Cc: RDF Data Access Working Group <public-rdf-dawg@w3.org>
Message-ID: <20050125113906.6f18ae72@hoth.ilrt.bris.ac.uk>

On Tue, 25 Jan 2005 10:36:34 +0000, Dave Beckett <dave.beckett@bristol.ac.uk> wrote:

...

> Operator: isliteral(arg)
> Meaning: Tests if the expression is an RDF Literal
>                ( http://www.w3.org/TR/rdf-concepts/#dfn-literal )
> Return: xsd:boolean
>   isliteral(<uri>)     => true
>   isliteral(_:blank)   => false
>   isliteral("literal") => true

I did of course mean:

   isliteral(<uri>)     => false
   isliteral(_:blank)   => false
   isliteral("literal") => true


The actual names I don't care much about. They could be camelCase
maybe to separate the words.  This is highly language and
personal coding-style dependent so I suggest the editors just pick
one. Other alternatives could be:
   isURI isBlank isLiteral (my preference)
   isUri isBlank isLiteral (This is the C#/.Net language style I think)
   is_uri is_blank is_literal
   is_URI is_Blank is_Literal

Dave
Received on Tuesday, 25 January 2005 11:42:21 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:22 GMT