Gianny Damour wrote:
> Jürgen, Kingsley,
>
> Thanks for your responses; this is exactly what I was looking for!
>
>
> Jürgen, I have a couple of minor notes:
>
> 1. the PrefixSearch service does not seem to comply with its contract. 
> For instance, with my example of 'cambr', it wrongly returns 
> 'University of Cambridge'.
> 2. it would be great to be able to define a REST JSON MIME type when 
> using the REST service endpoint.
>
>
> Kingsley,
>
> I am searching the doc for the REST endpoint
>
> /services/rdf/iriautocomplete.get
>
> used by the URI lookup tabs. Where is this endpoint documented?

See:

1. 
http://www.openlinksw.com/dataspace/dav/wiki/Main/VirtuosoFacetsWebService .

Kingsley
>
>
> I will move forward with using the above endpoint directly in my own 
> code.
>
>
> Thanks,
> Gianny
>
> On 25/01/2010, at 11:38 PM, Kingsley Idehen wrote:
>
>> Jürgen Jakobitsch wrote:
>>> hi, you might want to check out
>>>
>>> http://lookup.dbpedia.org/api/search.asmx
>>>
>>> we're doing a well working yui-autocomplete with data from that 
>>> service.
>>>
>>> wkr turnguard
>>>
>>> ----- Original Message -----
>>> From: "gianny damour" <gianny.dam...@optusnet.com.au>
>>> To: dbpedia-discussion@lists.sourceforge.net
>>> Sent: Monday, January 25, 2010 4:32:16 AM
>>> Subject: [Dbpedia-discussion] SPARQL - Auto-completion
>>>
>>> Hi,
>>>
>>> I would like to query DBPedia to build an auto-completion feature 
>>> and I am
>>> not able to figure out the best way to write the associated SPARQL.
>>>
>>>
>>> Assuming that I would like to auto-complete 'cambri', this query 
>>> should work:
>>>
>>>
>>> SELECT ?s
>>> WHERE {
>>>   ?s rdfs:label ?label
>>>   FILTER regex( str(?label), "^cambri", "i" )
>>> }
>>> ORDER BY ASC(?label)
>>> LIMIT 5
>>>
>>>
>>> The problem is that it is too slow and timeout. People have been 
>>> suggesting to use the OpenLink Virtuoso built-in-function "contains" 
>>> as it performs better than regex filters.
>>>
>>> So, this query is better:
>>>
>>>
>>> SELECT DISTINCT ?s
>>> WHERE {
>>>   ?s rdfs:label ?label
>>>   FILTER (bif:contains(?label, 'cambrid'))
>>> }
>>> ORDER BY ASC(?label)
>>> LIMIT 5
>>>
>>>
>>> Unfortunatelly, it is sematically incorrect as I would like to find 
>>> the resources starting with 'cambrid' and not simply containing 
>>> 'cambrid'.
>>>
>>>
>>> So, I though that combining the filter could do the trick - here, 
>>> assuming that
>>> combined filters are evaluated from left to right:
>>>
>>>
>>> SELECT DISTINCT ?s
>>> WHERE {
>>>   ?s rdfs:label ?label
>>>   FILTER (bif:contains(?label, 'cambrid') && regex( str(?label), 
>>> "^cambrid", "i"))
>>> }
>>> ORDER BY ASC(?label)
>>> LIMIT 5
>>>
>>>
>>> This query returns an empty set.
>>>
>>> Any idea about achieving such an auto-completion.
>>>
>>>
>>> Thanks,
>>> Gianny
>>>
>> Gianny,
>>
>>
>> Have you looked at: http://dbpedia.org/fct ?  There are 3 tabs, with 
>> the last two offering different types of auto-completion.
>>
>> You can also read the "About" link re. the service behind this should 
>> you want to interact with it via your own code.
>>
>> Kingsley
>>> ------------------------------------------------------------------------------
>>>  
>>>
>>> Throughout its 18-year history, RSA Conference consistently attracts 
>>> the
>>> world's best and brightest in the field, creating opportunities for 
>>> Conference
>>> attendees to learn about information security's most important 
>>> issues through
>>> interactions with peers, luminaries and emerging and established 
>>> companies.
>>> http://p.sf.net/sfu/rsaconf-dev2dev
>>> _______________________________________________
>>> Dbpedia-discussion mailing list
>>> Dbpedia-discussion@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
>>>
>>> ------------------------------------------------------------------------------
>>>  
>>>
>>> Throughout its 18-year history, RSA Conference consistently attracts 
>>> the
>>> world's best and brightest in the field, creating opportunities for 
>>> Conference
>>> attendees to learn about information security's most important 
>>> issues through
>>> interactions with peers, luminaries and emerging and established 
>>> companies.
>>> http://p.sf.net/sfu/rsaconf-dev2dev
>>> _______________________________________________
>>> Dbpedia-discussion mailing list
>>> Dbpedia-discussion@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
>>>
>>>
>>
>>
>> -- 
>>
>> Regards,
>>
>> Kingsley Idehen          President & CEO OpenLink Software     Web: 
>> http://www.openlinksw.com
>> Weblog: http://www.openlinksw.com/blog/~kidehen
>> Twitter: kidehen
>>
>>
>>
>>
>
>


-- 

Regards,

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






------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Dbpedia-discussion mailing list
Dbpedia-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to