package AMOSDBPedia;

import java.util.List;

public class Demo {
	
	public static void main(String[] args){
		List<String> res = DBpedia.getCompanies("Apple");
		for(String s : res)
			System.out.println(s);
		
		System.out.println();
		System.out.println(DBpedia.getResourceByLabel(res.get(0)));
		System.out.println(DBpedia.getCompanyAbstract(res.get(0)));
		System.out.println(DBpedia.getCompanyHomepage(res.get(0)));

		System.out.println(DBpedia.getCompanyIndustrysResources(res.get(0)));
		System.out.println();
		List<String> products = DBpedia.getCompanyProducts(res.get(0));
		for(String s : products)
			System.out.println(s);
	}
	
}

@@ -631,15 +631,281 @@
 tln(s);%0A
+%09%09System.out.println();%0A%09%09System.out.println(DBpedia.resourceIsProduct(%22%3Chttp://dbpedia.org/resource/IPhone%3E%22));%0A%09%09System.out.println(DBpedia.getCompanyCompetitors(%22Microsoft%22));%0A%09%09System.out.println(DBpedia.getRelatedProduct(%22http://dbpedia.org/resource/IPhone%22));%0A
 %09%7D%0A%09%0A%7D%0A

add Demo for function isProduct, companyCompetitors and relatedProducts