Skip to content

Commit 637eea3

Browse files
author
Marco De Salvo
committed
Fix intermittent RDFNamespaceRegister test failures on prefix.cc service lookup
1 parent 6bc95e1 commit 637eea3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

RDFSharp.Test/Model/Registers/RDFNamespaceRegisterTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,13 @@ public void ShouldGetNamespaceByUri()
203203
[TestMethod]
204204
public void ShouldGetNamespaceByUriWithLookupService()
205205
{
206-
RDFNamespace ns = RDFNamespaceRegister.GetByUri("http://dbpedia.org/ontology/", true); //Intentionally not mocked, since we want to monitor if the service is still alive or has been retired...
206+
RDFNamespace ns = RDFNamespaceRegister.GetByUri("http://dbpedia.org/property/", true); //Intentionally not mocked, since we want to monitor if the service is still alive or has been retired...
207207

208208
Assert.IsNotNull(ns);
209-
Assert.IsTrue(ns.NamespacePrefix.Equals("dbo", StringComparison.Ordinal));
210-
Assert.IsTrue(ns.NamespaceUri.Equals(new Uri("http://dbpedia.org/ontology/")));
209+
Assert.IsTrue(ns.NamespacePrefix.Equals("dbp", StringComparison.Ordinal));
210+
Assert.IsTrue(ns.NamespaceUri.Equals(new Uri("http://dbpedia.org/property/")));
211211
Assert.IsTrue(RDFNamespaceRegister.Instance.Register.Any(x => x.Equals(ns)));
212-
RDFNamespaceRegister.RemoveByPrefix("dbo");
212+
RDFNamespaceRegister.RemoveByPrefix("dbp");
213213
Assert.IsFalse(RDFNamespaceRegister.Instance.Register.Any(x => x.Equals(ns)));
214214
}
215215

0 commit comments

Comments
 (0)