File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
whelk-core/src/main/groovy/whelk/external Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import org.apache.jena.rdf.model.Model
6
6
import org.apache.jena.rdf.model.ModelFactory
7
7
import org.apache.jena.rdf.model.RDFNode
8
8
import whelk.component.ElasticSearch
9
+ import whelk.util.Metrics
9
10
10
11
class Wikidata implements Mapper {
11
12
@Override
@@ -70,7 +71,9 @@ class WikidataEntity {
70
71
71
72
private void loadGraph () {
72
73
try {
73
- graph. read(" https://www.wikidata.org/wiki/Special:EntityData/${ shortId} .ttl?flavor=dump" , " Turtle" )
74
+ Metrics . clientTimer. labels(Wikidata . class. getSimpleName(), ' ttl-dump' ). time {
75
+ graph. read(" https://www.wikidata.org/wiki/Special:EntityData/${ shortId} .ttl?flavor=dump" , " Turtle" )
76
+ }
74
77
} catch (Exception ex) {
75
78
println (" Unable to load graph for entity ${ entityIri} " )
76
79
}
You can’t perform that action at this time.
0 commit comments