Exemple #1
0
        public void AddDenotationMakesResourceAccesibleViaDenotee()
        {
            TripleStore store = MakeNewTripleStore();

            store.Add(new Statement(new UriRef("http://example.com/subj"), new UriRef("http://example.com/pred"), new UriRef("http://example.com/obj")));

            Resource originalResource = store.GetResourceDenotedBy(new UriRef("http://example.com/subj"));

            store.AddDenotation(new UriRef("foo:bar"), originalResource);

            Assert.AreEqual(originalResource, store.GetResourceDenotedBy(new UriRef("foo:bar")));
            store.Clear();
        }