2019-03-22 15:51:44 +01:00
/ * *
*
* /
package org.gcube.resourcemanagement.model.reference.entities.facets ;
import java.net.URL ;
2020-07-07 17:12:10 +02:00
import org.gcube.com.fasterxml.jackson.databind.annotation.JsonDeserialize ;
2019-03-22 15:51:44 +01:00
import org.gcube.informationsystem.model.reference.entities.Facet ;
import org.gcube.informationsystem.types.annotations.ISProperty ;
2020-12-15 18:38:41 +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.facets.LicenseFacetImpl ;
/ * *
2020-12-21 13:59:53 +01:00
* LicenseFacet captures information on any license associated with the
* resource to capture the policies governing its exploitation and use .
*
* Example of use is the licence of a dataset e . g . , Creative Commons Attribution ( CC - BY )
* or the licence of software such as GPL .
* This facet is used to provide for human knowledge , but it is not excluded the usage
* by infrastructure services which enforces the respect of the licence e . g . , a service which
* denies the usage of a dataset with Creative Commons Attribution No - Derivatives ( CC - BY - ND )
* licence to produce a new dataset .
*
2021-03-02 16:16:35 +01:00
* https : //wiki.gcube-system.org/gcube/GCube_Model#License_Facet
2020-12-21 13:59:53 +01:00
*
* @author Luca Frosini ( ISTI - CNR )
2019-03-22 15:51:44 +01:00
* /
@JsonDeserialize ( as = LicenseFacetImpl . class )
2020-12-15 18:38:41 +01:00
@TypeMetadata (
name = LicenseFacet . NAME ,
2020-12-21 13:59:53 +01:00
description = " LicenseFacet captures information on any license associated with the resource to capture "
2021-09-13 12:57:00 +02:00
+ " the policies governing its exploitation and use. "
2020-12-21 13:59:53 +01:00
+ " Example of use is the licence of a dataset e.g., Creative Commons Attribution (CC-BY) "
2021-09-13 12:57:00 +02:00
+ " or the licence of software such as GPL. "
2020-12-21 13:59:53 +01:00
+ " This facet is used to provide for human knowledge, but it is not excluded the usage "
+ " by infrastructure services which enforces the respect of the licence e.g., a service which "
+ " denies the usage of a dataset with Creative Commons Attribution No-Derivatives (CC-BY-ND) "
+ " licence to produce a new dataset. " ,
2020-12-15 18:38:41 +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 LicenseFacet extends Facet {
public static final String NAME = " LicenseFacet " ; // LicenseFacet.class.getSimpleName();
2020-12-21 13:59:53 +01:00
@ISProperty ( description = " The common name of the license. e.g., European Union Public Licence (EUPL) 1.1, GNU General Public License (GPL) 2, Berkeley Software Distribution (BSD), Common Creative (CC). " , mandatory = true , nullable = false )
2019-03-22 15:51:44 +01:00
public String getName ( ) ;
public void setName ( String name ) ;
2020-12-21 13:59:53 +01:00
@ISProperty ( description = " The URL to the actual text of the license. " , mandatory = true , nullable = false )
2019-03-22 15:51:44 +01:00
public URL getTextURL ( ) ;
public void setTextURL ( URL textURL ) ;
}