Mercurial > hg > svcore
comparison rdf/PluginRDFIndexer.cpp @ 731:760feced8380 dataquay
Accept .ttl extension for plugin description files
author | Chris Cannam |
---|---|
date | Mon, 21 May 2012 22:38:09 +0100 |
parents | 27c861cce97b |
children | e802e550a1f2 |
comparison
equal
deleted
inserted
replaced
730:27c861cce97b | 731:760feced8380 |
---|---|
86 vector<string> paths = PluginHostAdapter::getPluginPath(); | 86 vector<string> paths = PluginHostAdapter::getPluginPath(); |
87 | 87 |
88 // std::cerr << "\nPluginRDFIndexer::indexInstalledURLs: pid is " << getpid() << std::endl; | 88 // std::cerr << "\nPluginRDFIndexer::indexInstalledURLs: pid is " << getpid() << std::endl; |
89 | 89 |
90 QStringList filters; | 90 QStringList filters; |
91 filters << "*.ttl"; | |
92 filters << "*.TTL"; | |
91 filters << "*.n3"; | 93 filters << "*.n3"; |
92 filters << "*.N3"; | 94 filters << "*.N3"; |
93 filters << "*.rdf"; | 95 filters << "*.rdf"; |
94 filters << "*.RDF"; | 96 filters << "*.RDF"; |
95 | 97 |
96 // Search each Vamp plugin path for a .rdf file that either has | 98 // Search each Vamp plugin path for an RDF file that either has |
97 // name "soname", "soname:label" or "soname/label" plus RDF | 99 // name "soname", "soname:label" or "soname/label" plus RDF |
98 // extension. Use that order of preference, and prefer n3 over | 100 // extension. Use that order of preference, and prefer ttl over |
99 // rdf extension. | 101 // n3 over rdf extension. |
100 | 102 |
101 for (vector<string>::const_iterator i = paths.begin(); i != paths.end(); ++i) { | 103 for (vector<string>::const_iterator i = paths.begin(); i != paths.end(); ++i) { |
102 | 104 |
103 QDir dir(i->c_str()); | 105 QDir dir(i->c_str()); |
104 if (!dir.exists()) continue; | 106 if (!dir.exists()) continue; |