Person-hasInterest-Tag and Forum-hasTag-Tag have a cardinality of 1..* instead of 0..*
szarnyasg opened this issue · 2 comments
szarnyasg commented
There are many Messages without Tags but no Forums and no Persons (without Tag interests).
szarnyasg commented
To validate on the data sets, run:
match (f:Forum)
where not (f)-[:HAS_TAG]->(:Tag)
return f
match (p:Person)
where not (p)-[:HAS_INTEREST]->(:Tag)
return p
These both return empty results.
szarnyasg commented
Persons have a "main interest":
https://github.com/ldbc/ldbc_snb_datagen/blob/028e53086272676a99ff6040ee8e5dd21b269d7a/src/main/java/ldbc/snb/datagen/generator/generators/PersonGenerator.java#L127-L130
Forums also have at least one tag:
- Album: randomly selected tags from the owner's interests: https://github.com/ldbc/ldbc_snb_datagen/blob/028e53086272676a99ff6040ee8e5dd21b269d7a/src/main/java/ldbc/snb/datagen/generator/generators/ForumGenerator.java#L291-L299
- Wall: getting all Tags from the owner: https://github.com/ldbc/ldbc_snb_datagen/blob/028e53086272676a99ff6040ee8e5dd21b269d7a/src/main/java/ldbc/snb/datagen/generator/generators/ForumGenerator.java#L86-L88
- Group: randomly selected tags from the interests of the moderator: https://github.com/ldbc/ldbc_snb_datagen/blob/028e53086272676a99ff6040ee8e5dd21b269d7a/src/main/java/ldbc/snb/datagen/generator/generators/ForumGenerator.java#L139-L164