-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improved logging, added queries for retrieving max
metrics #EA-3720 #EA-3579
- Loading branch information
GordeaS
authored and
GordeaS
committed
Feb 23, 2024
1 parent
12626f8
commit b1a4eaf
Showing
2 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
entity-management-mongo/src/test/resources/queries/select_metrics_max.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
## 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 } | ||
|
||
## 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 } | ||
|
||
## 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 } } | ||
|
||
#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 } } | ||
|
||
## 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 } } | ||
|
||
#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 } } | ||
|
||
## max for Organization | ||
#pagerank | ||
db.getCollection("EntityRecord").find({"entity.type": "Organization"}, {entityId: 1, "entity.type": 1, "entity.isAggregatedBy.pageRank": 1, "entity.prefLabel.en":1 }).sort({"entity.isAggregatedBy.pageRank": -1}).limit(1) | ||
http://data.europeana.eu/organization/4373, { "type" : "Organization", "prefLabel" : { "en" : "National Library of France" }, "isAggregatedBy" : { "pageRank" : 18909.0 } } | ||
|
||
#record count | ||
db.getCollection("EntityRecord").find({"entity.type": "Organization"}, {entityId: 1, "entity.type": 1, "entity.isAggregatedBy.recordCount": 1, "entity.prefLabel.en":1 }).sort({"entity.isAggregatedBy.recordCount": -1}).limit(1) | ||
http://data.europeana.eu/organization/1609, { "type" : "Organization", "prefLabel" : { "en" : "OpenUp!" }, "isAggregatedBy" : { "recordCount" : 12113168 } } | ||
|
||
## 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 } } | ||
|
||
#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 } } | ||
|
||
## max for TimeSpan | ||
#pagerank | ||
db.getCollection("EntityRecord").find({"entity.type": "TimeSpan"}, {entityId: 1, "entity.type": 1, "entity.isAggregatedBy.pageRank": 1, "entity.prefLabel.en":1 }).sort({"entity.isAggregatedBy.pageRank": -1}).limit(1) | ||
http://data.europeana.eu/timespan/19, { "type" : "TimeSpan", "prefLabel" : { "en" : "19th century" }, "isAggregatedBy" : { "pageRank" : 5986.0 } } | ||
|
||
#record count | ||
db.getCollection("EntityRecord").find({"entity.type": "TimeSpan"}, {entityId: 1, "entity.type": 1, "entity.isAggregatedBy.recordCount": 1, "entity.prefLabel.en":1 }).sort({"entity.isAggregatedBy.recordCount": -1}).limit(1) | ||
http://data.europeana.eu/timespan/20, { "type" : "TimeSpan", "prefLabel" : { "en" : "20th century" }, "isAggregatedBy" : { "recordCount" : 3301125 } } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters