Example #1
0
        protected virtual void RemoveItemVersionLinks(Item item)
        {
            Assert.ArgumentNotNull((object)item, "item");

            var g = LinkedDataManager.ReadGraph();

            var items = g.GetTriplesWithSubject(g.CreateUriNode(LinkedDataManager.ItemToUri(item)));

            foreach (var triple in items)
            {
                g.Retract(triple);
            }
            LinkedDataManager.WriteGraph(g);
        }
Example #2
0
        public override void RemoveReferences(Item item)
        {
            Assert.ArgumentNotNull((object)item, "item");

            var g = LinkedDataManager.ReadGraph();

            var items = g.GetTriplesWithObject(g.CreateUriNode(LinkedDataManager.ItemToUri(item)));

            foreach (var triple in items)
            {
                g.Retract(triple);
            }
            LinkedDataManager.WriteGraph(g);

            LinkCounters.DataUpdated.Increment();
        }