チェンジセット 269 : SPARQLBuilderWWW2016/src/java/org/biohackathon/SPARQLBuilder/OWL/StructureCrawler.java
- 更新日時:
- 2016/03/14 20:01:59 (9 年 前)
- ファイル:
-
- 1 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW2016/src/java/org/biohackathon/SPARQLBuilder/OWL/StructureCrawler.java
r267 r269 6 6 import java.util.Set; 7 7 8 import jp.riken.accc.db. rdf.crawler.dataStructure.SchemaCategory;9 import jp.riken.accc.db. rdf.crawler.dataStructure.sparql.JenaModelGenerator;10 import jp.riken.accc.db. rdf.crawler.dataStructure.sparql.RDFsCrawlerImpl;8 import jp.riken.accc.db.sparqlBuilderMetadata.crawler.dataStructure.SchemaCategory; 9 import jp.riken.accc.db.sparqlBuilderMetadata.crawler.dataStructure.sparql.JenaModelGenerator; 10 import jp.riken.accc.db.sparqlBuilderMetadata.crawler.dataStructure.sparql.RDFsCrawlerImpl; 11 11 12 12 public class StructureCrawler { … … 75 75 } 76 76 77 public void crawl(String endPURI, String outFileName) throws Exception { 78 RDFsCrawlerImpl impl = new RDFsCrawlerImpl(endPURI); 79 // Resource[] res = impl.getRDFProperties(); 80 // Resource[] res = impl.getInferedRDFsClassesFromInstances(); 81 // Resource[] res = impl.getDomainRangeDeclaredRDFProperties(); 82 // Resource[] res = impl.getDeclaredRDFsClasses(); 83 // for(Resource r: res){ 84 // System.out.println(r.getURI().toString()); 85 // } 86 // Model model = impl.getProperiesFromDomainRangeDecls(); 87 // Model model = impl.getPropertiesFromInstanceDecls(); 88 // RDFWriter writer = model.getWriter("N3"); 89 // writer.setProperty("showXMLDeclaration","true"); 90 // writer.write(model,System.out,""); 91 // model.close(); 92 77 public void crawl(String endPURI, String crawlName, String outFileName) throws Exception { 78 RDFsCrawlerImpl impl = new RDFsCrawlerImpl(endPURI, crawlName); 93 79 SchemaCategory sc = impl.determineSchemaCategory(); 94 80