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
    &lt;http://www.w3.org/2000/01/rdf-schema#label&gt
    <http://www.w3.org/2000/01/rdf-schema#label&gt>; ?o1 . ?o1
    bif:contains  &#39;(DOG AND BREEDS)&#39;  . ?s1
    &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#type&gt
    <http://www.w3.org/1999/02/22-rdf-syntax-ns#type&gt>; ?s2 . filter
    (?s1 = &lt;http://dbpedia.org/resource/Category:Dog_breeds&gt
    <http://dbpedia.org/resource/Category:Dog_breeds&gt>;) .  ?s3
    &lt;http://www.w3.org/2004/02/skos/core#subject&gt
    <http://www.w3.org/2004/02/skos/core#subject&gt>; ?s1 . ?s3
    &lt;http://dbpedia.org/property/lifeSpan&gt
    <http://dbpedia.org/property/lifeSpan&gt>; ?s4 . filter (?s4 =
    &quot;&quot;&quot;8-15 years&quot;&quot;&quot;) .  filter (?s1 =
    &lt;http://dbpedia.org/resource/Category:Dog_breeds&gt
    <http://dbpedia.org/resource/Category:Dog_breeds&gt>;) .  } order
    by desc (&lt;LONG::IRI_RANK&gt; (?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]
https://lists.sourceforge.net/lists/listinfo/virtuoso-devel


--


Regards,

Kingsley Idehen       Weblog: http://www.openlinksw.com/blog/~kidehen
President & CEO OpenLink Software Web: http://www.openlinksw.com





Reply via email to