Skip to content

Commit

Permalink
Merge pull request #309 from europeana/EA-3720_zoho_eu_migration
Browse files Browse the repository at this point in the history
max computation after  metrics  update #EA-3579
  • Loading branch information
gsergiu authored Feb 26, 2024
2 parents f8dd45d + dbf7e45 commit 66fe664
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 29 deletions.
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
## overall max recordcount
db.getCollection("EntityRecord").find({}, {entityId: 1, "entity.isAggregatedBy.recordCount": 1}).sort({"entity.isAggregatedBy.recordCount": -1}).limit(1)
(OpenUp!), http://data.europeana.eu/organization/1609, { "recordCount" : 12113168 }
db.getCollection("EntityRecord").find({}, {entityId: 1, "entity.isAggregatedBy.recordCount": 1, "entity.prefLabel.en":1 }).sort({"entity.isAggregatedBy.recordCount": -1}).limit(1)
(OpenUp!), http://data.europeana.eu/organization/1609, { "prefLabel" : { "en" : "OpenUp!" }, "isAggregatedBy" : { "recordCount" : 12113168 } }

## overall max pagerank
db.getCollection("EntityRecord").find({}, {entityId: 1, "entity.isAggregatedBy.pageRank": 1}).sort({"entity.isAggregatedBy.pageRank": -1}).limit(1)
(US) http://data.europeana.eu/place/216254, { "pageRank" : 24772.0 }
db.getCollection("EntityRecord").find({}, {entityId: 1, "entity.isAggregatedBy.pageRank": 1,"entity.prefLabel.en":1, "entity.prefLabel.en":1 }).sort({"entity.isAggregatedBy.pageRank": -1}).limit(1)
(US) http://data.europeana.eu/place/216254, { "prefLabel" : { "en" : "United States of America" }, "isAggregatedBy" : { "pageRank" : 48421.0 } }

## max for Agent
# pagerank
db.getCollection("EntityRecord").find({"entity.type": "Agent"}, {entityId: 1, "entity.type": 1, "entity.isAggregatedBy.pageRank": 1, "entity.prefLabel.en":1 }).sort({"entity.isAggregatedBy.pageRank": -1}).limit(1)
http://data.europeana.eu/agent/174116, { "type" : "Agent", "prefLabel" : { "en" : "United Nations" }, "isAggregatedBy" : { "pageRank" : 3105.0 } }
http://data.europeana.eu/agent/174116, { "type" : "Agent", "prefLabel" : { "en" : "United Nations" }, "isAggregatedBy" : { "pageRank" : 5165.0 } }

#record count
db.getCollection("EntityRecord").find({"entity.type": "Agent"}, {entityId: 1, "entity.type": 1, "entity.isAggregatedBy.recordCount": 1, "entity.prefLabel.en":1 }).sort({"entity.isAggregatedBy.recordCount": -1}).limit(1)
http://data.europeana.eu/agent/166033, { "type" : "Agent", "prefLabel" : { "en" : "Etienne Tordoir" }, "isAggregatedBy" : { "recordCount" : 522630 } }
http://data.europeana.eu/agent/166033, { "type" : "Agent", "prefLabel" : { "en" : "Etienne Tordoir" }, "isAggregatedBy" : { "recordCount" : 522716 } }

## max for Concept
#pagerank
db.getCollection("EntityRecord").find({"entity.type": "Concept"}, {entityId: 1, "entity.type": 1, "entity.isAggregatedBy.pageRank": 1, "entity.prefLabel.en":1 }).sort({"entity.isAggregatedBy.pageRank": -1}).limit(1)
http://data.europeana.eu/concept/3286, { "type" : "Concept", "prefLabel" : { "en" : "World War II" }, "isAggregatedBy" : { "pageRank" : 7646.0 } }
http://data.europeana.eu/concept/3286, { "type" : "Concept", "prefLabel" : { "en" : "World War II" }, "isAggregatedBy" : { "pageRank" : 9477.0 } }

