From 2614c2c6451108e731b04208e1b3e9f2c8558c54 Mon Sep 17 00:00:00 2001 From: Claudio Atzori Date: Tue, 3 Aug 2021 17:45:41 +0200 Subject: [PATCH] updated casing for the relClass terms: IsAmongTopNSimilarDocuments, HasAmongTopNSimilarDocuments, IsRelatedTo --- CHANGES.md | 1 + .../java/eu/dnetlib/dhp/schema/common/ModelConstants.java | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index dbe4c67..a00ebae 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,7 @@ | **Version** | **Changes** | **Readiness** | |---|---|---| +| 2.7.16 | [Graph model]
Updated the casing of the following terms (`relation.relClass`):
1. `isRelatedTo -> IsRelatedTo`
Added the following `relClass` terms:
1. `IsAmongTopNSimilarDocuments`
2. `HasAmongTopNSimilarDocuments` | beta | | 2.7.15 | 1. added support for delegated authorities
2. fixed regex for DOI cleaning | beta | | 2.7.14 | [Graph model]
Relation types are now inspired by the Datacite definitions https://schema.datacite.org/meta/kernel-4.4/doc/DataCite-MetadataKernel_v4.4.pdf
The changes involve the values stored in `relation.subRelType` and `relation.relClass`:
Updated the casing of the following terms (`relation.relClass`):
1. `isSupplementTo -> IsSupplementTo` / `isSupplementedBy -> IsSupplementedBy`
2. `isPartOf -> IsPartOf` / `hasPart -> HasPart`
3. `cites -> Cites` / `isCitedBy -> IsCitedBy`
4. `reviews -> Reviews` / `isReviewedBy -> IsReviewedBy`
Added the following terms [`subRelType: relClass / relClass (inverse)`]:
1. `relationship: References / IsReferencedBy`
2. `relationship: IsIdenticalTo`
3. `relationship: IsContinuedBy / Continues`
4. `relationship: IsDocumentedBy / Documents`
5. `relationship: Documents / IsDocumentedBy`
6. `relationship: IsCompiledBy / Compiles`
7. `version: IsPreviousVersionOf / IsNewVersionOf`
8. `version: IsSourceOf / IsDerivedFrom`
9. `version: IsVariantFormOf / IsOriginalFormOf`
10. `version: IsObsoletedBy / Obsoletes`
11. `version: IsVersionOf / HasVersion` | beta | | 2.6.14 | [Scholexplorer]
1. Added model classes for Scholexplorer, package `eu.dnetlib.dhp.schema.sx` | production | diff --git a/src/main/java/eu/dnetlib/dhp/schema/common/ModelConstants.java b/src/main/java/eu/dnetlib/dhp/schema/common/ModelConstants.java index 9ca5a6c..4537c1d 100644 --- a/src/main/java/eu/dnetlib/dhp/schema/common/ModelConstants.java +++ b/src/main/java/eu/dnetlib/dhp/schema/common/ModelConstants.java @@ -81,7 +81,7 @@ public class ModelConstants { public static final String RELATIONSHIP = "relationship"; // subreltype - public static final String IS_RELATED_TO = "isRelatedTo"; + public static final String IS_RELATED_TO = "IsRelatedTo"; public static final String IS_IDENTICAL_TO = "IsIdenticalTo"; public static final String REFERENCES = "References"; @@ -141,8 +141,8 @@ public class ModelConstants { public static final String SIMILARITY = "similarity"; // subreltype public static final String IS_SIMILAR_TO = "isSimilarTo"; - public static final String IS_AMONG_TOP_N_SIMILAR_DOCS = "isAmongTopNSimilarDocuments"; - public static final String HAS_AMONG_TOP_N_SIMILAR_DOCS = "hasAmongTopNSimilarDocuments"; + public static final String IS_AMONG_TOP_N_SIMILAR_DOCS = "IsAmongTopNSimilarDocuments"; + public static final String HAS_AMONG_TOP_N_SIMILAR_DOCS = "HasAmongTopNSimilarDocuments"; public static final String IS_DIFFERENT_FROM = "isDifferentFrom";