- From: Eric Prud'hommeaux <eric@w3.org>
- Date: Tue, 8 Nov 2005 09:12:03 -0500
- To: Bjoern Hoehrmann <derhoermi@gmx.net>
- Cc: public-rdf-dawg-comments@w3.org
- Message-ID: <20051108141203.GC412@w3.org>
On Tue, Nov 08, 2005 at 08:57:32AM -0500, Eric Prud'hommeaux wrote: > 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. Sorry, old text. Please consider this text for the definition of isIRI: 11.2.3.2 sop:isIRI xsd:boolean isIRI (Rterm term) xsd:boolean isURI (Rterm term) Returns true if term is an IRI. Returns false otherwise. isURI is an alternate spelling for the isIRI operator. @prefix foaf: <http://xmlns.com/foaf/0.1/> . _:a foaf:name "Alice". _:a foaf:mbox <mailto:alice@work.example> . _:b foaf:name "Bob" . _:b foaf:mbox "bob@work.example" . This query matches the people with a name and an mbox which is an IRI: PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?name ?mbox WHERE { ?x foaf:name ?name ; foaf:mbox ?mbox . FILTER isIRI(?mbox) } Query result: name mbox "Alice" <mailto:alice@work.example> > 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 14:12:15 UTC