2019-03-22 15:51:44 +01:00
/ * *
*
* /
package org.gcube.resourcemanagement.model.reference.entities.resources ;
2020-07-07 17:12:10 +02:00
import org.gcube.com.fasterxml.jackson.databind.annotation.JsonDeserialize ;
2019-12-05 12:04:31 +01:00
import org.gcube.informationsystem.types.annotations.ResourceSchema ;
import org.gcube.informationsystem.types.annotations.ResourceSchemaEntry ;
2021-02-18 15:44:45 +01:00
import org.gcube.informationsystem.types.annotations.RelatedResourcesEntry ;
2020-12-15 20:06:58 +01:00
import org.gcube.informationsystem.types.reference.Change ;
import org.gcube.informationsystem.types.reference.TypeMetadata ;
import org.gcube.informationsystem.utils.TypeVersion ;
2019-03-22 15:51:44 +01:00
import org.gcube.resourcemanagement.model.impl.entities.resources.ConcreteDatasetImpl ;
2019-12-05 12:04:31 +01:00
import org.gcube.resourcemanagement.model.reference.entities.facets.AccessPointFacet ;
import org.gcube.resourcemanagement.model.reference.entities.facets.ContactFacet ;
import org.gcube.resourcemanagement.model.reference.relations.consistsof.HasMaintainer ;
2020-01-16 12:44:10 +01:00
import org.gcube.resourcemanagement.model.reference.relations.isrelatedto.IsPartOf ;
2019-03-22 15:51:44 +01:00
/ * *
2020-12-21 14:56:46 +01:00
* ConcreteDataset is any incarnation / manifestation of a dataset or part of it .
* The relation { @link IsPartOf } is used when a ConcreteDataset is part of a { @link Dataset } .
*
2021-03-02 16:16:35 +01:00
* https : //wiki.gcube-system.org/gcube/GCube_Model#Concrete_Dataset
2020-12-21 14:56:46 +01:00
*
* @author Luca Frosini ( ISTI - CNR )
2019-03-22 15:51:44 +01:00
* /
@JsonDeserialize ( as = ConcreteDatasetImpl . class )
2020-01-15 17:26:54 +01:00
@ResourceSchema (
facets = {
@ResourceSchemaEntry ( relation = HasMaintainer . class , facet = ContactFacet . class , min = 1 , description = " The contact information of the entity responsible for the maintenance of the concrete dataset " ) ,
@ResourceSchemaEntry ( facet = AccessPointFacet . class , min = 1 , description = " The access point to use for having access to the concrete dataset. The embargoState can be modeled through the access policy defined in the consistsOf relation. " )
2020-01-16 12:44:10 +01:00
} ,
resources = {
2021-02-18 15:44:45 +01:00
@RelatedResourcesEntry ( source = ConcreteDataset . class , relation = IsPartOf . class , target = Dataset . class , description = " The reference to the 'incarnations'/'manifestations' contributing to a dataset. " ) ,
2020-01-15 17:26:54 +01:00
}
)
2020-12-15 20:06:58 +01:00
@TypeMetadata (
name = ConcreteDataset . NAME ,
2020-12-21 14:56:46 +01:00
description = " ConcreteDataset is any incarnation/manifestation of a dataset or part of it. \ n "
+ " The relation {@link IsPartOf} is used when a ConcreteDataset is part of a {@link Dataset}. " ,
2020-12-15 20:06:58 +01:00
version = TypeVersion . MINIMAL_VERSION_STRING
)
@Change ( version = TypeVersion . MINIMAL_VERSION_STRING , description = TypeVersion . MINIMAL_VERSION_DESCRIPTION )
2019-03-22 15:51:44 +01:00
public interface ConcreteDataset extends Dataset {
public static final String NAME = " ConcreteDataset " ; // ConcreteDataset.class.getSimpleName();
}