T9: Person title/pwzNumber fields [checkpoint]

This commit is contained in:
Artur Kruszewski
2026-07-08 23:04:40 +02:00
parent 79fdf6a715
commit 387e2617b8
32 changed files with 348 additions and 72 deletions
@@ -73,7 +73,7 @@ public class CanonicalWriter {
if (!peopleMap.containsKey(personId)) {
peopleMap.put(personId, new Person(
personId, extractedName, personEntry.displayTitle(),
titles, new ArrayList<>()
titles, new ArrayList<>(), null, null
));
personUrlsMap.put(personId, new LinkedHashSet<>());
}
@@ -122,7 +122,7 @@ public class CanonicalWriter {
if (p != null) {
updatedPeople.add(new Person(
p.id(), p.fullName(), p.displayName(),
p.titles(), new ArrayList<>(entry.getValue())
p.titles(), new ArrayList<>(entry.getValue()), null, null
));
}
}
@@ -49,7 +49,8 @@ public class Deduplicator {
first.fullName(),
first.displayName(),
first.titles(),
new ArrayList<>(allUrls)
new ArrayList<>(allUrls),
null, null
);
}
@@ -9,6 +9,8 @@ public record Person(
@JsonProperty("fullName") String fullName,
@JsonProperty("displayName") String displayName,
@JsonProperty("titles") List<String> titles,
@JsonProperty("sourceUrls") List<String> sourceUrls
@JsonProperty("sourceUrls") List<String> sourceUrls,
@JsonProperty("title") String title,
@JsonProperty("pwzNumber") String pwzNumber
) {
}