summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/LoadRemotePatchWindow.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-05-01 04:01:04 +0000
committerDavid Robillard <d@drobilla.net>2007-05-01 04:01:04 +0000
commit3e5fef2e59776923f175a4260adf18c559ab861f (patch)
tree5c83291c595830ac472e5661de83d4560513a9d6 /src/progs/ingenuity/LoadRemotePatchWindow.cpp
parent71b5ad39baceacb5d7aa75050fd8c76bfb16fb76 (diff)
downloadingen-3e5fef2e59776923f175a4260adf18c559ab861f.tar.gz
ingen-3e5fef2e59776923f175a4260adf18c559ab861f.tar.bz2
ingen-3e5fef2e59776923f175a4260adf18c559ab861f.zip
Converted Raul (and thus Ingen and Machina) to use Redland over Raptor/Rasqal independently.
Fixed patch loading for Ingen (local only, still something wrong with remote...). git-svn-id: http://svn.drobilla.net/lad/ingen@486 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/LoadRemotePatchWindow.cpp')
-rw-r--r--src/progs/ingenuity/LoadRemotePatchWindow.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/progs/ingenuity/LoadRemotePatchWindow.cpp b/src/progs/ingenuity/LoadRemotePatchWindow.cpp
index ec49f70f..12006f3f 100644
--- a/src/progs/ingenuity/LoadRemotePatchWindow.cpp
+++ b/src/progs/ingenuity/LoadRemotePatchWindow.cpp
@@ -63,24 +63,22 @@ LoadRemotePatchWindow::present(SharedPtr<PatchModel> patch, MetadataMap data)
set_patch(patch);
_initial_data = data;
+
+ RDF::Model model(*App::instance().rdf_world(),
+ "http://rdf.drobilla.net/ingen_patches/index.ttl");
- Namespaces namespaces;
- namespaces["ingen"] = "http://drobilla.net/ns/ingen#";
- namespaces["rdfs"] = "http://www.w3.org/2000/01/rdf-schema#";
- namespaces["doap"] = "http://usefulinc.com/ns/doap#";
-
- RDFQuery query(namespaces, Glib::ustring(
+ RDF::Query query(*App::instance().rdf_world(), Glib::ustring(
"SELECT DISTINCT ?name ?uri FROM <> WHERE {"
" ?uri a ingen:Patch ;"
" doap:name ?name ."
"}"));
- RDFQuery::Results results = query.run("http://rdf.drobilla.net/ingen_patches/index.ttl");
+ RDF::Query::Results results = query.run(*App::instance().rdf_world(), model);
- for (RDFQuery::Results::iterator i = results.begin(); i != results.end(); ++i) {
+ for (RDF::Query::Results::iterator i = results.begin(); i != results.end(); ++i) {
Gtk::TreeModel::iterator iter = _liststore->append();
- (*iter)[_columns._col_name] = (*i)["name"];
- (*iter)[_columns._col_uri] = (*i)["uri"];
+ (*iter)[_columns._col_name] = (*i)["name"].to_string();
+ (*iter)[_columns._col_uri] = (*i)["uri"].to_string();
}
_treeview->columns_autosize();