From 024a9bf39406f2e2893270f1fb3bccd8c29f6a8d Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Tue, 31 Jan 2017 14:13:09 +0000 Subject: [PATCH] Creating Parthenos Entities Mapping to gCube Resources git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/private/luca.frosini/parthenos-entities@141946 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../model/relation/P129_is_about.java | 8 --- .../relation/P130_shows_features_of.java | 50 ++++++++++++++++++- .../model/relation/PP17_has_snapshot.java | 9 ---- .../model/relation/PP17i_is_snapshot_of.java | 9 ---- .../model/relation/PP22_has_release.java | 2 + .../model/relation/PP22i_is_release_of.java | 2 + .../relation/PP24_has_dataset_snapshot.java | 2 + .../PP24i_is_dataset_snapshot_of.java | 2 + .../model/relation/PP39_is_metadata_for.java | 9 ---- .../relation/isrelatedto/P129_is_about.java | 36 +++++++++++++ .../isrelatedto/PP17_has_snapshot.java | 13 +++++ .../isrelatedto/PP39_is_metadata_for.java | 13 +++++ .../inverse}/P129i_is_subject_of.java | 2 +- .../inverse/PP17i_is_snapshot_of.java | 11 ++++ .../inverse}/PP39i_has_metadata.java | 3 +- 15 files changed, 132 insertions(+), 39 deletions(-) delete mode 100644 src/main/java/org/gcube/informationsystem/parthenos/model/relation/P129_is_about.java delete mode 100644 src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP17_has_snapshot.java delete mode 100644 src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP17i_is_snapshot_of.java delete mode 100644 src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP39_is_metadata_for.java create mode 100644 src/main/java/org/gcube/informationsystem/parthenos/model/relation/isrelatedto/P129_is_about.java create mode 100644 src/main/java/org/gcube/informationsystem/parthenos/model/relation/isrelatedto/PP17_has_snapshot.java create mode 100644 src/main/java/org/gcube/informationsystem/parthenos/model/relation/isrelatedto/PP39_is_metadata_for.java rename src/main/java/org/gcube/informationsystem/parthenos/model/relation/{ => isrelatedto/inverse}/P129i_is_subject_of.java (52%) create mode 100644 src/main/java/org/gcube/informationsystem/parthenos/model/relation/isrelatedto/inverse/PP17i_is_snapshot_of.java rename src/main/java/org/gcube/informationsystem/parthenos/model/relation/{ => isrelatedto/inverse}/PP39i_has_metadata.java (58%) diff --git a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/P129_is_about.java b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/P129_is_about.java deleted file mode 100644 index 8f6fe1c..0000000 --- a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/P129_is_about.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.gcube.informationsystem.parthenos.model.relation; - -/** - * @author Luca Frosini (ISTI - CNR) - */ -public interface P129_is_about { - -} diff --git a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/P130_shows_features_of.java b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/P130_shows_features_of.java index 6d24302..eb61528 100644 --- a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/P130_shows_features_of.java +++ b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/P130_shows_features_of.java @@ -1,9 +1,55 @@ package org.gcube.informationsystem.parthenos.model.relation; +import org.gcube.informationsystem.model.entity.Resource; +import org.gcube.informationsystem.model.relation.IsRelatedTo; + /** - * @author Luca Frosini (ISTI - CNR) + * @author Luca Frosini (ISTI - CNR) + * + * Domain: E70 Thing + * Range: E70 Thing + * Superproperty of: E33 Linguistic Object. P73i has translation (is + * translation of): E33 Linguistic Object E18 Physical Thing. P128 carries + * (is carried by): E90 Symbolic Object + * Quantification: many to many (0,n:0,n) + * + * Scope note: This property generalises the notions of + * "copy of" and "similar to" into a directed relationship, where the + * domain expresses the derivative or influenced item and the range the + * source or influencing item, if such a direction can be established. + * The property can also be used to express similarity in cases that can + * be stated between two objects only, without historical knowledge + * about its reasons. The property expresses a symmetric relationship in + * case no direction of influence can be established either from + * evidence on the item itself or from historical knowledge. This holds + * in particular for siblings of a derivation process from a common + * source or non-causal cultural parallels, such as some weaving + * patterns. The P130.1 kind of similarity property of the P130 shows + * features of (features are also found on) property enables the + * relationship between the domain and the range to be further + * clarified, in the sense from domain to range, if applicable. For + * example, it may be expressed if both items are product “of the same + * mould”, or if two texts “contain identical paragraphs”. If the reason + * for similarity is a sort of derivation process, i.e., that the + * creator has used or had in mind the form of a particular thing during + * the creation or production, this process should be explicitly + * modelled. In these cases, P130 shows features of can be regarded as a + * shortcut of such a process. However, the current model does not + * contain any path specific enough to infer this property. + * Specializations of the CIDOC CRM may however be more explicit, for + * instance describing the use of moulds etc. + * In First Order Logic: + * P130 (x,y) ⊃ E70(x) + * P130 (x,y) ⊃ E70(y) + * P130(x,y,z) ⊃ [P130(x,y) ∧ E55(z)] + * P130(x,y) ⊃ P130(y,x) + * + * Properties: P130.1 kind of similarity: E55 Type + * */ -public interface P130_shows_features_of { +public interface P130_shows_features_of + + extends IsRelatedTo { } diff --git a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP17_has_snapshot.java b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP17_has_snapshot.java deleted file mode 100644 index e885e93..0000000 --- a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP17_has_snapshot.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.gcube.informationsystem.parthenos.model.relation; - - -/** - * @author Luca Frosini (ISTI - CNR) - */ -public interface PP17_has_snapshot extends P130_shows_features_of { - -} diff --git a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP17i_is_snapshot_of.java b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP17i_is_snapshot_of.java deleted file mode 100644 index aff506d..0000000 --- a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP17i_is_snapshot_of.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.gcube.informationsystem.parthenos.model.relation; - - -/** - * @author Luca Frosini (ISTI - CNR) - */ -public interface PP17i_is_snapshot_of extends P130i_features_are_also_found_on { - -} diff --git a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP22_has_release.java b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP22_has_release.java index 5668f31..e73aab5 100644 --- a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP22_has_release.java +++ b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP22_has_release.java @@ -1,5 +1,7 @@ package org.gcube.informationsystem.parthenos.model.relation; +import org.gcube.informationsystem.parthenos.model.relation.isrelatedto.PP17_has_snapshot; + /** * @author Luca Frosini (ISTI - CNR) diff --git a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP22i_is_release_of.java b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP22i_is_release_of.java index 274c529..3cedc09 100644 --- a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP22i_is_release_of.java +++ b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP22i_is_release_of.java @@ -1,5 +1,7 @@ package org.gcube.informationsystem.parthenos.model.relation; +import org.gcube.informationsystem.parthenos.model.relation.isrelatedto.inverse.PP17i_is_snapshot_of; + /** * @author Luca Frosini (ISTI - CNR) diff --git a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP24_has_dataset_snapshot.java b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP24_has_dataset_snapshot.java index 4f786d2..b7db33c 100644 --- a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP24_has_dataset_snapshot.java +++ b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP24_has_dataset_snapshot.java @@ -1,5 +1,7 @@ package org.gcube.informationsystem.parthenos.model.relation; +import org.gcube.informationsystem.parthenos.model.relation.isrelatedto.PP17_has_snapshot; + /** * @author Luca Frosini (ISTI - CNR) diff --git a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP24i_is_dataset_snapshot_of.java b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP24i_is_dataset_snapshot_of.java index 189e16f..8da14b9 100644 --- a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP24i_is_dataset_snapshot_of.java +++ b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP24i_is_dataset_snapshot_of.java @@ -1,5 +1,7 @@ package org.gcube.informationsystem.parthenos.model.relation; +import org.gcube.informationsystem.parthenos.model.relation.isrelatedto.inverse.PP17i_is_snapshot_of; + /** * @author Luca Frosini (ISTI - CNR) diff --git a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP39_is_metadata_for.java b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP39_is_metadata_for.java deleted file mode 100644 index d9acb3d..0000000 --- a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP39_is_metadata_for.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.gcube.informationsystem.parthenos.model.relation; - - -/** - * @author Luca Frosini (ISTI - CNR) - */ -public interface PP39_is_metadata_for extends P129_is_about { - -} diff --git a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/isrelatedto/P129_is_about.java b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/isrelatedto/P129_is_about.java new file mode 100644 index 0000000..ed2a005 --- /dev/null +++ b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/isrelatedto/P129_is_about.java @@ -0,0 +1,36 @@ +package org.gcube.informationsystem.parthenos.model.relation.isrelatedto; + +import org.gcube.informationsystem.model.entity.Resource; +import org.gcube.informationsystem.model.relation.IsRelatedTo; + +/** + * @author Luca Frosini (ISTI - CNR) + * P129 is about (is subject of) + * + * Domain: E89 Propositional Object + * Range: E1 CRM Entity + * Subproperty: E89 Propositional Object. P67 refers to (is referred to by): + * E1 CRM Entity + * Quantification: many to many (0,n:0,n) + * + * Scope note: This property documents that an E89 Propositional Object has as + * subject an instance of E1 CRM Entity. + * This differs from P67 refers to (is referred to by), which refers to an E1 + * CRM Entity, in that it describes the primary subject or subjects of an E89 + * Propositional Object. + * + * Examples: + *  The text entitled ‘Reach for the sky’ (E33) is about Douglas Bader (E21) + * + * In First Order Logic: + * P129(x,y) ⊃ E89(x) + * + * Definition of the CIDOC Conceptual Reference Model version 6.2.2 + * 90P129(x,y) ⊃ E1(y) + * P129(x,y) ⊃ P67(x,y) + * + */ +public interface P129_is_about + extends IsRelatedTo { + +} diff --git a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/isrelatedto/PP17_has_snapshot.java b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/isrelatedto/PP17_has_snapshot.java new file mode 100644 index 0000000..dea2350 --- /dev/null +++ b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/isrelatedto/PP17_has_snapshot.java @@ -0,0 +1,13 @@ +package org.gcube.informationsystem.parthenos.model.relation.isrelatedto; + +import org.gcube.informationsystem.parthenos.model.entity.resource.PE20_Volatile_Digital_Object; +import org.gcube.informationsystem.parthenos.model.relation.P130_shows_features_of; + +/** + * @author Luca Frosini (ISTI - CNR) + */ +public interface PP17_has_snapshot + + extends P130_shows_features_of { + +} diff --git a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/isrelatedto/PP39_is_metadata_for.java b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/isrelatedto/PP39_is_metadata_for.java new file mode 100644 index 0000000..31ee77e --- /dev/null +++ b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/isrelatedto/PP39_is_metadata_for.java @@ -0,0 +1,13 @@ +package org.gcube.informationsystem.parthenos.model.relation.isrelatedto; + +import org.gcube.informationsystem.parthenos.model.entity.resource.PE22_Persistent_Dataset; +import org.gcube.informationsystem.parthenos.model.entity.resource.cidoc.D1_Digital_Object; + +/** + * @author Luca Frosini (ISTI - CNR) + */ +public interface PP39_is_metadata_for + + extends P129_is_about { + +} diff --git a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/P129i_is_subject_of.java b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/isrelatedto/inverse/P129i_is_subject_of.java similarity index 52% rename from src/main/java/org/gcube/informationsystem/parthenos/model/relation/P129i_is_subject_of.java rename to src/main/java/org/gcube/informationsystem/parthenos/model/relation/isrelatedto/inverse/P129i_is_subject_of.java index 3e0aae1..4fb872e 100644 --- a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/P129i_is_subject_of.java +++ b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/isrelatedto/inverse/P129i_is_subject_of.java @@ -1,4 +1,4 @@ -package org.gcube.informationsystem.parthenos.model.relation; +package org.gcube.informationsystem.parthenos.model.relation.isrelatedto.inverse; /** diff --git a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/isrelatedto/inverse/PP17i_is_snapshot_of.java b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/isrelatedto/inverse/PP17i_is_snapshot_of.java new file mode 100644 index 0000000..1cfd015 --- /dev/null +++ b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/isrelatedto/inverse/PP17i_is_snapshot_of.java @@ -0,0 +1,11 @@ +package org.gcube.informationsystem.parthenos.model.relation.isrelatedto.inverse; + +import org.gcube.informationsystem.parthenos.model.relation.P130i_features_are_also_found_on; + + +/** + * @author Luca Frosini (ISTI - CNR) + */ +public interface PP17i_is_snapshot_of extends P130i_features_are_also_found_on { + +} diff --git a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP39i_has_metadata.java b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/isrelatedto/inverse/PP39i_has_metadata.java similarity index 58% rename from src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP39i_has_metadata.java rename to src/main/java/org/gcube/informationsystem/parthenos/model/relation/isrelatedto/inverse/PP39i_has_metadata.java index 9e78645..65bc7fb 100644 --- a/src/main/java/org/gcube/informationsystem/parthenos/model/relation/PP39i_has_metadata.java +++ b/src/main/java/org/gcube/informationsystem/parthenos/model/relation/isrelatedto/inverse/PP39i_has_metadata.java @@ -1,4 +1,5 @@ -package org.gcube.informationsystem.parthenos.model.relation; +package org.gcube.informationsystem.parthenos.model.relation.isrelatedto.inverse; + /**