view tests/misc-queries/test-query-plugin-output-types @ 366:9f7297c47850

Update plugin handling to follow the smart pointers used in the svcore library. This is awkward in our context, and the outcome isn't a very nice one - but it does look as if we had the potential for use-after-free in cases where a plugin was both used "bare" and wrapped in an auto-deleting adapter; those should be fixed now
author Chris Cannam
date Thu, 23 Apr 2020 15:51:55 +0100
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 ?output_id ?output_type ?feature_type ?event_type ?unit
FROM <http://vamp-plugins.org/rdf/plugins/vamp-example-plugins>

WHERE {
      ?plugin a vamp:Plugin .
      ?plugin vamp:identifier "percussiononsets" .
      ?plugin vamp:output_descriptor ?output .
      ?output vamp:identifier ?output_id .
      ?output a ?output_type .
      OPTIONAL { ?output vamp:computes_feature_type ?feature_type } .
      OPTIONAL { ?output vamp:computes_event_type ?event_type } .
      OPTIONAL { ?output vamp:unit ?unit } .
}