We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1275e4 commit f898f7fCopy full SHA for f898f7f
whelk-core/src/main/groovy/whelk/external/Wikidata.groovy
@@ -6,6 +6,7 @@ import org.apache.jena.rdf.model.Model
6
import org.apache.jena.rdf.model.ModelFactory
7
import org.apache.jena.rdf.model.RDFNode
8
import whelk.component.ElasticSearch
9
+import whelk.util.Metrics
10
11
class Wikidata implements Mapper {
12
@Override
@@ -70,7 +71,9 @@ class WikidataEntity {
70
71
72
private void loadGraph() {
73
try {
- 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
+ }
77
} catch (Exception ex) {
78
println("Unable to load graph for entity ${entityIri}")
79
}
0 commit comments