public void WhenParseValidFile_ShouldHaveValidClassQName() { IGraph graph = new Graph(); graph.NamespaceMap.AddNamespace(_examplePrefix, _examplePrefixUri); R2RMLMap r2rmlMap = _r2rmlParser.Parse(_dirPath + _validFile, _baseUri); string qname = r2rmlMap.ListStatementsConfigs().First().GetClassName(); bool result = graph.ResolveQName(qname).IsAbsoluteUri; Assert.That(result, Is.True); }
public void WhenGivenEmptyFileData_ShouldReturnNull() { R2RMLMap result = _r2rmlParser.Parse(_dirPath + _emptyFile, _baseUri); Assert.That(result, Is.Null); }
public void WhenGivenOnlyPrefixFileData_ShouldReturnNull() { R2RMLMap result = _r2rmlParser.Parse(_dirPath + _prefixOnlyFIle, _baseUri); Assert.That(result, Is.Null); }
public void WhenGivenValidFilePath_ShouldReturnR2RMLMap() { R2RMLMap result = _r2rmlParser.Parse(_dirPath + _validFile, _baseUri); Assert.That(result, Is.Not.Null); }