Test: Free text search with JS based formatting

Simple AJAX Example

A super simple example showing how to make AJAX requests to run SPARQL queries and display the results in a browser.

In some ways this is related to the effort some sites like http://linkedlifedata.com/ put forth to expose the Google like "single box" search interface.

This currently searches all the graphs. A real system would likely limit to areas and also provide some approach to selecting controlled elements. Is a person selected a term from the taxon skos file they might want to perform a distinct search on resources associated with it.

JS used (other than jquery). This code comes from Yahoo and a few other sources and is modified from to search USIO data not dbpedia.

Perform a bif:contains call

SELECT *
WHERE {
  ?s ?p ?o .
  ?o bif:contains '"Guembelina"'
}
                

Perform an aggregate call on bif:contains:

SELECT  ?p (COUNT( ?o) AS ?other)
WHERE {
   ?s ?p ?o .
   ?o bif:contains '"Guembelina"'
}
GROUP BY ?p
                    
uri relation