Re: Please add RDF term checking operators to sparql

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 UTC