|
From: Rob V. <rv...@do...> - 2016-06-24 09:30:41
|
Frank All names spaces for queries must be declared in the query. Queries are parsed without any reference to the data on which they will evaluate must be entirely self-contained. Please note that project is undergoing a change of leadership and infrastructure and that these mailing lists will close in the near future. Please ask any future questions on GitHub at http://github.com/dotnetrdf/dotnetrdf/issues Rob On 16/06/2016 15:52, "Frank Schumacher" <fs...@in...> wrote: Hi folks, I have strange problem with the IGraph.ExecuteQuery(string s) method. For the following query-string: SELECT * where { ?releaseGroupURI a mbo:ReleaseGroup. ?releaseGroupURI mbo:musicBrainzId ?mbId. FILTER (REGEX(STR(?mbId), "c9744809-c5b8-4d3c-a115-1a3daa881c09", "i")). OPTIONAL {?releaseGroupURI rdfs:comment ?comment} } I get the following error: {"The Namespace URI for the given Prefix 'mbo' is not known by the in-scope NamespaceMapper. Did you forget to define a namespace for this prefix?"} But I DID defined the prefix beforehand: graph.NamespaceMap.AddNamespace("mbo", new Uri("http://creativeartefact.org/ontology/")); I double checked it in the local variable window of my Visual Studio and also entered the line graph.NamespaceMap.GetNamespaceUri("mbo"); in the direct window, which yields the expected result. If I add "PREFIX mbo: <http://creativeartefact.org/ontology/> " in front of my query, everything works fine. Any idea, why the NamespaceMapper doesn't find the defined prefix(es - same with rdfs.)? Thanks in advance, Frank -- ************************************************ * Universität Leipzig, Institut für Informatik * * Abteilung Betriebliche Informationssysteme * * http://bis.informatik.uni-leipzig.de * * Tel.: 0341 / 97 32 256 * * * * ========== Opera Metal: molllust =========== * * http://www.molllust.com * * M'era Luna Newcomer 2013! * ************************************************ ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381 _______________________________________________ dotNetRDF-Support mailing list dot...@li... https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |