/// <summary> /// This should return the list of resource information objects returning as the comparison result /// </summary> /// <param name="URIs">the uris to compare between </param> /// <returns>the resource information objects resulting form the comparison</returns> public List<ResourceInformation> Compare(List<string> URIs) { List<string> encdoingURIs = new List<string>(); foreach (string item in URIs) { encdoingURIs.Add(util.encodeURI(item)); } Comparison c; c = new Comparison(encdoingURIs); List<ResourceInformation> ri = c.getComparisonOutput(); //ResourceInformation r = new ResourceInformation(); //r.ID = new KeyValuePair<string, string>("ali", "alis"); //List<ResourceInformation> rs = new List<ResourceInformation>(); //rs.Add(r); //return rs; for (int i = 0; i < ri.Count; i++) { ri[i].rawComparisonObject = new List<KeyValuePair<KeyValuePair<string, string>, List<KeyValuePair<string, string>>>>(); ri[i].resources_resourceIsObj = new List<KeyValuePair<string, string>>(); ri[i].resources_resourceIsSubj = new List<KeyValuePair<string, string>>(); ri[i].predicates_resourceIsObj = new List<KeyValuePair<string, string>>(); ri[i].predicates_resourceIsSubj = new List<KeyValuePair<string, string>>(); } return ri; }
/// <summary> /// This should return the list of resource information objects returning as the comparison result /// </summary> /// <param name="URIs">the uris to compare between </param> /// <returns>the resource information objects resulting form the comparison</returns> public List<ResourceInformation> Compare(List<string> URIs) { Comparison c; c = new Comparison(URIs); List<ResourceInformation> ri = c.getComparisonOutput(); return ri; //ResourceInformation r = new ResourceInformation(); //r.ID = new KeyValuePair<string, string>("ali", "alis"); //List<ResourceInformation> rs = new List<ResourceInformation>(); //rs.Add(r); //return rs; }