Hi Mats,
I do not really know, which SPARQL endpoint you are querying, but for
the case you tried http://dbtune.org/musicbrainz/sparql
1. you should change
?artist mo:creatorOf ?album
to
?album foaf:maker ?artist
2. you should query with out the ";" at the end of your query.
Good luck ;)
Cheers,
Bob
Am 15.05.2010 16:59, schrieb [email protected]:
I'm trying to query a MusicBrainz EC2 AMI, but I'm getting an error. Can
anyone tell me what's wrong with this query?
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX mo: <http://purl.org/ontology/mo/>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
SELECT ?artist_name ?album_title
WHERE
{
?artist rdf:type mo:SoloMusicArtist .
?artist foaf:name ?artist_name .
?artist mo:creatorOf ?album .
?album rdf:type mo:Record .
?album dc:title ?album_title .
FILTER bif:contains(?artist_name, "Paul") .
FILTER bif:contains(?album_title, "Press and Play") .
};
------------------------------------------------------------------------------
_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users