#record count
db.getCollection("EntityRecord").find({"entity.type": "Concept"}, {entityId: 1, "entity.type": 1, "entity.isAggregatedBy.recordCount": 1, "entity.prefLabel.en":1 }).sort({"entity.isAggregatedBy.recordCount": -1}).limit(1)
http://data.europeana.eu/concept/48, { "type" : "Concept", "prefLabel" : { "en" : "Photograph" }, "isAggregatedBy" : { "recordCount" : 4215359 } }
http://data.europeana.eu/concept/48, { "type" : "Concept", "prefLabel" : { "en" : "Photograph" }, "isAggregatedBy" : { "recordCount" : 4223487 } }

## max for Organization
#pagerank
Expand All @@ -36,11 +36,12 @@ http://data.europeana.eu/organization/1609, { "type" : "Organization", "prefLabe
## max for Place
#pagerank
db.getCollection("EntityRecord").find({"entity.type": "Place"}, {entityId: 1, "entity.type": 1, "entity.isAggregatedBy.pageRank": 1, "entity.prefLabel.en":1 }).sort({"entity.isAggregatedBy.pageRank": -1}).limit(1)
http://data.europeana.eu/place/216254, { "type" : "Place", "prefLabel" : { "en" : "United States of America" }, "isAggregatedBy" : { "pageRank" : 24772.0 } }
http://data.europeana.eu/place/216254, { "type" : "Place", "prefLabel" : { "en" : "United States of America" }, "isAggregatedBy" : { "pageRank" : 48421.0 } }

#record count
db.getCollection("EntityRecord").find({"entity.type": "Place"}, {entityId: 1, "entity.type": 1, "entity.isAggregatedBy.recordCount": 1, "entity.prefLabel.en":1 }).sort({"entity.isAggregatedBy.recordCount": -1}).limit(1)
http://data.europeana.eu/place/107, { "type" : "Place", "prefLabel" : { "en" : "Norway" }, "isAggregatedBy" : { "recordCount" : 2310764 } }
http://data.europeana.eu/place/107, { "type" : "Place", "prefLabel" : { "en" : "Norway" }, "isAggregatedBy" : { "recordCount" : 2310877 } }


## max for TimeSpan
#pagerank
Expand Down
38 changes: 19 additions & 19 deletions entity-management-web/src/main/resources/max-entity-metrics.xml
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
<metrics>
<maxValues>
<enrichmentCount>31734</enrichmentCount>
<hitCount>2297502</hitCount>
<pageRank>1204</pageRank>
<enrichmentCount>522716</enrichmentCount>
<hitCount>1</hitCount>
<pageRank>5165</pageRank>
<entityId>Agent</entityId>
<entityType>Agent</entityType>
</maxValues>
<maxValues>
<enrichmentCount>3065416</enrichmentCount>
<hitCount>24576199</hitCount>
<pageRank>24772</pageRank>
<entityId>Place</entityId>
<entityType>Place</entityType>
</maxValues>
<maxValues>
<enrichmentCount>1448506</enrichmentCount>
<hitCount>8106790</hitCount>
<pageRank>4055</pageRank>
<enrichmentCount>4223487</enrichmentCount>
<hitCount>1</hitCount>
<pageRank>9477</pageRank>
<entityId>Concept</entityId>
<entityType>Concept</entityType>
</maxValues>
<maxValues>
<enrichmentCount>1</enrichmentCount>
<hitCount>8977503</hitCount>
<pageRank>244</pageRank>
<enrichmentCount>12113168</enrichmentCount>
<hitCount>1</hitCount>
<pageRank>18909</pageRank>
<entityId>Organization</entityId>
<entityType>Organization</entityType>
</maxValues>
<maxValues>
<enrichmentCount>1</enrichmentCount>
<hitCount>8977503</hitCount>
<pageRank>3912</pageRank>
<enrichmentCount>2310877</enrichmentCount>
<hitCount>1</hitCount>
<pageRank>48421</pageRank>
<entityId>Place</entityId>
<entityType>Place</entityType>
</maxValues>
<maxValues>
<enrichmentCount>3301125</enrichmentCount>
<hitCount>1</hitCount>
<pageRank>5986</pageRank>
<entityId>TimeSpan</entityId>
<entityType>TimeSpan</entityType>
</maxValues>
Expand Down

0 comments on commit 66fe664

Please sign in to comment.