[Pellet-users] SPARQL results
Ibach, Brandon L
brandon.l.ibach at lmco.com
Tue Jan 15 23:41:31 UTC 2008
Jan,
I don't believe applying the "regex" function directly to a subject (a
URI/IRI) will work in SPARQL. You probably just need to use the
built-in SPARQL function "str" to convert it to a string, first. See
the example in the SPARQL recommendation (which is official, as of
today!).
http://www.w3.org/TR/rdf-sparql-query/#func-str
-Brandon :)
> -----Original Message-----
> From: pellet-users-bounces at lists.owldl.com
> [mailto:pellet-users-bounces at lists.owldl.com] On Behalf Of
> Jan-Oliver Wuelfing
> Sent: Tuesday, January 15, 2008 7:09 AM
> To: pellet-users at lists.owldl.com
> Subject: [Pellet-users] SPARQL results
>
> Hello everyone,
>
[snip]
> I wonder why I get no result if I enquire for 'DDSS' as the
> subject like
> this:
>
> REFIX owl: <http://www.w3.org/2002/07/owl#>
> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
>
> SELECT ?Subject ?Predicate ?Object
> WHERE
> { ?Subject ?Predicate ?Object .
> FILTER regex(?Subject, "DDSS")
> }
>
More information about the Pellet-users
mailing list