Sherman Monroe wrote:
Kingsley,
I'm casting /12-14 years/ as a string, or am I missing something?
That's fine.
We'll look into this.
Kingsley
-sherman
On Thu, Jun 4, 2009 at 11:28 AM, Kingsley Idehen
<[email protected] <mailto:[email protected]>> wrote:
Sherman Monroe wrote:
Hi All,
When I set the datatype of a property to a 'string' value, I
get no results.
<query timeout='2000'
xmlns='http://openlinksw.com/services/facets/1.0'>
<text property='http://www.w3.org/2000/01/rdf-schema#label'>dog
breeds</text>
<property
iri='http://www.w3.org/1999/02/22-rdf-syntax-ns#type'></property>
<value
datatype='uri'>http://dbpedia.org/resource/Category:Dog_breeds</value>
<property-of iri='http://www.w3.org/2004/02/skos/core#subject'>
<property iri='http://dbpedia.org/property/lifeSpan'>
<value datatype='string'>12-14 years</value>
</property>
<view offset='0' limit='25' type='list'></view>
</property-of>
<value
datatype='uri'>http://dbpedia.org/resource/Category:Dog_breeds</value>
</query>
Response:
<fct:facets
xmlns:fct="http://openlinksw.com/services/facets/1.0/">
<fct:sparql> select distinct ?s3 as ?c1 where { ?s1
<http://www.w3.org/2000/01/rdf-schema#label>
<http://www.w3.org/2000/01/rdf-schema#label>>
<http://www.w3.org/2000/01/rdf-schema#label>
<http://www.w3.org/2000/01/rdf-schema#label>>>; ?o1 . ?o1
bif:contains '(DOG AND BREEDS)' . ?s1
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>>>; ?s2 .
filter
(?s1 =
<http://dbpedia.org/resource/Category:Dog_breeds>
<http://dbpedia.org/resource/Category:Dog_breeds>>
<http://dbpedia.org/resource/Category:Dog_breeds>
<http://dbpedia.org/resource/Category:Dog_breeds>>>;) . ?s3
<http://www.w3.org/2004/02/skos/core#subject>
<http://www.w3.org/2004/02/skos/core#subject>>
<http://www.w3.org/2004/02/skos/core#subject>
<http://www.w3.org/2004/02/skos/core#subject>>>; ?s1 . ?s3
<http://dbpedia.org/property/lifeSpan>
<http://dbpedia.org/property/lifeSpan>>
<http://dbpedia.org/property/lifeSpan>
<http://dbpedia.org/property/lifeSpan>>>; ?s4 . filter (?s4 =
"""8-15 years""") . filter
(?s1 =
<http://dbpedia.org/resource/Category:Dog_breeds>
<http://dbpedia.org/resource/Category:Dog_breeds>>
<http://dbpedia.org/resource/Category:Dog_breeds>
<http://dbpedia.org/resource/Category:Dog_breeds>>>;) . } order
by desc (<LONG::IRI_RANK> (?s3)) limit 25 offset 0
</fct:sparql>
<fct:time>11</fct:time>
<fct:complete>yes</fct:complete>
<fct:timeout>2000</fct:timeout>
<fct:db-activity> 1R rnd 0R seq 0P disk 128B
/ 2 messages</fct:db-activity>
<fct:result type="" />
</fct:facets>
--
Thanks,
-sherman
Sherman,
An IRI/URI is not a string. If you want to treat it as a string
then cast it accordingly.
I pray that you may prosper in all things and be healthy, even
as your soul prospers
(3 John 1:2)
------------------------------------------------------------------------
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for
enterprises looking to deploy the next generation of Solaris
that includes the latest innovations from Sun and the
OpenSource community. Download a copy and enjoy capabilities
such as Networking, Storage and Virtualization. Go to:
http://p.sf.net/sfu/opensolaris-get
------------------------------------------------------------------------
_______________________________________________
Virtuoso-devel mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/virtuoso-devel
--
Regards,
Kingsley Idehen Weblog:
http://www.openlinksw.com/blog/~kidehen
<http://www.openlinksw.com/blog/%7Ekidehen>
President & CEO OpenLink Software Web: http://www.openlinksw.com
--
Thanks,
-sherman
I pray that you may prosper in all things and be healthy, even as your
soul prospers
(3 John 1:2)
--
Regards,
Kingsley Idehen Weblog: http://www.openlinksw.com/blog/~kidehen
President & CEO
OpenLink Software Web: http://www.openlinksw.com