Literal search using the Jamendo SPARQL end-point
By Yves on Thursday 17 July 2008, 10:41 - Permalink
I just wrote a small SWI-Prolog module for literal search using the ClioPatria SPARQL end-point. It uses the rdf_litidex module, and performs a metaphone search on existing literals in the database. All of that is triggered through a built-in RDF predicate.
Here is an example query you can perform on the Jamendo SPARQL end-point (make sure you
select lit as the entailment - it will be the default one
soon):
SELECT ?o
WHERE
{"punk jazz" <http://purl.org/ontology/swi#soundslike> ?o}
This query binds ?o to all resources within the end-point that
are associated with matching literals. For example, you would get back:
- Papa dada (artist)
- Lyrics of the track "Paris-Lorient"
- Megagagga (record)
The module is available there.
Comments
I'm wondering if your example query is correct, as literals cannot be subjects of RDF triples ...
Is that parsed well with your engine ?
Hi Alex!
Yes, that's one of the differences between RDF and SPARQL WHERE clauses. See http://www.w3.org/TR/rdf-sparql-que...
Cheers!
y
Ah, thanks a lot, I was not aware of this.
Let's fix that in my thesis ;-)