diff options
author | David Robillard <d@drobilla.net> | 2008-07-30 01:08:35 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-07-30 01:08:35 +0000 |
commit | 92e80a6a2e161e6fc5e31c5ac62af3e2d90136e7 (patch) | |
tree | 644e10ad8334304f71cbd9f3ce560763145e7f40 /src/libs | |
parent | b617344041f036d4539bbbbdbfd14165c31c5720 (diff) | |
download | ingen-92e80a6a2e161e6fc5e31c5ac62af3e2d90136e7.tar.gz ingen-92e80a6a2e161e6fc5e31c5ac62af3e2d90136e7.tar.bz2 ingen-92e80a6a2e161e6fc5e31c5ac62af3e2d90136e7.zip |
Fix crash on ingen -e.
Rename ingen:name to ingen:symbol to match LV2's name of the same thing (and not step on a future doap:name).
git-svn-id: http://svn.drobilla.net/lad/ingen@1310 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/serialisation/Loader.cpp | 40 | ||||
-rw-r--r-- | src/libs/serialisation/Serialiser.cpp | 6 |
2 files changed, 23 insertions, 23 deletions
diff --git a/src/libs/serialisation/Loader.cpp b/src/libs/serialisation/Loader.cpp index 6708a0e3..0bfed964 100644 --- a/src/libs/serialisation/Loader.cpp +++ b/src/libs/serialisation/Loader.cpp @@ -99,7 +99,7 @@ Loader::load(Ingen::Shared::World* world, Redland::Query query(*world->rdf_world, Glib::ustring( "SELECT DISTINCT ?name WHERE {\n") + - patch_uri + " ingen:name ?name\n}"); + patch_uri + " ingen:symbol ?name\n}"); Redland::Query::Results results = query.run(*world->rdf_world, model); @@ -123,7 +123,7 @@ Loader::load(Ingen::Shared::World* world, Redland::Query query(*world->rdf_world, Glib::ustring( "SELECT DISTINCT ?name ?plugin ?varkey ?varval ?poly WHERE {\n") + patch_uri + " ingen:node ?node .\n" - "?node ingen:name ?name ;\n" + "?node ingen:symbol ?name ;\n" " ingen:plugin ?plugin ;\n" " ingen:polyphonic ?poly .\n" "OPTIONAL { ?node ingen:variable ?variable .\n" @@ -169,9 +169,9 @@ Loader::load(Ingen::Shared::World* world, query = Redland::Query(*world->rdf_world, Glib::ustring( "SELECT DISTINCT ?patch ?name WHERE {\n") + - patch_uri + " ingen:node ?patch .\n" - "?patch a ingen:Patch ;\n" - " ingen:name ?name .\n" + patch_uri + " ingen:node ?patch .\n" + "?patch a ingen:Patch ;\n" + " ingen:symbol ?name .\n" "}"); results = query.run(*world->rdf_world, model); @@ -197,9 +197,9 @@ Loader::load(Ingen::Shared::World* world, query = Redland::Query(*world->rdf_world, Glib::ustring( "SELECT DISTINCT ?nodename ?portname ?portval WHERE {\n") + patch_uri + " ingen:node ?node .\n" - "?node ingen:name ?nodename ;\n" + "?node ingen:symbol ?nodename ;\n" " ingen:port ?port .\n" - "?port ingen:name ?portname ;\n" + "?port ingen:symbol ?portname ;\n" " ingen:value ?portval .\n" "FILTER ( datatype(?portval) = xsd:decimal )\n" "}\n"); @@ -227,7 +227,7 @@ Loader::load(Ingen::Shared::World* world, patch_uri + " ingen:port ?port .\n" "?port a ?type ;\n" " a ?datatype ;\n" - " ingen:name ?name .\n" + " ingen:symbol ?name .\n" " FILTER (?type != ?datatype && ((?type = ingen:InputPort) || (?type = ingen:OutputPort)))\n" "OPTIONAL { ?port ingen:value ?portval . \n" " FILTER ( datatype(?portval) = xsd:decimal ) }\n" @@ -276,12 +276,12 @@ Loader::load(Ingen::Shared::World* world, patch_uri + "ingen:node ?srcnode ;\n" " ingen:node ?dstnode .\n" "?srcnode ingen:port ?src ;\n" - " ingen:name ?srcnodename .\n" + " ingen:symbol ?srcnodename .\n" "?dstnode ingen:port ?dst ;\n" - " ingen:name ?dstnodename .\n" - "?src ingen:name ?srcname .\n" + " ingen:symbol ?dstnodename .\n" + "?src ingen:symbol ?srcname .\n" "?dst ingen:connectedTo ?src ;\n" - " ingen:name ?dstname .\n" + " ingen:symbol ?dstname .\n" "}\n"); results = query.run(*world->rdf_world, model); @@ -305,10 +305,10 @@ Loader::load(Ingen::Shared::World* world, patch_uri + " ingen:port ?src ;\n" " ingen:node ?dstnode .\n" "?dstnode ingen:port ?dst ;\n" - " ingen:name ?dstnodename .\n" + " ingen:symbol ?dstnodename .\n" "?dst ingen:connectedTo ?src ;\n" - " ingen:name ?dstname .\n" - "?src ingen:name ?srcname .\n" + " ingen:symbol ?dstname .\n" + "?src ingen:symbol ?srcname .\n" "}\n"); results = query.run(*world->rdf_world, model); @@ -331,10 +331,10 @@ Loader::load(Ingen::Shared::World* world, patch_uri + " ingen:port ?dst ;\n" " ingen:node ?srcnode .\n" "?srcnode ingen:port ?src ;\n" - " ingen:name ?srcnodename .\n" + " ingen:symbol ?srcnodename .\n" "?dst ingen:connectedTo ?src ;\n" - " ingen:name ?dstname .\n" - "?src ingen:name ?srcname .\n" + " ingen:symbol ?dstname .\n" + "?src ingen:symbol ?srcname .\n" "}\n"); results = query.run(*world->rdf_world, model); @@ -357,8 +357,8 @@ Loader::load(Ingen::Shared::World* world, patch_uri + " ingen:port ?src ;\n" " ingen:port ?dst .\n" "?dst ingen:connectedTo ?src ;\n" - " ingen:name ?dstname .\n" - "?src ingen:name ?srcname .\n" + " ingen:symbol ?dstname .\n" + "?src ingen:symbol ?srcname .\n" "}\n"); results = query.run(*world->rdf_world, model); diff --git a/src/libs/serialisation/Serialiser.cpp b/src/libs/serialisation/Serialiser.cpp index e93fb0d7..c4341069 100644 --- a/src/libs/serialisation/Serialiser.cpp +++ b/src/libs/serialisation/Serialiser.cpp @@ -280,7 +280,7 @@ Serialiser::serialise_patch(SharedPtr<Shared::Patch> patch) if (patch->path().name().length() > 0) { _model->add_statement( - patch_id, "ingen:name", + patch_id, "ingen:symbol", Redland::Node(_model->world(), Redland::Node::LITERAL, patch->path().name())); } @@ -354,7 +354,7 @@ Serialiser::serialise_node(SharedPtr<Shared::Node> node, const Redland::Node& no _model->add_statement( node_id, - "ingen:name", + "ingen:symbol", Redland::Node(_model->world(), Redland::Node::LITERAL, node->path().name())); _model->add_statement( @@ -395,7 +395,7 @@ Serialiser::serialise_port(const Port* port, const Redland::Node& port_id) _model->add_statement(port_id, "rdf:type", Redland::Node(_model->world(), Redland::Node::RESOURCE, "ingen:OutputPort")); - _model->add_statement(port_id, "ingen:name", + _model->add_statement(port_id, "ingen:symbol", Redland::Node(_model->world(), Redland::Node::LITERAL, port->path().name())); _model->add_statement(port_id, "rdf:type", |