view tests/misc-queries/test-query-pluginid-for-rdf @ 35:c1b3af62bc2a

* Avoid failing on second and subsequent input files in single-output-file mode (because first input file caused output file to be open, so second input file failed because output "already existed")
author Chris Cannam
date Mon, 24 May 2010 16:03:41 +0000
parents 92911f967a16
children
line wrap: on
line source

PREFIX vamp: <http://purl.org/ontology/vamp/>
PREFIX examples: <http://vamp-plugins.org/rdf/plugins/vamp-example-plugins#>

SELECT ?plugin ?library_id ?plugin_id
FROM <http://vamp-plugins.org/rdf/plugins/vamp-example-plugins>

WHERE {
      ?plugin a vamp:Plugin .
      ?plugin vamp:identifier ?plugin_id .
      OPTIONAL { ?library a vamp:PluginLibrary .
            ?library vamp:identifier ?library_id .
	          ?library vamp:available_plugin ?plugin . }
}