Ejemplo n.º 1
0
        /// <summary>
        /// Disconnect file(s) from fetcher (existing data remains).
        /// </summary>
        public RdfDataFetcher Close(params Node <FileInfo>[] files)
        {
            var quads = GetFileQuads(files);

            _rdf.Retract(quads);

            return(this);
        }
Ejemplo n.º 2
0
 /// <summary>Remove all Quads in this graph.</summary>
 /// <returns>Number of triples removed</returns>
 public int Clear()
 => _rdf.Retract(_rdf.Query.From(Id).ToArray());
Ejemplo n.º 3
0
 /// <summary>Retract a set of quads</summary>
 /// <returns>The number of quads actually removed</returns>
 public static int Retract(this IRdfData self, IEnumerable <Quad> quads)
 => self.Retract(quads.ToArray());