/// <summary>
        /// Appends the given text to the existing command text, any prefixes in the sub-query are moved to the parent query but any parameter/variable assignments will be lost
        /// </summary>
        /// <param name="text">Text</param>
        public void Append(SparqlParameterizedString text)
        {
            // Merges the instances caches and placeholders
            int offset = _commandText.Count;

            _commandText.AddRange(text._commandText);
            // Update the namespaces
            _nsmap.Import(text.Namespaces);
        }
예제 #2
0
 private static void EnsureReaderNamespaces(IGraph graph)
 {
     lock (graph)
     {
         INamespaceMapper nm = graph.NamespaceMap;
         lock (nm) if (!nm.HasNamespace(RoboKindPrefix))
             {
                 lock (rdfDefNS) nm.Import(rdfDefNS);
             }
         lock (nm) EnsureBaseURIMapped(graph, nm);
     }
 }