チェンジセット 163 : BH13SPARQLBuilder/src/org
- 更新日時:
- 2014/09/25 16:10:43 (10 年 前)
- ファイル:
-
- 1 変更
凡例:
- 変更なし
- 追加
- 削除
-
BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/endpointMetadata/MetadataFile.java
r160 r163 3 3 import java.io.File; 4 4 import java.util.Calendar; 5 import java.util.Date;6 import java.util.HashSet;7 5 8 6 import jp.riken.accc.db.rdf.crawler.dataStructure.sparql.URICollection; … … 23 21 Calendar startDateTime = null; 24 22 Calendar endDateTime = null; 23 long numTriples = 0; 24 long numClasses = 0; 25 26 27 public long getNumTriples(){ 28 return numTriples; 29 } 30 31 public long getNumClasses(){ 32 return numClasses; 33 } 25 34 26 35 public MetadataFile(File file) throws Exception{ … … 88 97 endDateTime = ((com.hp.hpl.jena.datatypes.xsd.XSDDateTime)(endTimeLit.getValue())).asCalendar(); 89 98 } 90 99 // numTriples 100 Property void_triples = model.getProperty(URICollection.PROPERTY_VOID_TRIPLES); 101 nit = model.listObjectsOfProperty(defaultDataSet, void_triples); 102 if( nit.hasNext()){ 103 Literal numTriplesLit = nit.next().asLiteral(); 104 numTriples = numTriplesLit.getLong(); 105 } 106 // numClasses 107 Property void_classes = model.getProperty(URICollection.PROPERTY_VOID_CLASSES); 108 nit = model.listObjectsOfProperty(defaultDataSet, void_classes); 109 if( nit.hasNext()){ 110 Literal numClassesLit = nit.next().asLiteral(); 111 numClasses = numClassesLit.getLong(); 112 } 91 113 } 92 114