public static string getRelations(string URIs) { List<string> URIArray = (URIs.Split(',')).ToList<string>(); objectsRelationManager = new ObjectsRelationManager(); objectsRelationManager.startConnection(); List<string> s = new List<string>(); objectsRelationManager.generateQueries(URIArray[0], URIArray[1]); //just testing //string result = objectsRelationManager.getnext(); string result = getNextRelation(); while (result == "" && objectsRelationManager.IsEndOfResults != true) { result = getNextRelation(); } return result; }
public static string getRelations(string URIs) { List<string> URIArray = (URIs.Split(',')).ToList<string>(); objectsRelationManager = new ObjectsRelationManager(); objectsRelationManager.startConnection(); List < string > s = new List<string > () ; s.Add("http://dbpedia.org/ontology/wikiPageWikiLink"); s.Add("http://dbpedia.org/ontology/wikiPageRedirects"); s.Add("http://dbpedia.org/ontology/wikiPageDisambiguates"); objectsRelationManager.generateQueries(URIArray[0], URIArray[1]); string result = objectsRelationManager.getNextResult(); while (result == "" && objectsRelationManager.IsEndOfResults != true) { result = getNextRelation(); } return result; }